fromZego static method

ZegoUIKitMediaPlayState fromZego(
  1. ZegoMediaPlayerState zegoMediaPlayerState
)

Implementation

static ZegoUIKitMediaPlayState fromZego(
    ZegoMediaPlayerState zegoMediaPlayerState) {
  switch (zegoMediaPlayerState) {
    case ZegoMediaPlayerState.NoPlay:
      return ZegoUIKitMediaPlayState.noPlay;
    case ZegoMediaPlayerState.Playing:
      return ZegoUIKitMediaPlayState.playing;
    case ZegoMediaPlayerState.Pausing:
      return ZegoUIKitMediaPlayState.pausing;
    case ZegoMediaPlayerState.PlayEnded:
      return ZegoUIKitMediaPlayState.playEnded;
  }
}