-
-
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
Volume only gets set after players are loaded #23
Comments
To replicate:
|
With this is looks like we have a number of method calls which may need to be queued before execution. Maybe we should add a |
Hopefully this is sorted in Inside |
There are still some volume issues appearing (though less consistently than before). I'll try and get a more cohesive test case together later, but a brief look this morning suggests that the volume isn't properly respected when new YouTube videos are loaded into an existing player. |
Hm. I wonder if we should just set volume every time |
Ah I believe the behaviour you are seeing is because |
I've had a further look at this. The YouTube player happens to be the only player that doesn't call |
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
Setting it later was causing setVolume not to fire Fixes cookpete/react-player#23
If you set the volume of
ReactPlayer
when you instantiate it, (at least) the YouTube and SoundCloud players will not respect it (and seem to use0.8
). I imagine this is becausesetVolume
calls are currently stopped instead of queued when the player isn't ready yet.The text was updated successfully, but these errors were encountered: