WebTorrent: Autoplay is sometimes blocked if media metadata is not ready yet
See original GitHub issueDescription
If the media element does not have metadata available immediately when the media viewer loads, then autoplay will fail with a DOMException
.
Steps to Reproduce
- Load the torrent from https://ia802608.us.archive.org/18/items/gd1975-06-17.aud.unknown.87560.flac16/gd1975-06-17.aud.unknown.87560.flac16_archive.torrent
- Start the download.
- Scroll to the bottom of the file list and select the last MP3 file in the list (file number 111). (This is so that the file data is not likely to be downloaded by webtorrent yet.)
- The file should eventually start playing. There should be no warning that autoplay was blocked.
Actual result:
Media sometimes does not autoplay.
Expected result:
Media should always autoplay.
Reproduces how often:
Intermittent issue
Brave version (brave://version info)
master
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
WebTorrent API Documentation
WebTorrent Documentation. WebTorrent is a streaming torrent client for Node.js and the web. WebTorrent provides the same API in both environments.
Read more >WebTorrent Desktop Version History - VideoHelp
7.0, some torrent metadata (file list, selected files, whether torrent is streamable) will be cleared. Just start the torrent to re-populate the metadata....
Read more >GitHub reinstates Popcorn Time code - Hacker News
Seems to be around on torrent sites these days. (At least, most of it.) But yes, it's frustrating that there's media out there...
Read more >The Complete guide to Fen on Kodi [Dec 2022]
After a brief absence, one of our favorite Kodi add-ons is up and running again. Fen allows you to stream movies and TV...
Read more >Untitled
Pshiiit boutique enchanted polish, Cmake command not found, ... A shade of vampire series set, Savong free school, Still photography tutorial, Crowther sled ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The thing we added above is “Content Setting”, the brave autoplay list is beyond that. Every time autoplay permission request coming, we check brave autoplay whitelist first and then check content setting if host doesn’t match anything in the whitelist
Verification passed on
The issue still reproduces. Logged https://github.com/brave/brave-browser/issues/6195.
Verification PASSED on
macOS 10.14.6 x64
using the following build:Verification passed on