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

New Chrome autoplay policy blocks demo #1339

Closed
isaackwan opened this issue Mar 26, 2018 · 5 comments
Closed

New Chrome autoplay policy blocks demo #1339

isaackwan opened this issue Mar 26, 2018 · 5 comments

Comments

@isaackwan
Copy link

@isaackwan isaackwan commented Mar 26, 2018

The new Chrome autoplay policy blocks the demo at https://webtorrent.io/.

Example screenshot:
screenshot from 2018-03-27 00-15-56

My user agent string:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.33 Safari/537.36
@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Mar 26, 2018

That's after you click begin demo??

@isaackwan

This comment has been minimized.

Copy link
Author

@isaackwan isaackwan commented Mar 29, 2018

Umm, if I recall correctly, I don't have to click anything to start the demo, it just loads on its own, no?

In more abstract words:

Expected Behaviour

  1. Visit https://webtorrent.io/
  2. The WebTorrent instance starts downloading stuff
  3. The video starts playing on its own

Observed Behaviour

  1. Visit https://webtorrent.io/
  2. The WebTorrent instance starts downloading stuff
  3. The video is not played

Unfortunately because of the Media Engagement Index it's hard to reproduct/test. For instance, the video is blocked on my Linux, but not blocked on my Windows installation which presumably because I had visited this site before.

@isaackwan

This comment has been minimized.

Copy link
Author

@isaackwan isaackwan commented Mar 29, 2018

Ah, I see why now. The "begin demo" button only shows on small viewports (e.g. phones).

@isaackwan

This comment has been minimized.

Copy link
Author

@isaackwan isaackwan commented Mar 29, 2018

I've written a quick test to show how it fails: isaackwan/webtorrent.io@598cca1

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 19, 2018

Thanks for reporting this issue. I opened an issue on the website repo here: webtorrent/webtorrent.io#128

Working on fixing this right now. Let's continue discussion in that issue.

@feross feross closed this Apr 19, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.