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

Hard code autoplay to true for Twitch SDK happiness #18

Closed
wants to merge 1 commit into from

Conversation

shahrodkh
Copy link

@shahrodkh shahrodkh commented Oct 13, 2018

Motivation for this PR:
Recently it has surfaced that the player will not rerender when a new Twitch URL is passed. This means, when you change the URL of your live video, it will not appear until after a refresh, or play/pause, or switching channels. More details on this bug here cookpete#498

Yes, this is hard coding, yes it looks hacky, but it's actually not! The playing prop should be used to play and pause the video, not to control the autoplay value for loading the Twitch SDK. In our case, we want Twitch videos to always autoplay (I think).

Testing instructions:
create two twitch_live type videos that are both currently live
put them in your livestreams collection
see the top video play
switch the order, see the new video play
switch back and forth a few times -- should work indefinitely

Has been tested on Chrome, Firebox, and iOS.

@stphnlngdncoding
Copy link

Nice find. Whats with the dist diffs??

@shahrodkh
Copy link
Author

@stphnlngdncoding new build so new dist diffs.. don't think we need to check it in but all past PRS have /shrug

@shahrodkh
Copy link
Author

shahrodkh commented Oct 16, 2018

made changes to video saga flow instead https://github.com/lessthan3/maestro-web/pull/1036

@shahrodkh shahrodkh closed this Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants