You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure to dispose both controller widgets after use. For example by overriding the dispose method of the a `StatefulWidget`:
40
+
```dart
41
+
@override
42
+
void dispose() {
43
+
videoPlayerController.dispose();
44
+
chewieController.dispose();
45
+
super.dispose();
46
+
}
33
47
```
34
48
35
49
## Example
36
50
37
51
Please run the app in the [`example/`](https://github.com/brianegan/chewie/tree/master/example) folder to start playing!
38
52
53
+
## Migrating from Chewie < 0.9.0
54
+
Instead of passing the `VideoPlayerController` and your options to the `Chewie` widget you now pass them to the `ChewieController` and pass that latter to the `Chewie` widget.
55
+
56
+
```dart
57
+
final playerWidget = Chewie(
58
+
videoPlayerController,
59
+
aspectRatio: 3 / 2,
60
+
autoPlay: true,
61
+
looping: true,
62
+
);
63
+
```
64
+
65
+
becomes
66
+
67
+
```dart
68
+
final chewieController = ChewieController(
69
+
videoPlayerController: videoPlayerController,
70
+
aspectRatio: 3 / 2,
71
+
autoPlay: true,
72
+
looping: true,
73
+
);
74
+
75
+
final playerWidget = Chewie(
76
+
controller: chewieController,
77
+
);
78
+
```
39
79
40
-
## iOS Warning
80
+
## iOS warning
41
81
42
82
The video player plugin used by chewie is not functional on iOS simulators. An iOS device must be used during development/testing. Please refer to this [issue](https://github.com/flutter/flutter/issues/14647).
0 commit comments