Skip to content

Commit e6e20b3

Browse files
committed
Implement VideoPlayerPlatform.xxxWithOptions
1 parent 7be54d0 commit e6e20b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/fwfh_chewie/test/mock_video_player_platform.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class _FakeVideoPlayerPlatform extends Fake
2020
}
2121

2222
@override
23-
Widget buildView(int textureId) {
23+
Widget buildViewWithOptions(VideoViewOptions options) {
2424
return const Placeholder();
2525
}
2626

2727
@override
28-
Future<int?> create(DataSource dataSource) async {
28+
Future<int?> createWithOptions(VideoCreationOptions options) async {
2929
final textureId = _nextTextureId++;
30-
uris[textureId] = dataSource.uri;
30+
uris[textureId] = options.dataSource.uri;
3131
return textureId;
3232
}
3333

0 commit comments

Comments
 (0)