Commit graph

29 commits

Author SHA1 Message Date
Jarne Demeulemeester
d6650eb994
Run ktlint 2022-12-11 21:05:53 +01:00
Jarne Demeulemeester
65f4c2f639
Migrate to androidx media3 (#213)
* Migrate to media3

* Update docs

* Move display_extended_title to AppPreferences

* Move display_extended_title to AppPreferences p2

* Add MediaSession support to the player

* Fix mpv player

* Disable animations on tv player controls and rename the tv_control_view file

* New media3 decoder ffmpeg
2022-12-10 11:33:16 +01:00
Jarne Demeulemeester
6e9adca9d6
More mpv options (#205)
* Add mpv options: hwdec, hwdec-codecs, vo, gpu-api

* Add audio output option

* Use AppPreferences in companion object to set the vo

* Remove unused strings

* Use strings for mpv prefs

* Change default ao to audiotrack

* Clean up preferred language settings
2022-11-25 21:50:20 +01:00
renovate[bot]
530cb009e9
Update exoplayer to v2.18.2 (#202)
* Update exoplayer to v2.18.2

* Implement getSurfaceSize in mpv

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2022-11-24 00:34:27 +01:00
Jarne Demeulemeester
2c4fb8d7fe
Upgrade libmpv
Fix #160, #176
2022-11-04 23:55:57 +01:00
Jarne Demeulemeester
ad5e722d44
Introduce klint (#186)
* Add ktlint plugin

* Make code ktlint compliant

* Make code ktlint compliant
2022-10-29 21:17:48 +02:00
Yusuf
86ea79b0b4
Fix mpv subtitles cut off when zoomed in (#166)
* Fix MPV subtitles zoom in

Closes #162
Some .ass subtitles will still be broken due to their forced stylings unless stripped.

* Move everything in a single if statement

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2022-09-25 15:40:01 +02:00
Jarne Demeulemeester
39f3bd2656
Clean up 2022-09-11 16:42:52 +02:00
Jarne Demeulemeester
b9874db1e1
Fix mpv external subtitles (#155)
* Fix external subtitles + new libmpv build

* Fix unable to go back to 1x speed
2022-08-30 23:41:55 +02:00
Jarne Demeulemeester
9ce2950ea1
Fix mpv subfont.ttf not loading (#147) 2022-08-23 20:16:45 +02:00
Yusuf
a5189eb4fa
Fix "pinch to zoom" for MPV (#144)
Closes #22
2022-08-22 19:08:35 +02:00
Jarne Demeulemeester
e6add5d47c
Fix mpv crash 2022-07-05 09:08:30 +02:00
Jarne Demeulemeester
f400571e04
Customize the seeking increments (#128)
* Add the ability to customize the seeking increments

* Fix number keyboard image cache size

* Clean up fragment_settings_player.xml
2022-07-05 09:06:26 +02:00
Jarne Demeulemeester
bcdada538d
Upgrade ExoPlayer to 2.18 (#126)
* Upgrade ExoPlayer to 2.18

* Change the position polling from every 2 to every 5 sec

* Make internalMediaItems non-nullable

* Clean up mpv track names

* Reduce explayer ffmpeg extension size by not including all decoders

Removed decoders vorbis, opus, flac, pcm_mulaw, pcm_alaw, mp3, aac because these are already supported by Android.

* Clean up preferredLanguage preferences
2022-07-03 14:02:32 +02:00
Jarne Demeulemeester
6f0d5a13a8
Add support for external subtitles (#118)
* Add support for external subtitles in exoplayer

* Enable ASS/SSA external subtitles

* Enable VTT external subtitles

* Clean up

* Fix srt and vtt

Jellyfin currently converts vtt to srt without changing the codec tag. This makes the player unable to decode the subs because it thinks the file is vtt while in fact it is srt.

* Fix for vtt subs

Jellyfin return a srt stream when it should return a vtt stream
2022-07-02 17:00:00 +02:00
Jarne Demeulemeester
7467f89f82
Clean up some code 2022-06-11 21:51:30 +02:00
Jarne Demeulemeester
a785d6d3f8
Upgrade ExoPlayer to 2.16.1 (#115)
* Upgrade ExoPlayer to 2.26.1 and fix mpv player

* Re-enable ffmpeg extension
2022-05-02 21:44:22 +02:00
NIK679
92e4b8eafc
Add option to disable subtitle in mpv (#110)
* add empty subtitle track

* toggle selected variable

* does this work

* Revert "toggle selected variable"

This reverts commit 87589f1d34e741205674e66855b53d79a1f70adb.

* this should work

* this should work 2.0

* remove empty track if there are no subtitle tracks
2022-04-23 19:46:06 +02:00
maulik9898
f2b090d09b
Playlist support for MPV player (#77) 2022-02-12 16:58:52 +01:00
Jarne Demeulemeester
1e9ddd1173
Clean up 2021-12-28 18:26:43 +01:00
Jarne Demeulemeester
50ae884554 Upgrade mpv to 0.34 2021-12-20 21:48:18 +01:00
Jcuhfehl
532e9adac1
Add offline playback (#51)
* Add offline playback

* Remove unused values

* Replace downloadutilities extension functions with normal functions

This is to not polute the namespace of fragment and context.

* Replace default Android icons with those from lucide

* Fix deleting downloaded movie

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-29 21:11:01 +02:00
lsrom
b0b7d7f5b5
Add ability to swipe up and down to adjust volume (#48)
* Add ability to swipe up and down to adjust volume

Created AudioController to adjust global volume for media channel. Alarm, system and other volume levels are unaffected. This way it doesn't need specific implementation for separate players. During swiping system volume slider is shown and it is possible to change direction mid-swipe.

AudioController should probably be singleton and provided by DI but currently PlayerActivity is handling all the playback so it seemed unnecessarily complicated.

Sensitivity can be adjusted by threshold value in VerticalSwipeListener.

* Add audio controller class

Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
2021-10-24 18:07:08 +02:00
jarnedemeulemeester
1d0f2b3358
MPVPlayer: Start from playback position 2021-09-18 21:11:45 +02:00
jarnedemeulemeester
64b86f2b40
MPVPlayer: Support for software decoding + clean up 2021-09-18 15:17:20 +02:00
jarnedemeulemeester
0baef5ec2e
MPVPlayer: Improve track selection and some code cleanup 2021-09-17 11:55:35 +02:00
jarnedemeulemeester
87edeabb9a
MPVPlayer: Use preferred languages 2021-09-16 19:00:11 +02:00
jarnedemeulemeester
9cddd50d0e
Select audio and subtitle tracks 2021-09-15 23:13:59 +02:00
jarnedemeulemeester
c9d0d6ab17
Add experimental libMPV player 2021-09-14 16:39:57 +02:00