YouTube iframe API disable skipping -


taking @ youtube iframe api, there appears no existing call or state indicates whether or not user trying skip point in video. ideally, in implementation either disable youtube controls entirely (which apparently difficult perspective of browser-compatibility) or detect when user trying skip, , return him point in video before attempt skip made.

is there way this?

if you'll disabling controls in iframe, try using control = 0.

<iframe id="ytplayer" type="text/html" width="720" height="405" src="https://www.youtube.com/embed/?controls=0&list=plecdlpo-xhwfzevynmsmosfdrsizxhzi0&listtype=playlist" frameborder="0" allowfullscreen> 

for customize player control, try using tutorial - how control youtube's video player javascript.

for example, playback control (play , pause):

$('#play').on('click', function () {     player.playvideo(); });  $('#pause').on('click', function () {     player.pausevideo(); }); 

hope help.


Comments