hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : [Help] Make JW player autoplay
Reply

Forum Jump

[Help] Make JW player autoplay

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-06-2011, 04:13 AM
basketmen basketmen is offline
WHT Addict
 
Join Date: Jul 2007
Posts: 157

[Help] Make JW player autoplay


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



Quote:
$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





Quote:
$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>';






Quote:
$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>';








Quote:
$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



Sponsored Links
  #2  
Old 03-06-2011, 04:49 AM
yourwebhostereu yourwebhostereu is offline
Web Hosting Evangelist
 
Join Date: Aug 2008
Posts: 529
Add

&autoplay=true

to your flashvars.

__________________
Regards,
Yourwebhoster.eu [NL] based hosting
Shared | Reseller | KVM VPS | Reseller VPS

Reply

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

Related posts from TheWhir.com
Title Type Date Posted
Global Mobile Games Market to Reach $23.9B by 2016: Report Web Hosting News 2013-10-31 15:55:38
Drinks in Denver at WHIR Networking Event Next Thursday Blog 2013-07-12 14:10:47
Web Hosting Jobs - New Hiring Methods for the New Year Blog 2012-12-13 12:08:55
Cloud Security Alliance’s 2012 Congress - The Internet and National Security Blog 2012-12-05 12:08:32
Phoenix NAP Opens Secured Cloud Hosting Node in Ashburn, Virginia Web Hosting News 2012-09-25 11:19:16


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?