setPlayingCanvas method

Future<int> setPlayingCanvas(
  1. String streamID,
  2. ZegoViewUpdateType updateType, {
  3. ZegoCanvas? canvas,
})

Setting up playing canvas.

Available: since 3.21.0 Description: This interface can add, delete and update playing view. Use case: The user can call this function to add, delete and update canvas display video. When to call: After calling the startPlayingStream interface. Restrictions: None. Caution: None. Note: This function is only available in ZegoExpressVideo SDK!

Implementation

Future<int> setPlayingCanvas(String streamID, ZegoViewUpdateType updateType,
    {ZegoCanvas? canvas}) async {
  return await ZegoExpressImpl.instance
      .setPlayingCanvas(streamID, updateType, canvas: canvas);
}