ananas/app/phone/src/main/java/dev/jdtech/jellyfin
004matteos a886baf907
feat: lock player controls (#372)
* feat: lock player controls

Add Lock Player feature.

This feature is similar to the feature found in the stock Jellyfin Android app and in the VLC app.

When enabled, it disables the gestures (seek, volume and brightness control), disables the default player controls and leaves only two buttons: a back button and an "unlock" button.
Pressing the unlock button reverts the player back to the initial state, e.g. gestures enabled and default buttons shown.

Works with ExoPlayer and MPV Player.

Let me know of any issues.

* Update PlayerGestureHelper.kt

* Fixed spacing issues

* fixed bug + formatting

* Simplified code

* Fixed spacing

* fixed trailing line?

* refactor: set locked layout initial visibility in xml

---------

Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2023-05-25 09:20:30 +02:00
..
adapters fix: show indexNumberEnd 2023-05-08 23:51:31 +02:00
di Modularize the codebase (#230) 2023-01-13 23:51:20 +01:00
dialogs Items and downloads rework (#329) 2023-05-07 16:05:40 +02:00
fragments refactor: make item actions material buttons 2023-05-20 20:32:03 +02:00
utils feat: lock player controls (#372) 2023-05-25 09:20:30 +02:00
BaseApplication.kt Items and downloads rework (#329) 2023-05-07 16:05:40 +02:00
BasePlayerActivity.kt Modularize the codebase (#230) 2023-01-13 23:51:20 +01:00
BindingAdapters.kt Items and downloads rework (#329) 2023-05-07 16:05:40 +02:00
MainActivity.kt Items and downloads rework (#329) 2023-05-07 16:05:40 +02:00
PlayerActivity.kt feat: lock player controls (#372) 2023-05-25 09:20:30 +02:00