NewPipe/app/src/main/java/org/schabi/newpipe/player/helper
AudricV 787758a436
[Android 6+] Add ability to always use ExoPlayer's MediaVideoCodecRenderer setOutputSurface workaround
As some devices not present in ExoPlayer's list may not implement
MediaCodec.setOutputSurface(Surface) properly, this workaround could be useful
on these devices.

It forces ExoPlayer to fall back on releasing and re-instantiating video codec
instances, which is always used on Android 5 and lower due to addition of this
method in Android 6.

To do so, a CustomMediaCodecVideoRenderer, based on ExoPlayer's
MediaVideoCodecRenderer which always return true for the
codecNeedsSetOutputSurfaceWorkaround method has been added, which is used in
CustomRenderersFactory, a class based on DefaultRenderersFactory which always
returns our CustomMediaCodecVideoRenderer as the video renderers.

CustomRenderersFactory replaces DefaultRenderersFactory in the player, in the
case this setting is enabled.
2023-04-10 17:39:27 +02:00
..
AudioReactor.java updated: ExoPlayer to 2.17.1. 2022-03-19 15:56:45 -04:00
CacheFactory.java Changed the code accordingly 2022-07-15 19:55:19 +02:00
CustomMediaCodecVideoRenderer.java [Android 6+] Add ability to always use ExoPlayer's MediaVideoCodecRenderer setOutputSurface workaround 2023-04-10 17:39:27 +02:00
CustomRenderersFactory.java [Android 6+] Add ability to always use ExoPlayer's MediaVideoCodecRenderer setOutputSurface workaround 2023-04-10 17:39:27 +02:00
LoadController.java Use DefaultLoadcontrol 2021-11-14 20:12:12 +01:00
LockManager.java Use ContextCompat.getSystemService() and the Context.getSystemService() extension function. 2020-10-09 08:52:05 +05:30
PlaybackParameterDialog.java Update AndroidX Fragment to 1.4.1 2022-07-24 15:35:33 -04:00
PlayerDataSource.java Changed the code accordingly 2022-07-15 19:55:19 +02:00
PlayerHelper.java Changed the naming 2023-04-04 09:57:06 +02:00
PlayerHolder.java Only show "Enqueue next" when in the middle of the queue 2022-12-04 18:20:50 +01:00
PlayerSemitoneHelper.java Use MathUtils.clamp(). 2022-07-20 05:36:01 +05:30