enableVideoData abstract method

Future<void> enableVideoData(
  1. bool enable,
  2. ZegoVideoFrameFormat format
)

Whether to video data playback.

Available since: 2.1.0 Description: Whether to throw out the video data of the media resource file played by the media player. When to call: After the ZegoMediaPlayer instance created. Restrictions: None. Caution: When you no longer need to get the video frame data, please call this function again to clear the handler to stop the video frame data callback.

  • enable Video data playback flag. The default is false.
  • format Video frame format for video data

Implementation

Future<void> enableVideoData(bool enable, ZegoVideoFrameFormat format);