2
votes

When playing embedded youtube videos, I don't want to display a thumbnail when completed. Instead I'd like to end with last frame. Is this possible?

Either I can pause on the last frame or maybe there's a way to create a high-resolution thumbnail of the last frame?

I am using iframe and I don't mind if video ends with replay button with last frame of video (just like on this page which is done using custom API: http://demo.tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/youtube-player.html, but I am just using iframe.

3

3 Answers

0
votes

You could create a function that is invoked at a particular interval, i.e. setInterval, and poll the YouTube player's current time (i.e. player.getCurrentTime()). If the current time happens to be > player.getDuration() - 1 or something, pause the player player.pauseVideo()

0
votes

As per my knowledge it is not possible, I am also trying to do that but still some glitch is observed in it

Refer the answer : "How to pause embedded youtube video on the last frame?"

-1
votes

I'm not sure this would fulfill all your needs, but did you try adding the &rel=0 option, as in:

<embed src="http://www.youtube.com/v/blabla?whatever...&rel=0" ...>

? Source: YouTube Embedded Players and Player Parameters.

HTH