0

我想在播放时播放 kinesis 流视频我使用这个依赖video_player

_controller = VideoPlayerController.network(
    '_controller = VideoPlayerController.network(
    'arn:aws:kinesisvideo:us-east-1:xxxxx:channel/xxxxxx/1632736797abc')
  ..initialize().then((_) {
    // Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
    setState(() {
      _controller.play();
    });
  });')
  ..initialize().then((_) {
    // Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
    setState(() {
      _controller.play();
    });
  });
4

0 回答 0