question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebTorrent: Autoplay is sometimes blocked if media metadata is not ready yet

See original GitHub issue

Description

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

  1. 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
  2. Start the download.
  3. 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.)
  4. 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:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
darkdhcommented, Sep 20, 2019

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

0reactions
btlechowskicommented, Sep 30, 2019

Verification passed on

Brave 0.69.129 Chromium: 77.0.3865.90 (Official Build) (64-bit)
Revision 58c425ba843df2918d9d4b409331972646c393dd-refs/branch-heads/3865@{#830}
OS Ubuntu 18.04 LTS

The issue still reproduces. Logged https://github.com/brave/brave-browser/issues/6195. image

Verification PASSED on macOS 10.14.6 x64 using the following build:

Brave 0.69.129 Chromium: 77.0.3865.90 (Official Build) (64-bit)
Revision 58c425ba843df2918d9d4b409331972646c393dd-refs/branch-heads/3865@{#830}
OS macOS Version 10.14.6 (Build 18G95)

Verification passed on

Brave 0.69.130 Chromium: 77.0.3865.90 (Official Build) (64-bit)
Revision 58c425ba843df2918d9d4b409331972646c393dd-refs/branch-heads/3865@{#830}
OS Windows 10 OS Version 1803 (Build 17134.1006)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found