Rafostar
117a372189
Pass GioFiles from FileChooser instead of URIs
...
Otherwise they are converted back to GioFile to check their existance and back again to URI which is unefficient. This change avoids doing that.
2020-12-24 15:08:01 +01:00
Rafostar
a096c43b97
Flatpak: allow access to user "Videos" directory
...
This is needed to fix loading playlist from file. With that playlists will be limited to videos inside "Videos" directory in Flatpak version (with default permissions) which is still better than no playlists functionality. This is a common thing to do for a Flatpak video player.
2020-12-24 12:41:00 +01:00
Rafostar
094de19018
Remove "new-window" functionality
...
I were never able to get setifactionary results with this because:
* In GTK apps new window is created from the same process
* OpenGL is single-threaded so performance per window is halfed
* GTK4 has problems with rendeing using multiple contexts resulting in some frames being upside down
So for the time being I am removing a non-working option. There is a chance
that it will be fixed and added in future, but for now lets not
advertise a functionality that does not work.
2020-12-24 12:18:17 +01:00
Rafostar
6afbbc767a
Open new file in the same window. Closes #31
2020-12-24 00:23:49 +01:00
Rafostar
f2d8d8ad4f
Uninhibit screen when video is not playing
...
This functionality was broken before GTK 4.0.0, so it needs a minimal required GTK version bump
2020-12-22 23:21:49 +01:00
Rafostar
10e04a8eba
Flatpak: fix distorted gstreamer-vaapi colors with GLX on AMD #10
2020-12-22 15:17:47 +01:00
Rafostar
42774f84e4
Update media info on idle after playback starts. Fixes #32
2020-12-21 19:37:58 +01:00
Rafostar
c125df777f
Use GTK4 version of update-icon-cache
...
Even if GTK3 is preinstalled on GNOME, app should use GTK4 version of "update-icon-cache" binary which is a proper thing to do.
2020-12-20 19:25:50 +01:00
Rafostar
b97967e374
RPM: Include additional app binaries
2020-12-20 18:30:51 +01:00
Rafostar
55ae63dad1
Flatpak: update GTK to 4.0
...
GTK 4.0 was released and now its latest git includes "fullscreen" and "flat" buttons changes I requested. Lets update our app to it :-)
2020-12-17 20:08:39 +01:00
Rafostar
49b3296527
Use simply "Clapper" name for the remote app
...
The remote app name should match the name of the main app, otherwise different name is displayed in the headerbar and its prefs window
2020-12-17 20:03:01 +01:00
Rafostar
1c93506e79
Add toggle play button to remote app
...
A single toggle play button for now. Meant for testing the remote communication/delays over local network.
2020-12-17 14:59:31 +01:00
Rafostar
0a1657bbcb
Mention thanks to supporters in Readme
2020-12-17 14:55:59 +01:00
Rafostar
c1aae76d6e
Customize web app port
2020-12-16 21:15:41 +01:00
Rafostar
84762de76a
Add Clapper deamon subprocess
...
Daemon is responsible for starting and later watching over spawned "broadwayd" and "remote" app needed for remote playback control. We cannot use systemd n Flatpak, so we make do with running optional background subprocesses.
2020-12-16 19:54:30 +01:00
Rafostar
254d1aa9db
Make remote app binary name consistent with app ID
2020-12-16 15:33:39 +01:00
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
2b62900227
Merge pull request #28 from Rafostar/broadway
...
Host web application with Broadway backend
2020-12-15 12:01:38 +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
1c82b2288a
Remove unnecessary position scale margin
2020-12-14 23:14:16 +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
f65bc84c89
Merge pull request #27 from Rafostar/gui-improvements
...
Fullscreen GUI improvements
2020-12-14 16:40:37 +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
67389ee295
Fix for negative sizes and separate popovers override
2020-12-14 12:10:02 +01:00
Rafostar
ef12074559
Tweak fullscreen GUI theme
...
Notable changes:
* Smaller media title font (fits more characters on screen)
* Constant top timer numbers size (time no longer moves left/right when hour changes)
* Reduced top shadow overlay height
* Smaller buttons on bottom controls panel (their icon size remains the same)
* Reduced bottom panel and progress bar height
* Few additional margins and font sizes tweaks
2020-12-14 11:30:19 +01:00
Rafostar
ea67e1e620
Flatpak: compile GTK4 with broadway backend
2020-12-14 11:19:12 +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