View Full Version : Playing 'watch_popup videos' using the YouTube Api for embedding videos

06-20-2013, 10:10 PM
YouTube offers users to view their videos in 'popup mode', thus allowing them to watch videos without the annoying comments and ads. Another good thing about watch_popup videos is that YouTube doesn't impose constraints on their width and height. So we'll never see 'video too small' (instead of the real video) when we create very small videos.

There are also things that watch_popup videos won't allow. We can't force them to NOT SHOW thumbnails for suggested videos (at the end of the video) by simply adding &rel=0 to the url. And we can't force an end point for watch_popup videos by adding &end=some_integer. But - fortunately enough- the YouTube Player API for Iframe Embeds (https://developers.google.com/youtube/iframe_api_reference?hl=nl) lets us embed watch_popup videos (althought it was not specifically designed for this). So the question is: can we use the YouTube Player API for hiding suggested videos at the end of watch_popups and for creating end points for those videos?

I created a script proving that this is indeed possible. The result is a player showing YouTube videos without comments, ads and suggested videos but with start points and end points (if desired). Demo and explanations here (http://mesdomaines.nu/eendracht/include_video_yt_controllable_watch_popup_final/play_watch_popup_using_yt_iframe_api.html).

06-21-2013, 03:18 PM
21 June:
I revised the script. It's now possible to also create end points for single videos.