Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream Not Autoplaying When Channel Goes From Offline To Online #235

Open
jakewardliverpool opened this issue Oct 2, 2020 · 9 comments
Open
Labels
product: embeds Twitch embeds (video or chat)

Comments

@jakewardliverpool
Copy link

jakewardliverpool commented Oct 2, 2020

An embedded stream isn’t playing when a channel goes from offline to online. The page requires a manual refresh. Once manually refreshed then the stream will play. This is the case for both iframe embeds and API.

@jakewardliverpool jakewardliverpool added the product: embeds Twitch embeds (video or chat) label Oct 2, 2020
@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Oct 2, 2020

Example code to replicate the issue?

This is the case for both iframe embeds and API.

What do you mean "API"?

@jakewardliverpool
Copy link
Author

jakewardliverpool commented Oct 2, 2020

`

<script src="https://embed.twitch.tv/embed/v1.js"></script> <script type="text/javascript"> var options = { width: 500, height: 500, channel: "openonline33", layout: "video", controls: false, muted: false, autoplay: true }; var player = new Twitch.Embed("twitchplayer", options); function finishcheck() { console.log('The stream has ended: ' + player.getEnded()); if (player.getEnded()) { document.getElementById("placeholder-text").innerHTML = "Thank You For Watching"; document.getElementById("stream-placeholder").style.display = "block"; } } window.setInterval(function() { finishcheck(); }, 5000); player.addEventListener(Twitch.Embed.VIDEO_PLAY, function() { console.log('The video is playing'); document.getElementById("stream-placeholder").style.display = "none"; }); </script>

`

Sorry when I refer to API, I mean via the code above.

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Oct 2, 2020

I was unable to replicate the reported issue using

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

Stream appeared live as the stream went live

image

This is in regular chrome, adblock/script blocking/privacy stuff disabled.

Didn't test incognito mode/other combinations

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Oct 3, 2020

I did some additional poking about.

It looks like on a intermittent basis, some streams are not getting a "stream start" event, and this issue effects the main website, and thus embeds as a result. So something is awry but it's unclear where. Additional notes on the matter have been published in another place.

It's not a "embeds" problem but a "main website" issue

@jakewardliverpool
Copy link
Author

jakewardliverpool commented Oct 5, 2020

Thanks @BarryCarlyon. Is there anywhere I can track the status of this issue?

@twitdude
Copy link

twitdude commented Oct 11, 2020

After talking with a bunch of Twitch partners on discord, many of them also see this issue of the stream not starting up correctly both on the main website and on embedded players on 3rd parties.

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Oct 11, 2020

@jbulava
Copy link
Member

jbulava commented Oct 12, 2020

Sharing this Issue and the UserVoice entry with the teams that own the channel page and embeds to investigate.

@Coldblackice
Copy link

Coldblackice commented Feb 11, 2021

Sharing this Issue and the UserVoice entry with the teams that own the channel page and embeds to investigate.

Any update on this? It's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: embeds Twitch embeds (video or chat)
Projects
None yet
Development

No branches or pull requests

5 participants