createVideoRenderer static method

Future<NERtcVideoRenderer> createVideoRenderer({
  1. NERtcVideoRendererEventListener? listener,
})

创建 NERtcVideoRenderer, 同时进行初始化

Implementation

static Future<NERtcVideoRenderer> createVideoRenderer(
    {NERtcVideoRendererEventListener? listener}) async {
  NERtcVideoRenderer renderer = _NERtcVideoRendererImpl(listener: listener);
  await renderer.initialize();
  return renderer;
}