Sunday, 15 August 2021

wrong playback speed with MediaPlayer on some devices

I tried to play a local mp4 video file on my TV Box. I found a weird issue with MediaPlayer's playback speed. Here're my logs:

19:30:09.346 E/MediaPlayerManager: currentMediaPlayer's duration = 16021
19:30:09.715 E/MediaPlayerManager: setOnInfoListener - MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START
19:30:27.982 E/MediaPlayerManager: onComplete

The media duration was 16s, but it took about 18s to complete the video's playback. Do you know any solution for this issue? How to play the video at a normal 1.0 speed?

P/s: I knew ExoPlayer, but for some specific reason, I could not use it.



from wrong playback speed with MediaPlayer on some devices

No comments:

Post a Comment