0

I have been all over the internet trying to figure out how to plan an embedded youtube video in full screen automatically and have failed at every turn.

Any ideas here?

<iframe src="//www.youtube.com/embed/9ptECXgpIwk?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

several links on the web say that the rel=0 is what makes it happen, but my understanding of that part is that it prevents related videos from being displayed when the video ends.

I don't want to use specific width and height because I want it to work on any device to the full extent of the screen size of that device.

Any help here would be greatly appreciated
Douglas

3
Contributors
3
Replies
23
Views
1 Year
Discussion Span
Last Post by showman13
2

OK, your tag is PHP but you didn't specify that this was in a browser. As you know you may not take over the screen like that. You could if you had the user run some app. There are plenty of prior discussions about this but for now, you can't violate what the user wants to see in their browser view.

Votes + Comments
ops, I missed that _automatically_ thanks :D
2

Just in case anyone is interested... I never did find a way to display full screen automatically no matter what the device.

Instead I opted to set the i frame to a size that will fit on any device and notate the bottom right corner of the video to click for full screen.

Not as effective nor as elegant as I would have liked, but I guess it will server the purpose.

Thanks for the responses.

Votes + Comments
thanks for sharing
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.