WebTorrent: Video streaming is broken since upgrade to WebTorrent v0.105.0
See original GitHub issueDescription
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
Steps to Reproduce
- Go to https://webtorrent.io/free-torrents
- Click on Big Buck Bunny (torrent file)
- Start download
- Right click on “Big Buck Bunny.mp4” and “Open Link in New Tab” (to workaround #3966)
- The video does not load.
- Check the WebTorrent extension background process (via
brave://inspect/#extensions
) to see the exception.
Actual result:
Expected result:
Video plays
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Nightly. Version 0.69.77 Chromium: 76.0.3809.62 (Official Build) nightly (64-bit)
Version/Channel Information:
- Can you reproduce this issue with the current release? No
- Can you reproduce this issue with the beta channel? No
- Can you reproduce this issue with the dev channel? No
- Can you reproduce this issue with the nightly channel? Yes
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
WebTorrent FAQ
Frequently Asked Questions. What is WebTorrent? WebTorrent is the first torrent client that works in the browser. YEP, THAT'S RIGHT. THE BROWSER.
Read more >webtorrent | Yarn - Package Manager
Torrent client for node. · Insanely fast · Download multiple torrents simultaneously, efficiently · Pure Javascript (no native dependencies) · Exposes files as ......
Read more >WebTorrent Desktop Version History - VideoHelp
v0.24.0 - 2020-08-28. Added Support the .m2ts video container format (hicom150) Changed Update to Electron 10.1.0 #1864 (feross)
Read more >AUR (en) - webtorrent-desktop-bin - Arch Linux
Streaming torrent client. Upstream URL: https://webtorrent.io/desktop. Licenses: MIT. Conflicts: webtorrent-desktop, webtorrent-desktop-git. Provides ...
Read more >WebTorrent Desktop - Browse /v0.24.0 at SourceForge.net
WebTorrent Desktop Files. The streaming torrent app. For Mac, Windows, and Linux. This is an exact mirror of the WebTorrent Desktop project, ...
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
Verification passed on
Verified test plan from the description.
Was able to stream the video No exception in the console(only warnings):
Verified passed with
Verification passed on
This is fixed in 0.69.x too now because we upgrade WebTorrent to 0.105.1 in 0.69.x.