AgoraVideoView
AgoraVideoView 类,用于渲染本地和远端视频。
Dart
class AgoraVideoView extends StatefulWidget {
const AgoraVideoView({
Key? key,
required this.controller,
}) : super(key: key);
final VideoViewControllerBase controller;
State<AgoraVideoView> createState() => AgoraVideoViewState();
}
key
Widget 的标识符。详见 Flutter 官方文档关于 key 对象的描述。controller
控制待渲染的视频类型:
- 如果渲染 RtcEngine 的视频,详见 VideoViewController。
- 如果渲染媒体播放器中的视频,详见 MediaPlayerController。