G
Greg S
I have a Window Media Player control embedded in my page... and a Listbox
that has a list of files on a certain network share (all video files). When
the user selects from the listbox and clicks a button, I want the WMP control
to play that video.
I am passing the correct path to the player's URL property, but I can't get
the video to play. The control goes to "Ready" for a split second, but then
it looks like the page refreshes and then, nothing. Here is my Javascript to
pass the correct path to the player:
<script type="text/javascript">
function setPlayerURL() {
player = document.getElementById("wmpWindow")
myURL =
document.getElementById("pathStore").getAttribute("value");
player.URL = myURL;
player.controls.play();
}
</script>
that has a list of files on a certain network share (all video files). When
the user selects from the listbox and clicks a button, I want the WMP control
to play that video.
I am passing the correct path to the player's URL property, but I can't get
the video to play. The control goes to "Ready" for a split second, but then
it looks like the page refreshes and then, nothing. Here is my Javascript to
pass the correct path to the player:
<script type="text/javascript">
function setPlayerURL() {
player = document.getElementById("wmpWindow")
myURL =
document.getElementById("pathStore").getAttribute("value");
player.URL = myURL;
player.controls.play();
}
</script>