014017604d01b64a15210ca678bd0984c1df8324
Before this commit, we tweaked the subtitle position by modifying the VTT file, line by line with a regex because I did not know it was possible to use CSS for it. But apparently there are Shadow DOM elements that we can use instead. This new approach improves: - Wrapping long lines. Before, the text would go off the edge of the screen. Now it wraps intelligently. - The subtitles move up to get out of the way of the controls when those are visible.
WebTorrent Desktop
The streaming torrent client. For OS X, Windows, and Linux.
Install
WebTorrent Desktop is still under very active development. You can download the latest version from the releases page.
Screenshot
How to Contribute
Install dependencies
$ npm install
Run app
$ npm start
Package app
Builds app binaries for OS X, Linux, and Windows.
$ npm run package
To build for one platform:
$ npm run package -- [platform]
Where [platform] is darwin, linux, win32, or all (default).
The following optional arguments are available:
--sign- Sign the application (OS X, Windows)--package=[type]- Package single output type.deb- Debian packagezip- Linux zip filedmg- OS X disk imageexe- Windows installerportable- Windows portable appall- All platforms (default)
Note: Even with the --package option, the auto-update files (.nupkg for Windows, *-darwin.zip for OS X) will always be produced.
Windows build notes
To package the Windows app from non-Windows platforms, Wine needs to be installed.
On OS X, first install XQuartz, then run:
brew install wine
(Requires the Homebrew package manager.)
Code Style
License
MIT. Copyright (c) WebTorrent, LLC.
Languages
JavaScript
94.3%
CSS
4.6%
HTML
0.6%
EJS
0.3%
Shell
0.2%
