public static enum State {
BUFFERING,
PLAYING,
READY,
IDLE,
ENDED;
private State() {
}
}
But, on iOS, the IVSPlayerState is defined:
typedef NS_ENUM(NSInteger, IVSPlayerState) {
/// Indicates that the status of the player is idle.
IVSPlayerStateIdle,
/// Indicates that the player is ready to play the selected source.
IVSPlayerStateReady,
/// Indicates that the player is buffering content.
IVSPlayerStateBuffering,
/// Indicates that the player is playing.
IVSPlayerStatePlaying,
/// Indicates that the player reached the end of the stream.
IVSPlayerStateEnded,
} NS_SWIFT_NAME(IVSPlayer.State);
The ordinal values are different and it is breaking my efforts to create a react native wrapper across both platforms for AWS IVS.
FYI, on Android, the
State
enum is defined:But, on iOS, the
IVSPlayerState
is defined:The ordinal values are different and it is breaking my efforts to create a react native wrapper across both platforms for AWS IVS.
Thanks!