Commit Graph

33 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
2549307a7e style 2016-04-05 18:34:09 -07:00
Feross Aboukhadijeh
cf3b319fc7 Notification: Focus/unminimize/activate window on click
Before, we would only focus, but not unminimize or show, etc.
2016-04-05 18:33:48 -07:00
DC
db9e3e90c5 WebTorrent process
* Separate hidden window, with its own renderer process, for WebTorrent
  (Must be a window. You cannot run WebRTC at all in a Web Worker, and you can't
   run it well in a node process like the electron main process.)

* Disabled the create-torrent-modal for now. That gives us a consistent UX
  regardless of whether the user dragged files or folders onto the app or opened
  the Create New Torrent menu item.

* Main process routes all messages between the main and webtorrent windows.

* The renderer index.js is smaller now (but still too big), with the WebTorrent
  interface moved to webtorrent.js / it's own process.

* The UI should be faster now, and should not lag under load.
2016-04-05 15:36:26 -07:00
Feross Aboukhadijeh
3b805f6cc3 try-catch console.timeEnd()
If user refreshes after renderer crashes, the this line throws an
exception
2016-04-04 20:40:39 -07:00
Feross Aboukhadijeh
f7482fce5b remove debug dependency 2016-04-01 00:09:51 -07:00
DC
840966c7f0 Remove global shortcuts when player isn't active 2016-03-28 22:57:40 -07:00
Feross Aboukhadijeh
589880f1e3 OS X: Prevent white flash on window open
We got the window to run less JS but now it’s shown by the main process
too soon! This fixes that with a setTimeout.

Perhaps when this issue is fixed
(https://github.com/atom/electron/issues/861) we can remove the timeout.
2016-03-27 00:27:28 -07:00
Feross Aboukhadijeh
9ef1d0a605 Keyboard shortcuts: volume shortcuts should be local
`globalShortcut` will register the shortcut at the OS level, even when
the app is not focused.

Using `localShortcut` would work, but let's put it in the top menu
instead, where all the other shortcuts are.
2016-03-26 20:04:29 -07:00
Feross Aboukhadijeh
0cf89600c0 es6ify 2016-03-26 19:58:04 -07:00
grunjol
4673354703 fixes #116 Add Unity launcher icons 2016-03-25 16:31:12 -03:00
Feross Aboukhadijeh
f0df9011df add log.js module for renderer logging 2016-03-21 20:19:30 -07:00
DC
15e3e49aa4 Fix #176: close window on OSX 2016-03-21 04:06:54 -07:00
DC
fe943db448 Fix window bounds restore on OSx 2016-03-21 03:56:56 -07:00
DC
511c60671c Restore window size correctly
* Don't attempt to change size when maximized or fullscreen
* Bugfix: restore window size correctly when returning from a video so big that it that caused the window to maximize
2016-03-21 02:34:56 -07:00
Feross Aboukhadijeh
81bb8eea7b do all logging in the renderer 2016-03-19 20:32:19 -07:00
DC
381087208c Fix opening files and folders 2016-03-19 19:01:17 -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
Nate Goldman
a1be66cb96 simplify power save block calls, fix #141 2016-03-14 11:38:59 -07:00
DC
8108c407d3 Torrent details
Show file list, open folder containing downloaded files, open individual files, play/pause individual videos
2016-03-14 09:18:20 -07:00
Nate Goldman
52fc2d88c9 Block "Power Saver" mode while video is playing
fix #106
2016-03-11 16:43:36 -08:00
Feross Aboukhadijeh
713c87729a all main modules have init() function 2016-03-09 15:15:04 -08:00
DC
c176e3897a Add Torrent Link modal 2016-03-09 04:27:01 -08:00
Feross Aboukhadijeh
56536ad55e Move paste to renderer
The ‘clipboard’ module works in the renderer without using the ’remote’
package. So we can eliminate one IPC call this way :)
2016-03-08 21:06:20 -08:00
Feross Aboukhadijeh
0cca67a436 fix fullscreen on Windows
The win.isFullScreen() state takes a second to update so we should just
pass the state manually into onToggleFullScreen().
2016-03-07 22:22:25 -08:00
Feross Aboukhadijeh
8ab2a1415b update player window title to torrent name (Windows, Linux)
This also moves all the state “diffing” for purposes of updating the
app’s window via Electron APIs into one function updateElectron().
2016-03-07 22:20:39 -08:00
DC
4b890ee9f6 Show Blender Foundation videos by default
* Finishes the saved torrents feature!
* Torrents load and save correctly. Poster is autogenerated only once.
* Torrents can be paused and restarted
* Download button indicates state:
 - White means paused
 - Pulsating green means downloading
 - Solid green means finished downloading, only seeding
2016-03-07 22:15:47 -08:00
Feross Aboukhadijeh
f32825a79e Don't resize window if maximized (when player is opened)
For #3
2016-03-07 18:42:16 -08:00
DC
713c391c05 Add download button
Doesn't do anything yet
2016-03-07 00:01:32 -08:00
Feross Aboukhadijeh
79c2295775 move isFullScreen check to ipc.js 2016-03-05 18:28:54 -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
DC
b7b30ed7c4 Cast buttons and fullscreen in player controls 2016-03-05 01:09:34 -08:00
Feross Aboukhadijeh
d148d4c97b Fix IPC calls after PR #4
No biggie, just FYI @ngoldman
2016-03-04 16:15:30 -08:00
Nate Goldman
9a0f361e14 separation of concerns 2016-03-04 13:14:22 -08:00