Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue May 31, 2024 · 1 comment

Comments

@yuxingmin
Copy link

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 yuxingmin changed the title when I play a url with "m3u8",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! 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! May 31, 2024
@yuxingmin
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant