javascript - Embed youtube video with last frame -
when playing embedded youtube videos, don't want display thumbnail when completed. instead i'd end last frame. possible?
either can pause on last frame or maybe there's way create high-resolution thumbnail of last frame?
i using iframe , don't mind if video ends replay button last frame of video (just on page done using custom api: http://demo.tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/youtube-player.html, using iframe.
you create function invoked @ particular interval, i.e. setinterval
, , poll youtube player's current time (i.e. player.getcurrenttime()
). if current time happens > player.getduration() - 1
or something, pause player player.pausevideo()
Comments
Post a Comment