startPlayingStream method

Future<void> startPlayingStream(
  1. String streamID,
  2. dynamic canvas,
  3. dynamic config
)

Implementation

Future<void> startPlayingStream(
    String streamID, dynamic canvas, dynamic config) {
  final playView = document.getElementById('zego-view-${canvas["view"]}');
  ZegoFlutterEngine.instance.setStyleByCanvas(jsonEncode(canvas));
  ZegoFlutterEngine.instance
      .startPlayingStream(streamID, playView, "", jsonEncode(config));
  return Future.value();
}