onPlatformViewCreated method

Future<void> onPlatformViewCreated(
  1. int id
)

Implementation

Future<void> onPlatformViewCreated(int id) async {
  final controller = RTCVideoPlatformViewController(id);
  _controller = controller;
  controller.onFirstFrameRendered = () => showVideoView(true);
  controller.onSrcObjectChange = () => showVideoView(false);
  controller.onResize = () => showVideoView(true);
  widget.onViewReady?.call(controller);
  await _controller?.initialize();
}