Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2007
    Posts
    273

    [Help] Make JW player autoplay

    Here are the code part in my script to showing video :



    $link='<object id="player" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="'.$width.'" height="'.$height.'"><param name="movie" value="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo='.$forum_url.'/mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /><embed type="application/x-shockwave-flash" id="player2" name="player2" src="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" width="'.$width.'" height="'.$height.'" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo=mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /></object>';



    currently its need to click the video first to playing, i want to make it playing autoplay/autostart







    i already tried add few code like below in red, but no one works, still not autoplay/autostart, please help guys, what is the right code to autoplay/autostart





    $link='<object id="player" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="'.$width.'" height="'.$height.'"><param name="movie" value="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo='.$forum_url.'/mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /><embed type="application/x-shockwave-flash" id="player2" name="player2" src="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" autoplay="true" width="'.$width.'" height="'.$height.'" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo=mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /></object>';






    $link='<object id="player" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="'.$width.'" height="'.$height.'"><param name="movie" value="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" /><param name="autostart" value="true"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo='.$forum_url.'/mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /><embed type="application/x-shockwave-flash" id="player2" name="player2" src="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" autostart="true" width="'.$width.'" height="'.$height.'" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo=mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /></object>';








    $link='<object id="player" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="'.$width.'" height="'.$height.'"><param name="movie" value="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo='.$forum_url.'/mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&abouttext=domain.com&aboutlink=http://www.domain.com" /><embed type="application/x-shockwave-flash" id="player2" name="player2" src="'.$forum_url.'/mediaplayer/jwplayer/'.$player.'" width="'.$width.'" height="'.$height.'" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.youtube.com/watch?v='.$url.'&image=http://img.youtube.com/vi/'.$url.'/0.jpg&logo=mediaplayer/'.$logo.'&logo.hide=false&logo.position=top-left&controlbar=over&autoPlay=true&abouttext=domain.com&aboutlink=http://www.domain.com" /></object>';
    Lets be stable diligent person

  2. #2
    Join Date
    Aug 2008
    Posts
    534
    Add

    &autoplay=true

    to your flashvars.
    Regards,
    Yourwebhoster.eu [NL] based hosting
    Shared | Reseller | KVM VPS | Reseller VPS

Similar Threads

  1. Making a flash (.pls) stream player. (PSD to FLA)[Need help 2 make it]
    By AdvancedNoob in forum Web Design and Content
    Replies: 1
    Last Post: 11-01-2010, 06:44 PM
  2. How To Make Mp3 Player
    By SupportRep911 in forum Web Design and Content
    Replies: 4
    Last Post: 12-28-2007, 05:59 AM
  3. AutoPlay.info {Full Site}
    By Bento in forum Other Offers & Requests
    Replies: 6
    Last Post: 01-21-2006, 04:26 AM
  4. how to make a streaming player in flash
    By Johnburk in forum Web Design and Content
    Replies: 3
    Last Post: 04-12-2005, 03:46 PM

Posting Permissions

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