Android: onPlayerError/onSetupPlayer are not called when there is an error regarding the hlsUrl or the signature token.
iOS: - when there is a video play error (invalid hls url or expired token) onPlayerError is not called. Instead, the onSetupPlayerError is called and event?.nativeEvent does not contain enough data for error handling in react native:
// event?.nativeEvent:
{"error": "This video file cannot be played.", "target": 7355}
Object should contain the error code. In case token is expired a fetch from BE could be done to obtain a new valid hlsUrl
To Reproduce
Use an invalid hlsUrl (one that gives a 404) or use an expired signature.
Observe there are no logs on Android and on iOS there is no information about the error code.
Expected behavior
In case of any player or setup error at least one of the error functions should be called and the error code should be exposed in the nativeEvent object.
Screenshots / Visual evidence
Player displays error codes but these are not included in the nativeEvent or the onError functions are not being called.
Description
Android: onPlayerError/onSetupPlayer are not called when there is an error regarding the
hlsUrl
or the signature token.iOS: - when there is a video play error (invalid hls url or expired token)
onPlayerError
is not called. Instead, theonSetupPlayerError
is called andevent?.nativeEvent
does not contain enough data for error handling in react native:Object should contain the error code. In case token is expired a fetch from BE could be done to obtain a new valid
hlsUrl
To Reproduce
Expected behavior In case of any player or setup error at least one of the error functions should be called and the error code should be exposed in the nativeEvent object.
Screenshots / Visual evidence
Player displays error codes but these are not included in the nativeEvent or the onError functions are not being called.