startPlayRemoteVideo method

void startPlayRemoteVideo(
  1. String userId,
  2. TUIVideoStreamType streamType,
  3. TUIPlayCallback? playCallback
)

Implementation

void startPlayRemoteVideo(String userId, TUIVideoStreamType streamType,
    TUIPlayCallback? playCallback) {
  String userData = Tools.generateUserData();
  if (playCallback != null) {
    _playCallbackMap.addAll({userData: playCallback});
  }
  _engineSDK.Dart_StartPlayRemoteVideo(
      _engineFFIPointer,
      Tools.string2PointerChar(userId),
      streamType.value(),
      Tools.string2PointerChar(userData));
}