fluttercommunity / fluttercommunity/chewie

Chewie, video_player >0.9 ans iOS

Open
#365 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

Hello.

I've discover an incompability between Chewie (last version) and video_player (version upper to 0.9) that affect iOS only
(All work great on Android)

Here is an extract of my code

```
void initState() {
super.initState();
_controller = VideoPlayerController.network(_url)
..initialize().then((_) {
setState(() {
_stackViewIndex = 0;
_controller.play();
});
});

_chewieController = ChewieController(
videoPlayerController: _controller,
aspectRatio: 16.0 / 9.0,
allowedScreenSleep: false,
autoPlay: true,
autoInitialize : true,
allowFullScreen : true,
looping: true,
);
}

```

With this code, the video player show only the first frame, but can't launch the video.

If i remove the lines
```
..initialize().then((_) {
setState(() {
_stackViewIndex = 0;
_controller.play();
});
});
```

All work great....

Do you have any idea on how to solve this.

Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.