首页 > 解决方案 > 使用颤振在视频播放器中显示 kinesis 流视频

问题描述

我想在播放时播放 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();
    });
  });

标签: flutterflutter-aws-amplify

解决方案


推荐阅读