Commit Graph

501 Commits

Author SHA1 Message Date
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
af6814bace Change open local label
Option can now also open multiple files, so we simply skip the "File" part to make it shorter.
2020-11-30 11:11:08 +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
d630717b24 Flatpak: autodetect subtitle text encoding
Manually specifying text encoding is just wrong.
Especially for people who have no idea what text encoding they use (or what it is).
Lets try to be a little more user friendly and autodetect the encoding of each file.

The detection will be done inside GStreamer when first text buffer is received,
so another (but this time optional) patch is added, but who cares :-)
2020-11-25 16:20:51 +01:00
Rafostar
6a34fc51bc Merge pull request #20 from sp1ritCS/master
downgraded arch pkgbuild to e7e9b9c07d
2020-11-25 11:00:09 +01:00
Rafostar
2ed3e1dce6 Add some missing info to Readme #19
Add some missing information about why Flatpak right now is recommended, that otherwise patching is required and why Wayland is recommended. Hopefully with this, I will not have to keep repeating those to everyone on each day :-)
2020-11-25 10:58:18 +01:00
sp1rit
1bd39f646f downgraded arch pkgbuild to e7e9b9c07d 2020-11-24 20:52:19 +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
ab39da1975 Readme: tell people that using GJS here is fine. 2020-11-24 10:35:53 +01:00
Rafostar
2cd946c6c0 Convert Flatpak manifest to JSON format #12 2020-11-23 14:08:59 +01:00
Rafostar
4c2cca855e Update screenshots 2020-11-22 20:03:13 +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
66162349ac Use dark theme by default. Closes #13 2020-11-21 15:56:03 +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
82c30c6c2d Flatpak: add fix ass subtitles smooth scaling patch
Fix for ass subtitles jittering animations. More info in my GStreamer MR:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1822
2020-11-19 18:50:22 +01:00
Rafostar
1947140def Toggle fullscreen with "f" key 2020-11-18 17:05:12 +01:00
Rafostar
24702c55d3 Update README.md 2020-11-18 10:39:51 +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
856f000799 Update screenshots 2020-11-17 15:29:01 +01:00
Rafostar
652e4eecf2 Update README.md 2020-11-17 15:06:53 +01:00
Rafostar
6788f234aa Flatpak: add more black rendering improvements to patch 2020-11-17 13:20:03 +01:00
Rafostar
7159bf3d5a Flatpak: add vah264dec seeking fix patch 2020-11-16 09:27:40 +01:00
Rafostar
910a289b6d Let floating window have shadow if shadows are enabled
If normal window would have shadow and floting did not, then a size mismatch would occur during transition. Besides it allows to notice if floating window is focused and respects user theme.
2020-11-13 23:00:06 +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
4413fdb8a2 Tweak top revealer size and opacity a little 2020-11-13 13:16:12 +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
0143f23487 Update TODO.md 2020-11-10 23:42:56 +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
fa131c0356 flatpak: add glib-networking lib 2020-11-09 20:50:14 +01:00
Rafostar
7577c74a77 Enable ring buffer 2020-11-09 20:49:58 +01:00
Rafostar
010fcf6dcf Update README.md 2020-11-09 20:12:07 +01:00
Rafostar
513904bd6d Make prefs tabs look like the ones in gnome-settings 2020-11-09 19:30:45 +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