VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hi!
    i want to stream a list of songs...
    i don't want it to start playing until the user will click it...
    so:

    Code:
    <OBJECT
    
    ID="mediaPlayer"
    
    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" WIDTH=170 HEIGHT=69 autostart="0">
    
    <PARAM NAME="fileName"
    VALUE="http://www.site.com/list.asx">
    
    <PARAM NAME="animationatStart" VALUE="true">
     <PARAM NAME="ShowDisplay" VALUE="0">
        <PARAM NAME="ShowStatusBar" VALUE="1">
    
    <PARAM NAME="transparentatStart" VALUE="true">
    
    <PARAM NAME="autoStart" VALUE="false">
    
    <PARAM NAME="showControls" VALUE="true">
    
    </OBJECT>

    the problem is that if the user want to jump to the next track - it indeed jump... but it will not play until the user will click play... BUT when i just run the asx file in mediaplayer (not using this embeded code) it jump to the next track AND play it...


    thanks
    Quote Quote  
  2. It is possible to control the media player with Javascript.
    So, your answer would be hiding the player's controls and offering controls of your own that will link to Javascript functions. Then, if the user hits next to go to the next track, your Javascript function may start playing it even if the media player doesn't do it automatically.
    That said, I only worked with this for Quicktime, so I can't go into specifics, but this page should help you: http://wdvl.internet.com/Multimedia/Windows_Media/index4.html
    Good luck!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!