It appears that WebTorrent聽video playback is broken on Nightly, ever since the upgrade to WebTorrent v0.105.0.
The URL constructor is undefined on this line in webtorrent/lib/server.js:
The reason appears that webpack replaces this line:
with:
const URL = __webpack_require__(/*! url */ "./node_modules/url/url.js").URL
and the url package doesn't export URL as url.URL even though it exists in the chrome extension environment. I can fix this on the webtorrent side and publish a new version.
cc @yrliou
brave://inspect/#extensions) to see the exception.
Video plays
Easily reproduced
Nightly. Version 0.69.77 Chromium: 76.0.3809.62 (Official Build) nightly (64-bit)
There's a new release of webtorrent with the fix. Version 0.105.1. We just need to pull it into Brave.
Re-opening until https://github.com/brave/brave-core/pull/2989 is merged.
Moving this into the 0.70.x - Nightly milestone as per https://github.com/brave/brave-core/pull/2989.
This is fixed in 0.69.x too now because we upgrade WebTorrent to 0.105.1 in 0.69.x.
@yrliou Thank you for debugging this issue!
Verification passed on
Brave | 0.69.124 Chromium: 76.0.3809.132聽(Official Build)聽(64-bit)
-- | --
Revision | fd1acc410994a7a68ac25bc77513d443f3130860-refs/branch-heads/3809@{#1035}
OS | Ubuntu 18.04 LTS
Verified test plan from the description.
Was able to stream the video

No exception in the console(only warnings):

Verified passed with
Brave | 0.69.124 Chromium: 76.0.3809.132聽(Official Build)聽(64-bit)
-- | --
Revision | fd1acc410994a7a68ac25bc77513d443f3130860-refs/branch-heads/3809@{#1035}
OS | Mac OS X

Verification passed on
Brave | 0.69.124 Chromium: 76.0.3809.132聽(Official Build)聽(64-bit)
-- | --
Revision | fd1acc410994a7a68ac25bc77513d443f3130860-refs/branch-heads/3809@{#1035}
OS | Windows聽10 OS Version 1803 (Build 17134.523)
