javascript - The Windows Media Player doesn't play *.mov files :( Plese give me any suggestions -
<html> <head> <title>so-wmp</title> <script> onload=function() { player = document.getelementbyid("wmp"); player.url = "test.mp3"; }; function add(text) { document.body .appendchild(document.createelement("div")) .appendchild(document.createtextnode(text)); }; function handler(type) { var = arguments; add(type +" = "+ playstates[a[1]]); }; // http://msdn.microsoft.com/en-us/library/bb249361(vs.85).aspx var playstates = { 0: "undefined", // windows media player in undefined state. 1: "stopped", // playback of current media item stopped. 2: "paused", // playback of current media item paused. when media item paused, resuming playback begins same location. 3: "playing", // current media item playing. 4: "scanforward", // current media item fast forwarding. 5: "scanreverse", // current media item fast rewinding. 6: "buffering", // current media item getting additional data server. 7: "waiting", // connection established, server not sending data. waiting session begin. 8: "mediaended", // media item has completed playback. 9: "transitioning", // preparing new media item. 10: "ready", // ready begin playing. 11: "reconnecting" // reconnecting stream. }; </script> <script for="wmp" event="playstatechange(newstate)"> // http://msdn.microsoft.com/en-us/library/bb249362(vs.85).aspx handler.call(this, "playstatechange", newstate); </script> </head> <body> <div id="page"> <object id="wmp" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" type="application/x-oleobject"> </object> </div> </body> </html>
.mov
files quicktime files. windows media player not play quicktime files out of box.
quicktime application created apple. windows media player application created microsoft. surprised they're not compatible? shouldn't be.
the solution: @andrew bullock commented, don't try , use them (in browser, @ least). use different player, or different multimedia format.
Comments
Post a Comment