Commit Graph

124 Commits

Author SHA1 Message Date
sayhiben 16166990ed Fix build issues with main. Continue on build issues for renderer. Add missing dependencies, update webpack configs 2024-08-20 11:38:12 -07:00
Max Goodhart cf73dcf604 WIP attempt to wire up electron-forge
I wasn't able to get this fully working, IIRC; the challenge was getting
the webpack build for web stuff to happen reliably.
2024-08-19 17:50:50 -07:00
sayhiben 00fccca0fa Fix bad import 2024-08-18 20:31:57 -07:00
sayhiben bb6724a1ba Clean up, fix duplicates 2024-08-10 23:23:09 -07:00
sayhiben c5e46c7f4d Add debug logging, remove file-based logging for now 2024-08-10 23:12:40 -07:00
sayhiben e14947b06e Fix log level 2024-08-10 22:10:51 -07:00
sayhiben a3ac672769 Fix build/run errors: add missing dependencies on windows 11, add prune (clean build) script, add "start-dev" script with increased verbosity, configure output for webpack, configure basic file-based logging, fix control's export 2024-08-10 22:02:05 -07:00
Max Goodhart a581ba2c6f Quick and dirty mass dependency update 2023-04-14 22:22:37 -07:00
Max Goodhart fd75dba562 Add support for playing HLS m3u8/m3u URLs 2022-06-05 14:19:53 -07:00
Max Goodhart 441897ad3e Remove default stream list endpoint 2020-12-19 22:54:25 -08:00
Max Goodhart e10507780e Don't remove view from onscreen window when reloading
I'm observing that when a BrowserView is removed from the main window
and added to the offscreenView, it loses visibility state and RAFs no
longer execute. This prevents the subsequent video load from succeeding
on some sites like Twitch. As a workaround, we'll no longer offscreen the
view when reloading. This means the view may linger onscreen for a
moment, and potentially if there are issues loading there might be
glitches onscreen. I'd like to find a better solution for moving the
view offscreen in the future and keeping it rendering.

If this causes disruptive glitches, we could either:

- Remove and recreate the view on reload (wasteful, ensures clean
starts)

- Size the view down to 1x1 pixels so it is barely visible (could this
interfere with responsive designs?)
2020-11-12 01:05:14 -08:00
Max Goodhart a25d2211cd Update view cleanup code (destroy method was removed from electron) 2020-11-12 00:24:24 -08:00
Max Goodhart 6312081477 Ensure offscreen window sized to full stream dimensions 2020-11-12 00:06:55 -08:00
Max Goodhart 9ba7dc564b Set bounds after adding BrowserView
Otherwise apparently the view won't display.
2020-11-11 23:54:50 -08:00
Max Goodhart c1b9d46fa7 Skip unnecessary view re-positions 2020-11-11 23:39:52 -08:00
Max Goodhart 7f2868e0ae Fix incorrect display options lookup 2020-11-11 23:27:44 -08:00
Max Goodhart d30fc8e4d7 Clarify comment 2020-11-11 22:58:58 -08:00
Max Goodhart 4648a07e15 Update bounds before adding BrowserView to window 2020-11-11 22:30:52 -08:00
Max Goodhart 6ea529c26f Remove redundant render in offscreen win when positioning 2020-11-11 22:30:05 -08:00
Max Goodhart 18bdae3b16 Force BrowserView visibility to start visible
This fixes Twitch videos not loading on the offscreen window.
2020-11-11 21:45:40 -08:00
Max Goodhart 531bfa1756 Size offscreen window to match main window
This should hopefully help preload videos with appropriate quality.
2020-11-11 21:44:54 -08:00
Max Goodhart 8dde079bd0 Preload videos with full viewport size
Hopefully this will cause them to load with higher quality settings.
2020-11-11 11:54:48 -08:00
Max Goodhart 1d2d961982 Remove unused / noop offscreen rendering
At one point I think this might have helped make pages treated as
"visible" when added to the window, but it doesn't seem to have any
effect.
2020-11-11 00:00:56 -08:00
Max Goodhart 222e9bc36f Satisfy worldSafeExecuteJavaScript warning 2020-11-10 23:39:05 -08:00
Max Goodhart 45385608b9 Persist custom stream ids by URL like other streams
This makes it possible to edit a custom stream label in place without
changing the id and causing it to be removed from the wall.
2020-11-10 23:33:24 -08:00
Max Goodhart f49e52f09d Fix options update for multiple views with same URL 2020-11-09 14:30:43 -08:00
Max Goodhart c219656564 Implement stream rotation, overhaul local data, add preload script
This moves a bunch of the architectural improvements from the 'iframe'
branch in to main in the pursuit of implementing stream rotation driven
by a stream data field.
2020-11-09 12:12:05 -08:00
Max Goodhart d32e8a0f41 Add experimental Twitch plays functionality 2020-11-05 22:12:54 -08:00
Max Goodhart e77ac9ba3a Remove unused event 2020-11-05 22:12:54 -08:00
Max Goodhart 2cf3e49ef6 Fix name mismatch 2020-11-05 22:12:53 -08:00
Max Goodhart b1a5a3d27b Disable text diffing when calculating state deltas 2020-11-05 00:58:15 -08:00
Max Goodhart eeadb061bb Add (opt-outable) Sentry error tracking telemetry 2020-10-10 16:28:10 -07:00
Max Goodhart 4ee2f3ad2a Stop filtering out offline/unknown streams from list 2020-10-08 23:40:33 -07:00
Max Goodhart 1e25b0622c Sandbox all browser contexts 2020-10-08 22:55:20 -07:00
Max Goodhart 4726954cb2 Remove spurious console.log 2020-09-09 23:33:31 -07:00
Max Goodhart 84e97b9310 Make active highlight color configurable 2020-09-09 23:03:55 -07:00
Max Goodhart e2c5414608 Add UI for streamdelay start/stop functionality 2020-09-06 21:08:49 -07:00
Max Goodhart 066dea3112 Prevent views from navigating away from the current page 2020-08-29 22:50:45 -07:00
Max Goodhart 59b002f243 Remove video re-play (likely cause of Fb looping) 2020-08-28 22:24:59 -07:00
Max Goodhart 4b5e2931eb Add hacky support for playing audio-based pages 2020-08-26 23:52:30 -07:00
Max Goodhart d8e51776e9 Add ability to set stream audio playing in background 2020-08-26 23:52:29 -07:00
Max Goodhart 21bfacd84b Add tests for auth system, refactors for testing 2020-08-26 11:22:20 -07:00
Max Goodhart 6e2db3e1c8 Disable remote module in stream views 2020-08-26 11:22:19 -07:00
Max Goodhart a7b5bb3d1b Persist auth data across restarts 2020-08-26 11:22:19 -07:00
Max Goodhart 5063a95ab7 Add invite links with role based access control 2020-08-26 11:22:18 -07:00
Paul Seelman 83621cec9e Fix DPI scaling 2020-08-18 00:19:44 -07:00
Max Goodhart a9585fd7c8 Remove unused parameter 2020-08-11 11:02:16 -07:00
Max Goodhart afb9d025c4 Filter offline streams when stream kind prop unset 2020-07-27 15:57:33 -07:00
Max Goodhart b70de7eebc Only filter offline videos from stream data 2020-07-27 15:49:16 -07:00
Max Goodhart 38ea3df625 Add support for background and overlay pages 2020-07-27 11:50:56 -07:00