Youtube video double click
I have embedded you tube video into my project.The problem whi开发者_如何学运维ch i'm facing is that when i double click on that video it opens in new tab.What i want is that when i click that video it should open in full screen.
Thanks
Open in full screen is the behavior of the player when used on YouTube. Open a new tab is the behavior when the player is embedded in anther webpage.
It seems that modify this behavior is a violation of the YouTube Terms of Service 4(f) 4.
General Use of the Service—Permissions and Restrictions F. If you use the Embeddable Player on your website, you may not modify, build upon, or
block any portion or functionality of the Embeddable Player, including but not limited to links back to the YouTube website. http://www.youtube.com/t/terms
to goto full screen add following inside object tag:
<param name="allowFullScreen" value="true">
to prevent opening new window of youtube, set following inside the object tag :
<param name="allownetworking" value="internal">
for example:
<object width="558" height="440" type="application/x-shockwave-flash"
data="http://www.youtube.com/v/HyJBnmO8O8o?rel=0&showinfo=0" id="sb-player">
<param name="allownetworking" value="internal">
<param name="allowFullScreen" value="true">
</object>
and please make sure you abide by the Terms & Conditions of Youtube - http://www.youtube.com/t/terms
it is a default behavior of youtube player
精彩评论