You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched a lot for this everyone posted portions or half code.
I have URL that plays a mkv video with quality 1080p the problem is in my app and in MX Player with HW buffers more than 1- 5 mins. But when I switch the decoder to SW it plays the video instantly. I don't know how MX Player implemented Software Decoder. I want that too...
I have tried using Renderer Mode on, off and prefer it doesn't work at all....
km_20240614_480p_60f_20240614_170241.mp4
The text was updated successfully, but these errors were encountered:
protected List<MediaCodecInfo> getDecoderInfos(
MediaCodecSelector mediaCodecSelector, Format format, boolean requiresSecureDecoder)
throws DecoderQueryException {
List<MediaCodecInfo> decoderInfos = super.getDecoderInfos(mediaCodecSelector, format, requiresSecureDecoder);
if (//Insert condition here like specific sampleMimeType or format resolution is 1080p) {
// check if decoderInfos contains the decoder that is hardwareAccelerated
// if yes, return a copy of the decoderInfos list excluding that decoder
}
The app can inject the custom renderer by overriding DefaultRenderersFactory.buildVideoRenderers()
The player should be created with your custom DefaultRenderersFactory by passing it in the ExoPlayer.Builder constructor, or with ExoPlayer.Builder.setRenderersFactory.
I have searched a lot for this everyone posted portions or half code.
I have URL that plays a mkv video with quality 1080p the problem is in my app and in MX Player with HW buffers more than 1- 5 mins. But when I switch the decoder to SW it plays the video instantly. I don't know how MX Player implemented Software Decoder. I want that too...
I have tried using Renderer Mode on, off and prefer it doesn't work at all....
km_20240614_480p_60f_20240614_170241.mp4
The text was updated successfully, but these errors were encountered: