Open talhatsk opened 1 month ago
android.media.MediaCodec$CodecException: Error 0xfffffff4
is not really explicit.
As a short term solution, I will mitigate this issue by not calling Codec configure
when stopStream
is call and it is not streaming.
In the current implementation, the codec (Android API called MediaCodec) is released and reopen when calling stopStream
so it is quickly ready for a new shot.
Currently, I am reworking the native Android component. I already changed that behavior so that the MediaCodec won't be open/close anymore when calling stopStreaming
.
android.media.MediaCodec$CodecException: Error 0xfffffff4
is not really explicit. As a short term solution, I will mitigate this issue by not calling Codecconfigure
whenstopStream
is call and it is not streaming.In the current implementation, the codec (Android API called MediaCodec) is released and reopen when calling
stopStream
so it is quickly ready for a new shot. Currently, I am reworking the native Android component. I already changed that behavior so that the MediaCodec won't be open/close anymore when callingstopStreaming
.
How can i fix this crash right now? FYI i'm not calling stopStreaming while mounting or unmounting the component, it is only called when the stream is connected to RTMP server.
Wait for a new release.
stopStreaming
is used internally when the application is unmounting.
Wait for a new release.
stopStreaming
is used internally when the application is unmounting.
okay, thanks
Hi @ThibaultBee,
I'm experiencing the same issue. As you mentioned, it will be fixed in the upcoming version. Could you please let me know when we can expect the new version to be released?
We don't have source code to get you a PR and its affecting our tests alot making android more or less unreliable. Any rough eta on this?
Great, have you released it, how soon can we test it?
when are you planning to release it ? @ThibaultBee
Hi,
I have made the fixes in the main
branch.
Could you test on the main
branch?
Hi, I have made the fixes in the
main
branch. Could you test on themain
branch?
its fixed step tried:
@ThibaultBee when do you plan to release it?.
Version
v2.0.0
Which operating systems have you used?
Environment that reproduces the issue
Tested on Xiaomi Redmi Note 11S android 13
Is it reproducible in the example application?
Not tested
RTMP Server
*
Reproduction steps
I have a component where
<ApiVideoLiveStreamView.../>
is placed. Upon mounting and unmounting the component for few time ( more than 3 times) without even connecting to the server, the app gets crashed.Expected result
the app should not crash
Actual result
the app is crashing on mounting/unmounting the component containing
<ApiVideoLiveStreamView.../>
.Additional context
react native: 0.71.13
Relevant logs output