create rtcmediaplayer

最近更新时间:2022-09-20 05:17:40

  static Future<RtcMediaPlayer> create() async

创建

并返回

Implementation

  static Future<RtcMediaPlayer> create() async {
    if(_mediaPlayer ==null){
      await _methodChannel.invokeMethod("createInstance");
      _mediaPlayer = RtcMediaPlayer();
    }
    return _mediaPlayer;
  }