setView abstract method

Future<void> setView(
  1. int view
)

设置播放器渲染视图。

在 Flutter 中你不需要主动调用该方法,请使用 AgoraVideoView 渲染本地和远端视图。

  • view 渲染视图。Windows 平台为窗口句柄(HWND)。

Returns 方法成功调用时,无返回值;方法调用失败时,会抛出 AgoraRtcException 异常,你需要捕获异常并进行处理。详见错误码了解详情和解决建议。

Implementation

Future<void> setView(int view);