NewPipe/app/src/main/java/org/schabi/newpipe/player
AudricV 5ab3a4a9e0
Refactor Player.useVideoSource logic and improve its comments
- don't check for isAudioOnly == !videoEnabled, as this prevents enabling again
video and text tracks renderers in some cases;
- when reloading play queue manager if that's needed, disable or enable video
and text tracks renderers, as they may need to be enabled again in some cases
like starting a video in main player, opening play queue, switching to
background player on it and switching back to main player;
- disable or enable video renderers also for streams with AUDIO_STREAM
StreamType, as doing so doesn't raise any issue and simplifies code;
- reword and move some comments to make them easier to understand.
2023-07-19 22:52:18 +02:00
..
datasource Update ExoPlayer to 2.18.1 2022-07-24 14:11:31 -04:00
event feat: add language selector to audio player 2023-03-19 01:15:36 +01:00
gesture Changed the naming 2023-04-04 09:57:06 +02:00
helper [Android 6+] Add ability to always use ExoPlayer's MediaVideoCodecRenderer setOutputSurface workaround 2023-04-10 17:39:27 +02:00
mediaitem feat: add language selector to audio player 2023-03-19 01:15:36 +01:00
mediasession Listen to ignore hardware buttons pref changes 2023-02-26 14:28:57 +01:00
mediasource Update to ExoPlayer 2.18.3 2023-02-23 12:46:05 +01:00
notification Use AndroidX's PendingIntentCompat class. 2023-04-13 10:53:46 +05:30
playback Apply code review suggestions. 2023-01-04 06:10:14 +05:30
playqueue Replaced the equals method 2023-01-21 14:56:55 +01:00
resolver fix: audio stream cache key, code fmt 2023-05-01 00:04:04 +02:00
seekbarpreview Use Optional chaining. 2023-01-04 05:16:21 +05:30
ui fix: small codestyle fixes 2023-04-21 23:15:37 +02:00
AudioServiceLeakFix.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
PlayQueueActivity.java fix: small codestyle fixes 2023-04-21 23:15:37 +02:00
Player.java Refactor Player.useVideoSource logic and improve its comments 2023-07-19 22:52:18 +02:00
PlayerService.java Fix PlayerService leakead by Binder instance 2023-07-14 18:34:20 +02:00
PlayerType.java Move PlayerType into its own class and add documentation 2022-07-13 23:33:18 +02:00