我想在视频播放器中拍摄视频截图。但是我无法在RepaintBoundary内部调整VideoPlayer。
RepaintBoundary(
key: screen,
child: Stack(
children: <Widget>[
Container(
child: videoPlayerController.value.initialized ? AspectRatio(
aspectRatio: videoPlayerController.value.aspectRatio,
child: VideoPlayer(videoPlayerController),
) : Container(color: Colors.red,),
),
],
),
),
[RepaintBoundary不会帮助您捕获视频的任何帧。
How to capture a frame from the VideoPlayer widget flutter?
请让我/我们知道是否找到任何出路。