Check if Twitch Clip has ended / Get the time of a twitch clip

I’m embedding twitch clips in an iframe and i have a list of clips i want to play once the current one ended. Right now i m only able to change to the next clip by clicking a button which changes the iframe src.

Is there a way to check if a clip has ended? In the documentation i dont see any way to have an event called when a Clip has ended and nothing is playing.

The only solution i have seen in github repositorys was to use the video player instead of iframe but from my understand that is not allowed.

I’m using html and javascript with tmi.js to get the clips from chat.

The “dumb iframe” for clips provides no signals for ended.

So you need a uservoice.

The duration of clip can be fetched from the API though.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.