Hi,
I am trying to play a video from javascript using the WMP plugin in IE. It works fine in Firefox and Chrome, but not IE. Any help would be great!
— embedded player in the HTML
<embed id=”player”
type=”application/x-mplayer2″
CLASSID=”CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6″
WIDTH=”1495″ HEIGHT=”840″ ShowControls=”1″ ShowStatusBar=”0″ ShowDisplay=”0″ autostart=”1″>
— Clicking on a button on the page calls the change_channel javascript method
function change_channel(channel_address) {
document.getElementById(“player”).URL=”file://C:/Users/Admin/Desktop/WebClient/videos/ball-jump-epic-fail.mp4″;
}
— This doesn’t play the video in IE8. It works if I use the SRC parameter when I embed the player, but I need the video to change when I click on buttons.
Thank you.