Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL syntax for Youtube video in fullscreen and start at time index

I am able to modify a standard youtube link:

https://www.youtube.com/watch?v=R0tHEJl_Y8E

to play in fullscreen mode:

https://www.youtube.com/v/R0tHEJl_Y8E

I would like to augment the fullscreen URL so that it starts at time index. I looked at other examples and unsuccessfully tried:

https://www.youtube.com/v/R0tHEJl_Y8E&/#t=68s

Suggestions are appreciated: thank you

like image 208
gatorback Avatar asked May 24 '16 00:05

gatorback


People also ask

What is YouTube full screen size?

What is the standard size of a YouTube video? The smallest dimensions of videos on YouTube are 426x240 pixels, while the largest dimensions are 3840x2160 pixels. The correct aspect ratio for YouTube videos is 16:9.


2 Answers

According to the YouTube API Player Parameters page, the /v/ style URL was used for the embedded AS3 player and is deprecated. Instead, use https://www.youtube.com/embed/VIDEO_ID, with the start parameter, e.g.:

https://www.youtube.com/embed/R0tHEJl_Y8E?start=68

Also, just to clarify, this URL will take up the full browser window, not the full screen.


A better solution using iframe here with jQuery or simplest here:

If you add '?rel=0&autoplay=1' to the end of the url in the embed code (like this)

<iframe id="video" 
 src="//www.youtube.com/embed/5iiPC-VGFLU?rel=0&autoplay=1"
 frameborder="0"
 allowfullscreen></iframe>

of the video it should play on load. Here's a demo over at jsfiddle.

like image 60
Tyler C. Avatar answered Sep 17 '22 22:09

Tyler C.


you can the url for fullscreen

https://www.youtube.com/embed/R0tHEJl_Y8E?start=68&fs=1

'fs=1' ==> for full screen button to show
'start=68' ==> 68 is in seconds
'https://www.youtube.com/embed/'--> this will enables the fullscreen mode
like image 24
Bhaskara Arani Avatar answered Sep 19 '22 22:09

Bhaskara Arani