Commit Graph

209 Commits

Author SHA1 Message Date
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
Rafostar
bc5aa45a8f Fix player volume comparison 2020-11-26 13:02:31 +01:00
Rafostar
9ad1a11452 Customize external subtitles font 2020-11-24 17:54:53 +01:00
Rafostar
3fcd612e6e Support loading external subtitles and multiple videos 2020-11-24 11:12:43 +01:00
Rafostar
24de7ee8c1 Remove "Playback" tab from prefs
Move items under "Playback" tab to "Player" tab to reduce number of top bar tabs in prefs. Also temporarly disable subtitles settings due to lack of external subtitles support.
2020-11-22 19:37:18 +01:00
Rafostar
f5e5071937 Support setting sliders brighter #13
When dark theme is used, sliders (especially progress on fullscreen) tend to look a little too dark (as if they were disabled). To overcome this, add an option to force them to be 20% brighter.
2020-11-21 15:20:09 +01:00
Rafostar
c221f7cdb6 Do not show hours when duration is shorter #14 2020-11-20 22:41:33 +01:00
Rafostar
7ccd6ad424 Add audio and subtitle offset settings to prefs 2020-11-20 21:19:23 +01:00
Rafostar
ac27c364f3 Add dark theme support #13 2020-11-20 17:37:41 +01:00
Rafostar
1947140def Toggle fullscreen with "f" key 2020-11-18 17:05:12 +01:00
Rafostar
e35968d583 Always show preroll frame
This fixes preview while player is paused
2020-11-17 19:12:25 +01:00
Rafostar
796863a692 Point to GitHub pages from about dialog 2020-11-17 15:30:28 +01:00
Rafostar
6788f234aa Flatpak: add more black rendering improvements to patch 2020-11-17 13:20:03 +01:00
Rafostar
373714f161 Performance: do not try to render controls box when empty 2020-11-13 20:12:26 +01:00
Rafostar
f660d900ba Performance: add option to disable window shadows
Rendering window shadows in GTK4 doubles GPU usage. This commit adds an option to disable them for performance gain (useful on low-end devices).
2020-11-13 19:26:49 +01:00
Rafostar
8e48da2a9f Performance: do not render window background and shadows when fullscreen 2020-11-12 22:51:14 +01:00
Rafostar
63236a8097 Performance: render video and black background in single GL pass 2020-11-12 19:20:03 +01:00
Rafostar
7226a59cea Set (un)inhibit screen earlier 2020-11-10 23:16:45 +01:00
Rafostar
e7937162e7 Fix file chooser not being freed from memory 2020-11-10 20:28:57 +01:00
Rafostar
f644710762 Set popover parent only once and unset on app close 2020-11-10 18:11:59 +01:00
Rafostar
0c307bc606 Ignore state change signals during app exit 2020-11-09 21:45:59 +01:00
Rafostar
314b66b7fd Disconnect close-request signal before exit 2020-11-09 21:35:17 +01:00
Rafostar
7577c74a77 Enable ring buffer 2020-11-09 20:49:58 +01:00
Rafostar
e6f683bb96 Workaround dialogs double unref 2020-11-09 17:57:31 +01:00
Rafostar
8bb6ce04ef Get initial dimensions only once 2020-11-09 17:56:38 +01:00
Rafostar
8351066a8b Add changing seek mode during playback patch 2020-11-09 11:42:19 +01:00
Rafostar
dd3ba11c0e Set min GStreamer ver warning to 1.18.x 2020-11-09 11:40:48 +01:00
Rafostar
c2bd6bc894 Set min floating window size 2020-11-09 11:40:01 +01:00
Rafostar
9be93c66f1 Improve obtaining initial player dragging coords 2020-11-06 20:33:14 +01:00
Rafostar
868c39f1cf Store and restore floating window size 2020-11-06 19:43:38 +01:00
Rafostar
eb1a495907 Reduce number of source files (cleanup) 2020-11-06 17:04:54 +01:00
Rafostar
42c208d1df Make file chooser and open URI dialogs modal 2020-11-05 20:19:26 +01:00
Rafostar
da21c2fafc Add fast seeking support as a patch 2020-11-05 16:13:57 +01:00
Rafostar
81bdcf6244 Enable "Fast Seeking" option
Since GstPlayer pipeline ref count is now fixed by a patch, fast seeking option can be enabled. In my tests this seeking method is over 10x faster then normal seeking on some files, but the video time you end up with might differ up to few seconds from the value requested.
2020-11-04 22:57:05 +01:00
Rafostar
de7a850cc2 Create gio settings only once 2020-11-04 15:05:16 +01:00
Rafostar
8296f40382 Allow adjusting volume before loading file 2020-11-04 12:37:42 +01:00
Rafostar
11468e2774 Add unexported by GI Gst.PlayFlags 2020-11-04 12:37:36 +01:00
Rafostar
23b39e5f3b Add open URI dialog 2020-11-03 20:56:21 +01:00
Rafostar
ff58713426 Add "Floating Window Mode"
A simple borderless window floating on desktop. Window can be resized and moved by dragging. It also has some minimalistic controls showing on top of the video when cursor is hovering over it.\n\n This was a feature originally requested by @zahid1905.
2020-11-03 17:40:19 +01:00
Rafostar
ba54a36058 Keep a ref to main context
Might help with GJS toggling down object bug. Needs some testing.
2020-11-03 17:18:37 +01:00
Rafostar
866e8325e6 Do not show "Ends at" text when player is stopped 2020-11-02 09:11:55 +01:00
Rafostar
a019ef90ca Remember and restore last window dimensions on launch 2020-10-31 09:04:41 +01:00
Rafostar
36145adf1a Always start with black image 2020-10-31 08:21:18 +01:00
Rafostar
19e1a20bf7 Start fullscreen playback after toplevel state is changed 2020-10-30 22:51:30 +01:00
Rafostar
ac06e84851 Open files via native file chooser 2020-10-26 21:25:13 +01:00
Rafostar
556809c1f4 Add GStreamer plugin ranking to preferences 2020-10-26 16:45:37 +01:00
Rafostar
31f208006f Add startup fullscreen and volume preferences 2020-10-26 11:07:01 +01:00
Rafostar
9354042379 Add preferences dialog
Allows customizing various settings. For now it includes player seeking times and mode customization. More options will be added in the future.
2020-10-25 10:14:14 +01:00