snoodle
12-17-2009, 10:16 PM
After scouring the web for hours, I'm not sure what code to use for my embedded video. I finally settled on the "standard?" code for the MS Media Player. It works fine in FF and IE on my own machine/server, but on my host's server, in IE I hit play in the player and nothing happens, while in FF I get the error, "[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStreamListener.onStopRequest]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///C:/Users/dad/AppData/Roaming/Mozilla/Firefox/Profiles/9mke65ys.default/extensions/firebug@software.joehewitt.com/components/firebug-channel-listener.js :: anonymous :: line 167" data: no]".
Could this possibly have anything to do with php.ini settings? What else could be different (server vs my machine) that is causing the problem?
Implementation at "http://maxsdad.com/test.html" (works on my home server but not my hosts, as you can see here).
Here's the code I'm currently using for the embedded video (note the HTML is in the form of a string that is returned and later inserted into the DOM)...
function getMediaPlayer(src) {
return "<OBJECT id='mediaPlayer' width='320' height='285' "
+" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' "
+"codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "
+" standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> "
+" <param name='fileName' value='"+src+"'> "
+" <param name='animationatStart' value='true'> "
+" <param name='transparentatStart' value='true'> "
+" <param name='autoStart' value='true'> "
+" <param name='showControls' value='true'> "
+" <param name='loop' value='false'> "
+" <EMBED type='application/x-mplayer2' "
+"pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' "
+"id='mediaPlayer' name='mediaPlayer' displaysize='1' autosize='-1' "
+"bgcolor='darkblue' showcontrols='true' showtracker='-1' "
+"showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='320' height='285' "
+"src='"+src+"' autostart='true' designtimesp='5311' loop='true'> "
+"</EMBED></OBJECT>";
}
Could this possibly have anything to do with php.ini settings? What else could be different (server vs my machine) that is causing the problem?
Implementation at "http://maxsdad.com/test.html" (works on my home server but not my hosts, as you can see here).
Here's the code I'm currently using for the embedded video (note the HTML is in the form of a string that is returned and later inserted into the DOM)...
function getMediaPlayer(src) {
return "<OBJECT id='mediaPlayer' width='320' height='285' "
+" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' "
+"codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "
+" standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> "
+" <param name='fileName' value='"+src+"'> "
+" <param name='animationatStart' value='true'> "
+" <param name='transparentatStart' value='true'> "
+" <param name='autoStart' value='true'> "
+" <param name='showControls' value='true'> "
+" <param name='loop' value='false'> "
+" <EMBED type='application/x-mplayer2' "
+"pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' "
+"id='mediaPlayer' name='mediaPlayer' displaysize='1' autosize='-1' "
+"bgcolor='darkblue' showcontrols='true' showtracker='-1' "
+"showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='320' height='285' "
+"src='"+src+"' autostart='true' designtimesp='5311' loop='true'> "
+"</EMBED></OBJECT>";
}