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: Video streaming is broken since upgrade to WebTorrent v0.105.0

See original GitHub issue

Description

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:

https://github.com/webtorrent/webtorrent/blob/78d98d9fa45598b63fb0fec013036e35d167f6c3/lib/server.js#L80

The reason appears that webpack replaces this line:

https://github.com/webtorrent/webtorrent/blob/78d98d9fa45598b63fb0fec013036e35d167f6c3/lib/server.js#L6

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

  1. Go to https://webtorrent.io/free-torrents
  2. Click on Big Buck Bunny (torrent file)
  3. Start download
  4. Right click on “Big Buck Bunny.mp4” and “Open Link in New Tab” (to workaround #3966)
  5. The video does not load.
  6. Check the WebTorrent extension background process (via brave://inspect/#extensions) to see the exception.

Actual result:

Screen Shot 2019-07-23 at 3 37 52 PM

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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
btlechowskicommented, Sep 6, 2019

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 image No exception in the console(only warnings): image

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
  • Verified test plan from the description Screen Shot 2019-09-06 at 1 44 37 PM

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)
  • Verified the STR from the description - there are no exceptions in the extension background page

image

1reaction
yrlioucommented, Sep 4, 2019

This is fixed in 0.69.x too now because we upgrade WebTorrent to 0.105.1 in 0.69.x.

Read more comments on GitHub >

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

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