I was just wondering if anyone knew how to make a WMV video file embed as a playlist into a page.
I have been searching through forums to find an answer. I have tried the following code, however it failed:
Could it be a Mac OS X thing? I have windows media player installed, so I dont see why it would be a problem...... Could someone try out this code on a PC for us?Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> body { text-align:center; } </style> <script type="text/javascript"> function PlayIt(what){ player.document.getElementById('music').innerHTML='<object width="300" height="270" ' +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ' +'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="url" value="'+what+'">' +'<param name="uiMode" value="full">' +'<param name="autoStart" value="true">' +'<param name="loop" value="true">' +'<embed type="application/x-mplayer2" ' +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" ' +'showcontrols="true" uimode="full" width="300" height="270" ' +'src="'+what+'" autostart="true" loop="true">' +'</object>'; } </script> </head> <body> <?<select name="player" onchange="PlayIt(this.value)"> <option value="none">::Choose a Movie::</option> <option value="video1.wmv">StarvingPaul</option> <option value="http://urltovideo2.wmv">Video 2</option> <option value="http://urltovideo3.wmv">Video 3</option> <option value="http://urltovideo4.wmv">Video 4</option> <option value="http://urltovideo5.wmv">Video 5</option> </select> <div id="music"> <object width="300" height="270" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 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="url" value=""> <param name="uiMode" value="full"> <param name="autoStart" value="true"> <param name="loop" value="true"> <embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" uimode="full" width="300" height="270" src="" autostart="true" loop="true"> </object> </div> </html>
Thanks.
+ Reply to Thread
Results 1 to 2 of 2
-
-
didn't get it to work - but could you send us the URL?
It'd be very helpful with troubleshooting.
Also, you might considering using some other formats - like flash video...
-ow
Similar Threads
-
Reading AVCHD Playlist files BDMV\Playlist\*.mpl
By StrangeSolutions in forum Newbie / General discussionsReplies: 11Last Post: 10th Jun 2014, 23:23 -
Making BD Rebuilder work on a Mac
By Spoffo in forum Blu-ray RippingReplies: 0Last Post: 10th Mar 2011, 04:27 -
How can a Mac user convert .avi to .wmv?
By QueenIdella in forum MacReplies: 8Last Post: 18th Jul 2010, 10:27 -
.wmv file to psp for a mac
By melacanth in forum Newbie / General discussionsReplies: 0Last Post: 3rd Aug 2007, 22:43 -
A Way to Take WMV to DV on Mac?
By dizzie in forum MacReplies: 2Last Post: 12th Jun 2007, 09:38