ananas/app/phone/src/main/java/dev/jdtech/jellyfin
Daniel Jacob Chittoor 57c1e85b11
feat: add play/pause functionality to onDoubleTap (#450)
* feat: Add seek and play/pause functionality to onDoubleTap

This patch enhances the `onDoubleTap` method within the media player
component. It introduces a split-screen layout where the player view is
divided into three equal areas (in the ratio of 2:1:2).

1. Leftmost Area: When double-tapped, it seeks the media playback
backward by the defined seek increment
(`appPreferences.playerSeekBackIncrement`).

2. Middle Area: A double-tap in this area toggles the play/pause state
of the player. If the player is currently playing, it will be paused,
and if it's paused, it will be resumed.

3. Rightmost Area: When double-tapped, it seeks the media playback
forward by the specified seek increment
(`appPreferences.playerSeekForwardIncrement`).

* refactor: inline some variables and put x position inside when statement

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-07-29 13:29:05 +02:00
..
adapters lint: run ktlintFormat 2023-06-19 23:44:42 +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 chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.5.0 (#426) 2023-07-08 00:36:23 +02:00
utils feat: add play/pause functionality to onDoubleTap (#450) 2023-07-29 13:29:05 +02:00
BaseApplication.kt lint: run ktlintFormat 2023-06-19 23:44:42 +02:00
BasePlayerActivity.kt fix(player): playback position reset on process death and playback continues playing when the device is locked 2023-07-09 15:15:15 +02:00
BindingAdapters.kt lint: run ktlintFormat 2023-06-19 23:44:42 +02:00
MainActivity.kt lint: run ktlintFormat 2023-06-19 23:44:42 +02:00
PlayerActivity.kt fix(player): playback position reset on process death and playback continues playing when the device is locked 2023-07-09 15:15:15 +02:00