Commit graph

60 commits

Author SHA1 Message Date
nomadics9
362201eddf feat: Transcoding Download / code: Cleanup
Some checks failed
Build / Assemble (push) Has been cancelled
2024-07-17 05:58:26 +03:00
nomadics9
8139119c35 feat: Quality change in player (transcoded stream) 2024-07-14 21:54:21 +03:00
nomadics9
ab090a01d7 feat: Quality change in player 2024-07-14 01:38:34 +03:00
nomadics9
44b6e915ba feat: merged Skip Credits 2024-07-04 20:06:37 +03:00
nomadics9
a1cbea0b92 refactor:package name 2024-07-03 23:40:52 +03:00
nomadics9
9baa84e1e7 feat: trickplay on gesture 2024-06-30 22:48:36 +03:00
nomadics9
f269bea184 feat: requests in-app 2024-06-30 21:33:00 +03:00
nomadics9
2d141b6f0f Fix middle top logo for wide screens 2024-06-30 10:08:13 +03:00
nomadics9
168cfcd19f Add logo on middle topbar and amoled prefrence default true 2024-06-29 19:18:22 +03:00
nomadics9
288c96709e refactor package name 2024-06-29 15:44:54 +03:00
nomadics9
fcb58ef8ad personal personlization init 2024-06-29 03:07:12 +03:00
cd16b
09f3d218c1 Remove buttons colors and fix lint 2024-06-25 23:28:54 +02:00
cd16b
6095c97704 Materia3 buttons and WatchCredits button 2024-06-24 12:01:50 +02:00
cd16b
91cccc55a7 Improve skipButton visibility/usability 2024-06-21 14:36:11 +02:00
Cd16d
0999823d6d
Merge branch 'jarnedemeulemeester:main' into Skip-credit 2024-06-02 13:34:01 +02:00
leekleak
a78dafe387
feat: add login disclaimer support (#721)
* add login disclaimer support

* refactor: move disclaimer to `UiState.Normal`

This makes more sense in the current architecture

* feat: add login disclaimer to tv version

* refactor: add margin to bottom of disclaimer

* lint: add missing trailing comma

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2024-04-27 18:39:45 +02:00
Cd16d
3c6e03db89
Merge branch 'main' into Skip-credit 2024-02-25 16:32:47 +01:00
Nelson Wu
9cd3295d2d
feat: mixed libraries (#628)
* mixed collection

* Mixed libraries to show up in "Latest"

Co-authored-by: Freya Winters <freya@justgamingtld.nl>

* Do not recurse if folders are shown

* Added folder navigation for tv

* Removed assumption that folder == mixed

* refactor: add default values to `FindroidFolder`

* fix: add chapters to findroidfolder

---------

Co-authored-by: Freya Winters <freya@justgamingtld.nl>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2024-02-24 17:48:03 +01:00
Natanel Shitrit
c39bdce845
feat: chapters (#466)
* 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>
2024-02-17 16:45:07 +01:00
Jarne Demeulemeester
3e3d749f62
refactor: remove back button in locked controls 2024-02-03 22:29:32 +01:00
peerless2012
0ecf6d4c0e
feat: add long press for 2x speed (#596)
* Add long press for 2x speed.

* Fix resource hard code warn.

* Fix lint warn.

* refactor: use `player.setPlaybackSpeed`

* refactor: make playback speed increase easily adjustable later

---------

Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2024-01-22 15:31:50 +01:00
cd16b
92eaefe6e1 skip credits 2024-01-22 13:40:45 +01:00
Natanel Shitrit
28231affc8
fix: show server select fragment when server has no current user (#235) (#439)
* Organize code, fix "locking" problem

Organize `MainActivity.kt`.

Open `serverSelectFragment` instead of `loginFragment` which could've lead to app locking if no user has logged in after adding the server.

* Fix linting

* Optimize imports

* fix: update jellyfinApi before navigating to login fragment

Also move logic to viewmodel

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-09-25 23:34:06 +02:00
Jarne Demeulemeester
04258f05ff
fix: do not show next_up_layout while loading
Fix #500
2023-09-02 11:37:02 +02:00
004matteos
001ef4a2cc
feat: enhance person detail fragment layout on mobile (#400)
* improvement: changed Person Detail Fragment

Changed the Person Detail Fragment to better use the available space.
Separate layout for larger screens/landscape orientation

* added values for different screen sizes

* fixed spacing

* refactor: rename `layout_height_def` to `person_detail_overview_height`

* refactor: remove `+` from some ids

I know that xml files are parsed top to bottom and the plus sign create a new id. But it seems to work even if the id is created after it is referenced.
I think this is cleaner

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-08-27 17:12:38 +02:00
Cd16d
a36c4f0dca
fix: pip (#481)
* fix pip

* refactor: make isPipSupported more readable

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-08-24 21:29:10 +02:00
Natanel Shitrit
777445d352
feat: show episode size in extra info (#477)
* Show episode size if extra info is enabled

* Remove unnecessary stuff
2023-08-21 21:41:51 +02:00
Teo Baranga
373864ba46
fix: episode indicator wrapping on second line (#468)
Fixes #445

The episode indicator background was constrained to a 24dp box. If this box could not contain the count, then the count would wrap onto a new line.

The proposed solution is to use a rounded rectangle as the background instead. This can then expand into a chip as needed to accommodate larger numbers without wrapping.
2023-08-15 11:57:09 +02:00
Cd16d
d28e80d68e
feat: picture-in-picture (#277)
* 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>
2023-08-14 22:47:42 +02:00
jarnedemeulemeester
1183ae796c
refactor: remove databinding from base_item, collection_item, episode_item, home_episode_item, person_item, season_header, user_item and user_list_item
Also completely disable databinding in app:phone
2023-08-01 09:16:04 +02:00
Jarne Demeulemeester
f8e6453ec3
refactor: remove databinding from favorite_section, next_up_section and view_item 2023-07-31 23:58:01 +02:00
Jarne Demeulemeester
6ffc761972
refactor(server_item): remove databinding 2023-07-31 23:46:44 +02:00
Jarne Demeulemeester
012a597157
refactor(server_address_list_item): remove databinding 2023-07-31 23:44:21 +02:00
Jarne Demeulemeester
5a8b75194d
refactor(discovered_server_item): remove databinding 2023-07-31 23:37:38 +02:00
jarnedemeulemeester
a4dc94b310
refactor: get rid of databinding in ServerSelectFragment 2023-07-31 17:34:01 +02:00
mustafadakhel
d86b162d4b
feat: add double tap ripple animation (#401)
* Add double tap seeking animation

* Remove unnecessary formatting changes

* Order imports correctly

* Remove needless blank line

* feat: add ripple for playback (play / pause)

* refactor: clean up

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-07-29 15:47:36 +02:00
Cd16d
7932216105
fix: configureInsets() for lockedControls, volume progress bar smoothness, gesture not working if the player was locked (#408)
* fix: volume progress bar smoothness

* fix: configureInsets() for lockedControls

* fix: gesture not working if the player was locked and used back gesture
2023-06-24 16:34:33 +02:00
jarnedemeulemeester
43b3ceafba
chore: remove unused resources 2023-06-24 00:28:14 +02:00
Cd16d
ce1fe7edfc
fix: missing/hardcoded strings (#415)
* fix: add missing/hardcoded strings

* Update strings.xml
2023-06-23 16:11:22 +02:00
jarnedemeulemeester
b9253badf8
chore: remove some unused files and dependencies 2023-06-20 13:02:48 +02:00
Jarne Demeulemeester
c1819406cf
refactor: use CollectionType in LibraryFragment 2023-06-18 12:10:58 +02:00
thofx
68525a0283
feat: add volume and brightness change animation (#377)
* volume and brightness change animation

* lint: remove redundant curly braces

---------

Co-authored-by: usnail <fuyouyuan@cloudwalk.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-05-27 12:37:43 +02:00
Yash Garg
5ff964b9bf
fix: video profile chip using wrong color (#383) 2023-05-27 12:06:34 +02:00
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
Jarne Demeulemeester
36f07ad1c7
refactor: make item actions material buttons
Also fixes the buttons being clickable when the content has not loaded yet
2023-05-20 20:32:03 +02:00
Jarne Demeulemeester
24faa1d9e3
fix: update fragment_add_server with policy text 2023-05-14 18:14:51 +02:00
Yash Garg
7d86f46fa3
feat: show movie size in extra info and improve size formatting (#367) 2023-05-14 16:29:40 +02:00
jarnedemeulemeester
765a31838e
fix: info text overlapping in movie and show fragments
Closes: #358
2023-05-13 11:27:24 +02:00
jarnedemeulemeester
82bbfee0a4
fix: text overflowing into "View all"
Closes #354
2023-05-11 17:22:15 +02:00
jarnedemeulemeester
8a96588a88
fix: show indexNumberEnd 2023-05-08 23:51:31 +02:00