I am developing a web application for android devices.
I get an intermittent codec error on Chrome for Android when playing a video in my React application. I am using a regular <video /> tag.
The error never happens on the first time the video loads, upon hitting the back button and then navigating back to the video (Client side routing -- no refresh) the error occurs and the video is not playable. Here are the main logs from adb logcat
mediaCodec: Codec reported err 0xffffec77, actionCode 0, while in state 3
MEDIA_ERROR_LOG_ENTRY {"error":"video decoder reinitialization failed"} chromium failed
android.media.MediaCodec$CodecException: Error 0xffffec77
So I get the codec error.
The weird part is if I keep clicking the play button it will eventually work.
Other noteworthy details are that it works just fine on firefox and my computer (firefox and chome) has no problems. It is only occurring on chrome for android.
any thoughts?