如何在Flutter中的重绘边界内添加VideoPlayer

问题描述 投票:0回答:1

我想在视频播放器中拍摄视频截图。但是我无法在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,),
        ),

      ],
    ),
  ),    
flutter flutter-layout
1个回答
0
投票

[RepaintBoundary不会帮助您捕获视频的任何帧。

How to capture a frame from the VideoPlayer widget flutter?

请让我/我们知道是否找到任何出路。

© www.soinside.com 2019 - 2024. All rights reserved.