404 Error on XHR GET Request

When using the API to embed a live stream - if the channel is not already live we get a 404 error on an XHR GET request. And consequently event listeners for Twitch.Embed.VIDEO_PLAY don’t work.

However, if the channel is already live on page load we don’t get the error and the event listener works.

It’s worth noting that the site is password protected. Could this have an impact.

Thanks
Jake

Unable to replicate.

The only 404 I get is to the m3u8 playlist, which is expected for a offline channel

Sample code:

https://twitch.extensions.barrycarlyon.co.uk/temp/player_test.html

Time of writing the channel is offline.

I bound a video_play and got a video play as the stream went live

So I suppose what are you seeing 404?

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