-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setting Twitch Player autoplay to false causes permanent loading state #498
Comments
david-hub024
pushed a commit
to david-hub024/React_VideoPlayer
that referenced
this issue
Dec 23, 2018
david-hub024
pushed a commit
to david-hub024/React_VideoPlayer
that referenced
this issue
May 23, 2020
albanqoku
added a commit
to albanqoku/react-player
that referenced
this issue
Feb 24, 2021
Webmaster1116
added a commit
to Webmaster1116/video-player
that referenced
this issue
May 20, 2021
webmiraclepro
added a commit
to webmiraclepro/video-player
that referenced
this issue
Sep 9, 2022
philip-luther
added a commit
to philip-luther/react-player
that referenced
this issue
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running into a bug that occurs when the Twitch SDK is initialized as such
The symptom is that, after the player is rendered initially with a URL, then once again with a different URL, from this point forward no new URLs will cause a rerender of the player. You can reproduce this in the demo:
demo/App.js
edit initial state:Test A
Test B
Now you are in a broken state. Try to click any of the Twitch test videos and they will not render.
I have stepped through the code and can provide these details on the flow:
Twitch.Player.READY
Twitch.Player.PAUSE
Twitch.Player.PLAY
Twitch Test B
this.isLoading
to truenextProps.url
but DOES NOT emitTwitch.Player.PLAY
isLoading
is stuck at true, meaning any further URLs passed will not make it toload()
I am not sure if this is something you can handle in your library, since I can only assume the Twitch SDK should emit the
PLAY
event.I also feel that using the
playing
prop to controlautoplay
in the Twitch SDK is misleading. This prop should be used toplay
orpause
the player. In fact, once thegetSDK
method is called on the Twitch Player, it is never called again unless you tear down the parent. Maybe you should expose a way to force callgetSDK
again.Thanks for your time
The text was updated successfully, but these errors were encountered: