Commit Graph

46 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
3ba4b563ac move crash reporter placeholder 2016-03-21 20:19:30 -07:00
Feross Aboukhadijeh
f71cda65ef Prevent multiple instances of the app from running at the same time
Fix #167
2016-03-20 03:54:25 -07:00
Feross Aboukhadijeh
9f46da5477 Linux: Register .torrent file/magnet link handlers 2016-03-20 03:19:32 -07:00
Feross Aboukhadijeh
765d3bde56 detect if app is running in production
If app is running in “production” (i.e. it has been packaged), then it
will be invoked with one less argument.

WebTorrent.exe arguments

vs.

electron.exe /path/to/app arguments

We need to detect this to correctly handle command line arguments.
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
84a87dd1de log command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
afe5151e28 Handle command line arguments 2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
2cc8ebc9f8 Windows: register protocol handler for magnet links 2016-03-19 20:32:18 -07:00
Feross Aboukhadijeh
0f263b89e5 OS X: open magnet links in WebTorrent 2016-03-19 17:09:05 -07:00
Feross Aboukhadijeh
4f40e5d963 Fix Exception when dropping .torrent file onto Dock icon when app is closed
Fixes #154
2016-03-19 16:07:35 -07:00
Feross Aboukhadijeh
309e509a76 Dock icon should accept all file types (fix #156) 2016-03-19 02:48:45 -07:00
Feross Aboukhadijeh
4fef6d00a8 main modules use require() instead of arguments 2016-03-09 15:20:28 -08:00
Feross Aboukhadijeh
713c87729a all main modules have init() function 2016-03-09 15:15:04 -08:00
Feross Aboukhadijeh
29298a1074 Register "media key" for play/pause 2016-03-09 03:08:21 -08:00
Feross Aboukhadijeh
944a47be72 allow the main process to dispatch any event to the renderer 2016-03-09 02:36:10 -08:00
Feross Aboukhadijeh
7eeda57b57 Add alternate fullscreen shortcut ⌘+Shift+F (fix #26)
Uses https://npmjs.com/package/electron-localshortcut to workaround a
bug in Electron (https://github.com/atom/electron/issues/1334).

We can remove `electron-localshortcut` once that bug is fixed.
2016-03-05 17:25:22 -08:00
Feross Aboukhadijeh
82fc6cabe8 move config.startTime to app.startTime
This also captures the true start time since it runs before any
require() calls, so the time to require() will be taken into account.
2016-03-04 16:10:14 -08:00
Nate Goldman
9a0f361e14 separation of concerns 2016-03-04 13:14:22 -08:00
DC
52e433fd38 Scrubbing works 2016-03-04 04:33:41 -08:00
Feross Aboukhadijeh
0c0d324cf4 remove unused state 2016-03-04 01:26:12 -08:00
Feross Aboukhadijeh
da3500d392 simplify deleteTorrent() 2016-03-04 01:26:04 -08:00
Feross Aboukhadijeh
3f60f1c7f2 only produce poster image from valid file types 2016-03-04 01:13:25 -08:00
Feross Aboukhadijeh
75a33228e8 fix back button exception 2016-03-04 01:13:24 -08:00
DC
28948e0dbc Custom video controls + button to delete torrents
Also:
* Clean up the state object a bit
* Simplify, factor out torrent-list.js
2016-03-04 00:48:19 -08:00
Feross Aboukhadijeh
d72999df57 move more state into state.view 2016-03-03 17:19:31 -08:00
Feross Aboukhadijeh
68824b40dd move dock state to renderer process 2016-03-03 16:44:19 -08:00
Feross Aboukhadijeh
36b242cc72 fix: maintain correct aspect ration when video is larger than screen 2016-03-03 16:04:00 -08:00
Feross Aboukhadijeh
2b18821416 dock: inc badge when torrent completes 2016-03-03 15:52:42 -08:00
Feross Aboukhadijeh
5820546dc4 dock: only show progress when active torrents exist 2016-03-03 15:44:21 -08:00
Feross Aboukhadijeh
8041e5faa3 no TURN server 2016-03-03 15:43:41 -08:00
Feross Aboukhadijeh
bf1a0bf376 regular update -> 1000ms 2016-03-03 13:53:04 -08:00
Feross Aboukhadijeh
a744b1ee42 throttled updates -> 1000ms 2016-03-03 13:52:51 -08:00
Feross Aboukhadijeh
aed424d0bc dock: show client progress 2016-03-03 13:52:32 -08:00
Feross Aboukhadijeh
518edbc67d remove redundant comments 2016-03-03 01:43:24 -08:00
Feross Aboukhadijeh
3143e543c8 show more numbers in the UI
this needs to be simplified later, but let’s show it for now
2016-03-03 01:34:45 -08:00
Feross Aboukhadijeh
abd865a837 move webtorrent client stuff to separate file 2016-03-03 01:17:24 -08:00
Feross Aboukhadijeh
4d094c8209 automatically size player on start 2016-03-03 01:05:00 -08:00
Feross Aboukhadijeh
b861f39b95 chromecast: show WebTorrent before torrent name 2016-03-02 19:53:12 -08:00
Feross Aboukhadijeh
e2ce06f3b7 fix chromecast support 2016-03-02 18:50:06 -08:00
Feross Aboukhadijeh
6d95cd7285 add header 2016-03-02 17:59:59 -08:00
Feross Aboukhadijeh
092ba2ba0f don't override paste command in dev tools 2016-03-02 16:13:04 -08:00
Feross Aboukhadijeh
c1e2b9ec5c add chromecast/airplay support 2016-03-02 04:14:17 -08:00
Feross Aboukhadijeh
7a22e73840 new menu option: creating new torrents 2016-03-02 02:33:18 -08:00
Feross Aboukhadijeh
2ff2031ed1 add basic menus 2016-03-02 02:09:13 -08:00
Feross Aboukhadijeh
a17bf15382 update UI after errors 2016-03-02 02:08:18 -08:00
Feross Aboukhadijeh
1350e3c5b5 UI progress 2016-03-01 23:38:38 -08:00
Feross Aboukhadijeh
1bfecb80a2 move webtorrent back into main window
We keep webtorrent running when the window is “closed” by hiding the
window instead.
2016-03-01 20:48:22 -08:00