fluttercommunity / chewie

The video player for Flutter with a heart of gold
MIT License
1.94k stars 1.01k forks source link

when I play a url with "m3u8" on iPhone device,it a living url, when I start ,the center button alaways is replay button, the function is ok ,just the icon is alaways replay button, how to resolve this problem! #837

Open yuxingmin opened 5 months ago

yuxingmin commented 5 months ago

Future initializePlayer() async { videoController = VideoPlayerController.networkUrl(Uri.parse(widget.url)); await Future.wait([videoController.initialize()]); chewieController = ChewieController( videoPlayerController: videoController, aspectRatio: widget.aspectRatio, autoPlay: widget.autoPlay, looping: widget.looping, isLive: true, showOptions: false, // useRootNavigator: false, // controlsSafeAreaMinimum: EdgeInsets.fromLTRB(0, 0, 0, 20), allowPlaybackSpeedChanging: false, allowMuting: false, //声音 // placeholder: placeHolder, materialProgressColors: progressColors, customControls: const MaterialControls( showPlayButton: true, )); setState(() {}); }

yuxingmin commented 5 months ago

就是当我播放一个直播流的地址,是么m3u8格式的,当我开始后,中间的控制按钮总是replay,不是播放和暂停的图标