Commit Graph

206 Commits

Author SHA1 Message Date
Rafostar
57ceb17100 Use proper ID for remote app 2020-12-16 14:42:40 +01:00
Rafostar
04f1d2397f Merge pull request #29 from Rafostar/remote-controller
Control player remotely
2020-12-16 10:55:32 +01:00
Rafostar
b6c947efa6 Fix custom CSS loading for remote app 2020-12-15 23:26:24 +01:00
Rafostar
234451f62a Move defined play flags to prefs
They are used only in prefs and it allows starting prefs in web app.
2020-12-15 22:49:06 +01:00
Rafostar
a056fac1c1 Add logic responsible for starting web app 2020-12-15 22:35:14 +01:00
Rafostar
a1e95dc012 Close remote app on error or disconnect 2020-12-15 19:03:58 +01:00
Rafostar
dde35270ff Consistent source filenames 2020-12-15 18:27:18 +01:00
Rafostar
5231a1f225 Add initial WebSocket client app 2020-12-15 18:20:48 +01:00
Rafostar
8564cc9617 Move WebSocket message parsing to another file
Allows reusing the same code for the client app
2020-12-15 18:19:24 +01:00
Rafostar
4c6e5607fb Check if player has widget before trying to focus it 2020-12-15 18:16:59 +01:00
Rafostar
7431f58034 Prefer "set_playlist" over "set_media" method 2020-12-15 18:15:40 +01:00
Rafostar
6d4cd494fe Customize web server listening port 2020-12-15 14:16:31 +01:00
Rafostar
ca6322339f Do not forget port after web server is stopped 2020-12-15 14:05:48 +01:00
Rafostar
b4e52d654b Pass WebSocket data without additional signal connection 2020-12-15 12:36:06 +01:00
Rafostar
b756c15e46 Fix non-updated closing state 2020-12-15 11:59:05 +01:00
Rafostar
062a307613 Add stop method for web app 2020-12-15 11:51:25 +01:00
Rafostar
24a105fbe4 Do not drop old GTK4 support
Recent GTK4 git is way too buggy. We cannot update the GTK version above 3.99.4 yet. So add compatibility with newer versions without dropping support for older ones.
2020-12-14 21:30:00 +01:00
Rafostar
39e4e54ad8 Apply icon size to icon and not whole button 2020-12-14 15:46:40 +01:00
Rafostar
bfc318ae70 Reduce controls start/end margin 2020-12-14 15:46:07 +01:00
Rafostar
3936e58ed6 Reduce fullscreen button top margin a little 2020-12-14 15:43:48 +01:00
Rafostar
018a750fbc Add web app for broadway backend 2020-12-12 21:56:35 +01:00
Rafostar
660b5c6c48 Use underscore in WebSocket API 2020-12-12 20:10:06 +01:00
Rafostar
ea7b712b2e Send player state via WebSockets 2020-12-12 19:37:07 +01:00
Rafostar
7a039af798 Allow changing web server port during playback 2020-12-12 00:16:39 +01:00
Rafostar
104db83a1c Clean websocket signal properly 2020-12-12 00:13:02 +01:00
Rafostar
d5d5aa9bac Integrate basic web server functionality into player 2020-12-11 23:38:49 +01:00
Rafostar
26f8b6994e Add WebSocket server 2020-12-11 22:06:00 +01:00
Rafostar
4875a31be4 Add initial ClapperRemote app 2020-12-11 15:38:25 +01:00
Rafostar
6315669933 Split app source file into two
This allows creating different app from the same source code.
2020-12-11 15:32:05 +01:00
Rafostar
083445a830 Split header bar source file into two
This allows creating another headerbar with different functionality from the same source code.
2020-12-11 15:22:35 +01:00
Rafostar
62573d3a88 Move main.js to source files dir 2020-12-11 14:55:50 +01:00
Rafostar
0d54a751bd Add request for native audio formats option 2020-12-10 17:15:22 +01:00
Rafostar
73b803abdb Compatibility with latest GTK4 git 2020-12-10 11:51:55 +01:00
Rafostar
8dfede27ac Add progressive video download option
Buffer download whole network video during playback to allow fast seeking for online media. Can be disabled in prefs (enabled by default).
2020-12-08 20:31:45 +01:00
Rafostar
b134fd25c8 Move theme settings to "Tweaks" prefs tab
Altering default theme is more of a tweak then a general setting
2020-12-07 20:27:21 +01:00
Rafostar
6949a6e9ef Disable controls focus when not in fullscreen
This should keep focus on video and make seeking from keyboard always work.
2020-12-07 17:29:34 +01:00
Rafostar
c80f34f4ab Fix compatibility with dark themes. Fixes #23 2020-12-07 15:25:10 +01:00
Rafostar
64bf1dc172 Apply rotate animation to the icon, not whole button 2020-12-04 09:55:26 +01:00
Rafostar
150fdb7cbb Do not show tracks revealer when there are no tracks 2020-12-03 11:59:59 +01:00
Rafostar
c3d60a600e Wait for stop after playback instead of forcing it 2020-12-03 11:20:42 +01:00
Rafostar
7a66da1fed Add option to close player after playback 2020-12-03 11:04:37 +01:00
Rafostar
333b9d8224 Mobile friendly interface transitions #14 2020-12-02 10:59:02 +01:00
Rafostar
4cb743b931 Performance: do not draw header bar bottom border
It is not even noticable and reduces performance by having more pixels to redraw every frame.
2020-12-02 10:56:19 +01:00
Rafostar
def5bc5d96 Change volume scale color when over-amplified 2020-12-01 09:43:36 +01:00
Rafostar
f4da4dec71 Do not keep initial elapsed time
It is not used anymore later, so no need to keep it.
2020-11-30 23:05:56 +01:00
Rafostar
f08d40c1ff Small cleanup 2020-11-30 23:05:33 +01:00
Rafostar
f7f9959c14 Temporarly take a ref on player 2020-11-30 22:18:02 +01:00
Rafostar
58afaa2c76 Apply custom initial volume on realize 2020-11-30 11:26:38 +01:00
Rafostar
5206dc543d Properly store and restore last volume value on startup
We cannot depend on the value saved by GStreamer, cause it is shared with all GStreamer based apps. Lets save the last value to gsettings instead to make sure this is the volume we used with this app. With this change we can also see the right volume on startup before media file is loaded (previously it was shown always as muted).
2020-11-30 11:16:21 +01:00
Rafostar
e7ad0143a5 Use cubic scale for volume. Fixes #21
Volume sliders should usually adjust volume using cubic scale. This also changes max volume to 150% which should be louder than previous value anyway.
2020-11-30 09:26:27 +01:00