Youtube-api - Time Event

Is it possible to create an event when the built-in YouTube IFrame reaches a certain frame?

I am looking for something similar to an event timeupdatefor an HTML5 player.

I'm not looking to use setIntervalto check the current position (as indicated in the Youtube API event at the specified time ), I would like to know if there is a native API to support such a function.

+4
source share
1 answer

This is not possible, since there is no such event in the iFrame API . Although this is not possible, you can try something like this if you need a video to put an end to a specific item, for example, you can use the download options for this, for example.

loadVideoById({'videoId': 'bHQqvYy5KYo',
           'startSeconds': 5,
           'endSeconds': 60,
           'suggestedQuality': 'large'});

onStateChange , , ..

, , ( iOS, , ).

". , Safari iOS - ."

, , / , .

0

Source: https://habr.com/ru/post/1672118/


All Articles