Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to do like that there is a default.aspx started page if you call this page youtube video start automatically.

dont want to click video start button.

how can I do?thanks.
Posted

Set autoplay=1 in the parameters to the player.

Example at codeplex[^]
 
Share this answer
 
Comments
Member-2338430 22-Jun-14 19:16pm    
thanks alot I solved with script code.
It depends on the player. Any ways you haven't really mentioned which one are you using.
But with HTML5 video it can be done easily with autoplay attribute.

http://msdn.microsoft.com/en-us/library/ie/hh924820(v=vs.85).aspx[^]
 
Share this answer
 
Comments
Member-2338430 22-Jun-14 19:16pm    
thanks alot I solved with script code.
try this.. :)

HTML
HTML
<iframe width="560" height="315" src="//www.youtube.com/embed/u-j1nx_HY5o" frameborder="0" allowfullscreen></iframe>

put this script on your default.aspx and enjoy it, you have to put src of video what you would to like to play.
You can set src of iframe dynamically as well ,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900