* feat: native trickplay
TODO: update downloaded trickplay data
* chore: fix tv build
* fix: set dispatcher on image loading to remove flicker
* feat: download trickplay data
* refactor: simplify trickplay info by only loading a single resolution
* refactor: follow jellyfin naming of trickplay
* Add chapter markers and "skip chapter" on long press
* Fix linting problems
- Missing comma
- Unused import
- Comment block
* Add preferences options
* Drop chapter support for ExoPlayer
* Fix linting
* Remove Trailing spaces
* Remove TODO from marker color
* Move code to function
* Optimize imports
* Fix crash on episode skip
* Disable player control view animation
* Avoid crash when there are no chapters for media item
* Skip to next episode when skipping last chapter
* Load chapters from Jellyfin API instead of MPV Player
* Remove chapter gesture
* Fix build
* Fix linting
* Fix linting
* Support chapters with offline media
* Remove debug print
* Add chapter skipping
* Remove trailing spaces
* fix(chapters): display correct chapter while seeking
* refactor: faster and cleaner `getCurrentChapterIndex`
* refactor: seek to start of current chapter if player position is more than 5 seconds past start of chapter
* refactor: change "Matroska chapters" to just "Chapters"
The chapters feature also works for MP4 files so just make it generic
* Bump database version
* Add auto-migration for database version bump
* Save database schema
* chore: clean up
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* add pip
* fixed OnResume() OnStop()
add picture in picture button
add pip settings
* fixed sourceRectHint
add aspectRatio
* fix import
* improve hide playerControls
* add onNewIntent()
* Home button/gesture settings
* add summary
* add GESTURE_EXCLUSION_AREA_SIDE
* remove if else in sourceRectHint
fix onStop() behavior
* fix behavior when using pip button, now go home
* test
* fix onStop()
* fix: mpv aspect ratio
* fix when in PiP mode and starting new playback
* refactor: pip implementation
Remove option to disable pip button, always show the button when pip is supported
Remove the option to completely disable pip
Format using ktlint
* fix when in pip mode and play a new video
* fix recent app behavior
* lint
* Some adjustments
* fix: Aspect ratio is too extreme
* fix: Activity recreation
* fix merge issues
* fix merge issues
* ktlintFormat
* Add Picture in Picture
* fix
* fix sourceRectHint, updateZoomMode before entering pip
* lint
* fix: disable pip when player is locked
* lint
* lint
* fix: sourceRectHint
* fix: replace media items in mpv
* fix: don't show skip intro button in pip
* chore: remove `android:resizeableActivity` from manifest since the default is already `true`
* refactor: remove option to force 16:9 aspect ratio
* refactor: update strings
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* refactor: remove deprecated methods to hide system ui
* fix: action bar reappear after changing the brightness
* lint: run ktlintFormat
* refactor: remove sdk check
* fix: system bars stay visible after closing dialog
* fix: add player theme to set navigationbar and statusbar colors to transparent
* fix: draw behind navigationbar and statusbar
* refactor: remove swipeToShowStatusBars extensions
Remove fix for status bar reappearing on LineageOS after changing brightness with gesture.
This can always be added back when official Android version from manufacturers also need this fix.
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* fix: volume progress bar smoothness
* fix: configureInsets() for lockedControls
* fix: gesture not working if the player was locked and used back gesture
* 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>
* Scrubbing Preview
Add Jellyscrub plugin support
* Fix syntax
* Some adjustments
Rounded corners
Fix switch
* refactor: switch to `StateFlow`
* refactor: remove `FrameLayout`
* refactor: move trick play retrieval to `onMediaItemTransition`
Only load trick play data for current item
Make it async
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* Add intro skipper support
* Fix checking for 404
* Add back missing Intro class and dependencies due to rebase
* Add preference
* Clean up visibility logic
* Update skip intro button design
* Add proguard file to keep Serializable classes
* Move introCheck to a separate Runnable and fix Runnables are never cleaned up
* Simplify check before starting runnable
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* Split app into core and app:phone
* Use global versionCode and versionName
* Clean up gradle dependencies
* Use string formatting inside getString function
* Move proguard file to app:phone
* Move app_navigation and BasePlayerActivity to app:phone
* Add buildTypes to core gradle and remove buildFeatures
* Add suffix core to core namespace
* Split code into 4 more modules: data, preferences, player:core and player:video
* Clean up some gradle files
* Clean up data gradle
* Remove duplicate Constants.kt
* Use AppPreferences in more places
* Split off strings
* Remove unused animations
* Make about_libraries strings non-translatable
* Move mpv assets to player:video module
* Make AppPreferences a Singleton
2023-01-13 23:51:20 +01:00
Renamed from app/src/main/java/dev/jdtech/jellyfin/PlayerActivity.kt (Browse further)