initialize method

Future<void> initialize()

Initialize the video renderer

Implementation

Future<void> initialize() async {
  await renderer.initialize();
  renderer.srcObject = stream;
  renderer.onResize = () {
    Logs().i(
        'onResize [${stream!.id.substring(0, 8)}] ${renderer.videoWidth} x ${renderer.videoHeight}');
  };
}