I have a website that delivers content from an mms:// protocol, but latest Firefox version seem to ignore the video object. Is it possible to force Firefox to read/load files from an mms:// protocol?
HTML5
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="870" height="550" codebase="http://www.microsoft.com/Windows/MediaPlayer/ object">
<param name="Filename" value="mms://24.212.0.21/archives/tvc9/CC_A2013_01.wmv">
<param name="AutoStart" value="true">
<param name="ShowControls" value="true">
<param name="BufferingTime" value="true">
<param name="ShowStatusBar" value="true">
<param name="AutoSize" value="true">
<param name="InvokeURLs" value="true">
<embed src="mms://24.212.0.21/archives/tvc9/CC_A2013_01.wmv" type="video/x-ms-wmv" autostart="true" bufferingtime="2" showcontrols="true" showstatusbar="true" autosize="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" width="870" height="550">
</object>
It works in all other browsers. I cannot change the source server.
JSFiddle
Related
I am using embed player for playing midi files.
It is playing in mozilla and in explorer how can i play that midi files in chrome, is there any extension or plugin by which i can play midi in chrome.
here is my code
<object
id="MediaPlayer" width="300" height="300"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="Url" value="suite1.mid">
<param name="AutoSize" value="true">
<param name="AutoStart" value="true">
<param name="Balance" value="0">
<param name="DisplaySize" value="0">
<param name="Mute" value="false">
<param name="PlayCount" value="0">
<param name="Rate" value="1.0">
<param name="ShowAudioControls" value="true">
<param name="ShowControls" value="true">
<param name="ShowDisplay" value="true">
<param name="ShowStatusBar" value="true">
<param name="ShowTracker" value="true">
<param name="StretchToFit" value="false">
<param name="TransparentAtStart" value="false">
<param name="Volume" value="100">
<embed type="application/x-mplayer2"
name="mediaplayer"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer"
src="suite1.mid"
Height="300"
Width="300"
AutoSize="1"
AutoStart="1"
Balance="0"
DisplaySize="0"
Mute="0"
PlayCount="0"
Rate="1.0"
ShowAudioControls="1"
ShowControls="1"
ShowDisplay="1"
ShowStatusBar="1"
ShowTracker="1"
StretchToFit="0"
TransparentAtStart="0">
Volume="100"
</embed>
</object>
It is working on mozilla and explorer.
Windows Media Player will probably not work with Chrome, and will not anyway work for every user. Look at HTML5 (e.g. http://mudcu.be/midi-js/, sources on https://github.com/mudcube/MIDI.js) or Flash (e.g. http://code.google.com/p/flash-midi-player/) MIDI players instead.
I don't know why, but the VOLUME attr is not working. It can be 0 or 100 I can't hear any difference.
<object>
<param name="autostart" value="true">
<param name="src" value="scream14.wav">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="scream14.wav" volume="0" hidden="true" controller="true" autoplay="true" autostart="true" type="audio/wav" loop="false"/>
</object>
I tested the code and it was running correctly
I'm working on a Moodle 2.1 website and I'm running into a problem w/ getting WMVs to play in multiple browsers.
IE: Plays with no problems
Firefox: Displays the windows media player but when I click the play button the video does not start.
Chrome: Displays the windows media player but when I click the
play button the video does not start.
Here's my HTML for the video:
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
standby="Loading Microsoft(R) Windows(R) Media Player components..."
type="application/x-oleobject">
<param name="Filename" value="http://mymoodlesite.com/pluginfile.php/1234/mod_forum/attachment/56/mywmvfile.wmv" />
<param name="src" value="http://mymoodlesite.com/pluginfile.php/1234/mod_forum/attachment/56/mywmvfile.wmv" />
<param name="url" value="http://mymoodlesite.com/pluginfile.php/1234/mod_forum/attachment/56/mywmvfile.wmv" />
<param name="ShowControls" value="true" />
<param name = "controller" value="true" />
<param name="AutoRewind" value="true" />
<param name="AutoStart" value="false" />
<param name="Autosize" value="true" />
<param name="EnableContextMenu" value="true" />
<param name="TransparentAtStart" value="false" />
<param name="AnimationAtStart" value="false" />
<param name="ShowGotoBar" value="false" />
<param name="EnableFullScreenControls" value="true" />
<!--[if !IE]>-->
<object data="http://mymoodlesite.com/pluginfile.php/1234/mod_forum/attachment/56/mywmvfile.wmv" type="video/x-ms-wmv" width="400" height="364">
<param name="src" value="http://mymoodlesite.com/pluginfile.php/1234/mod_forum/attachment/56/mywmvfile.wmv" />
<param name="autoplay" value="false" />
<param name="autostart" value="false" />
<param name="resize" value="scale" />
</object>
<!--<![endif]-->
</object>
Better use Flash based player (JWPlayer or FlowPlayer), or <video> tag from HTML5 with OGG video format.
You definitely shouldn't use WMV in websites...
I have a .swf file that is not looping although I have added the parameter to do so. It plays just the once, and at the end of the video it stops instead of looping.
Can someone tell me what I might be doing wrong here?
<div id="video">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="211" height="316" id="FLVPlayer" style="visibility: visible; ">
<param name="movie" value="FLVPlayer_Progressive.swf">
<param name="quality" value="best">
<param name="wmode" value="opaque">
<param name="scale" value="noscale">
<PARAM NAME="loop" VALUE="true">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="211" height="316">
<!--<![endif]-->
<param name="quality" value="best">
<param name="wmode" value="opaque">
<PARAM NAME="loop" VALUE="true">
<param name="scale" value="noscale">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!-- video end -->
It depends on what did you set in your Flash file (FLA). By default, a Flash file loops when it reaches the last frame.
FYI, to stop the loop, add a stop(); in the ActionScript at the end frame. Valid for ActionScript 1-3.
i have made some demo movies in WMV format that i want to embed in my html page.
I've found some code to do that, but one thing annoys me: it shows a black front in stead of a picture of the first frame.
And i can ofcourse put some descriptive text around the frames/movies, but it isn;t such a nice sight: all black squares with a play button beneath it.
What do i have to do to show a (first) frame of the movie?
This is my code:
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=6,4,7,1112">
<param name="filename" value="http://www.ladieda.com/mymovie.wmv">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="AllowChangeDisplaySize" value="true">
<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://www.ladieda.com/mymovie.wmv" AutoStart="false" ></embed>
</object>
Michel
Ps tried it in IE8 and FF3.6, both showed up black.
My example works.
<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="http://www.ladieda.com/mymovie.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="true">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.ladieda.com/mymovie.wmv" autostart="true" designtimesp='5311' loop="true">
</embed>
</object>
Your example was modified to work:
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=6,4,7,1112">
<param name="fileName" value="http://www.ladieda.com/mymovie.wmv">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="AllowChangeDisplaySize" value="true">
<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.ladieda.com/mymovie.wmv" autoStart="false" ></embed>
</object>
And yes, it works both on Firefox 3.6 and IE8 (I tested it myself).
<param name="fileName" value="http://www.ladieda.com/mymovie.wmv"> is good for ff
for IE should use name="URL"
too lazy to provide link to msdn.