Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selecting Video From ASX Playlist

    I'm not sure if this is even possible, but I've created an embedded windows media player that reads from an asx playlist of my videos. What I'm wanting to do is within my page select from an image list of my videos (read in php from a mysql database) and jump to whichever video I choose in the asx list. After that particular video is finished playing the next video would continue in the playlist. Can this be done and how could I do it?


    Code:
    <ASX version = "3.0">
     <TITLE>Video Player</TITLE>
     <Entry>
       <title>Title of song</title>
       <author>author</author>
       <PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
       <Ref href = "http://media._450.wmv" />
     </Entry>
     <Entry>
       <title>Title of 2nd song</title>
       <author>2nd artist</author>
      <PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
      <Ref href = "http://www.300k.wmv" />
     </Entry>
    </ASX>
    Code:
    function playerpop(url,name,width,height,resize,scroll) {
        popupWin = window.open(url, name,'width=540,height=440,resizable=no,scrollbars=no,location=0,menubar=0,statusbar=0,toolbar=0');
    }
    
     var tag = '<OBJECT ID="MediaPlayer" NAME="MediaPlayer" width=320 height=240 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">'
            tag += '  <PARAM name="URL" value="playlist.asx">';
            tag += '<param name="uiMode" value="none">'
            tag += '  <PARAM name="DisplaySize" value="0">'
            tag += '  <PARAM NAME="ShowControls" VALUE="false">'
            tag += '  <PARAM NAME="ShowDisplay" VALUE="0">'
            tag += '  <PARAM NAME="ShowStatusBar" VALUE="0">'
            tag += '  <PARAM NAME="AutoStart" VALUE="TRUE">'
            tag += '  <PARAM NAME="InvokeURLS" Value="False">'
            tag += '  <param name="windowlessVideo" value="0">'
            tag += '  <embed width="320" height="240" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="playlist.asx" AutoStart="True" controls="playbutton" showstatusbar="false" autoplay="true" uimode="none"></embed>'
            tag += '</object>'
            embed(tag)
          }
    PHP Code:
    //link to video
    <a href="javascript:playerpop('videoplayer.php');"><IMG SRC="../../images/<? echo $image ?>"></a>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I don't see this as being possible. I think flash would be the way to go on this one
    http://www.*******************/?item=Flash_Video_Player

    The only issue I forsee is actually converting your wmv files to .flv files.
    The Riva FLV 2.0 Encoder is free and should convert them without a problem. If you have Flash 8 then you have the flv encoder that comes with it. Good luck.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I actually figured out a way to do this by dynamically creating my asx playlist file. Basically I call a specific video to start based on a querystring read into the value of my windows media player url param which sorts out how my asx playlist is ordered.

    Now I just need to figure out how to get my metadata to display on a Mac in my div tag.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •