This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/video_player/video_player_web Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ class VideoPlayerPlugin extends VideoPlayerPlatform {
33
33
}
34
34
35
35
void _disposeAllPlayers () {
36
- _videoPlayers
37
- .forEach ((_, _VideoPlayer videoPlayer) => videoPlayer.dispose ());
36
+ _videoPlayers.values
37
+ .forEach ((_VideoPlayer videoPlayer) => videoPlayer.dispose ());
38
38
_videoPlayers.clear ();
39
39
}
40
40
@@ -114,9 +114,10 @@ class _VideoPlayer {
114
114
..controls = false
115
115
..style.border = 'none' ;
116
116
117
+ // TODO(hterkelsen): Use initialization parameters once they are available
117
118
// ignore: undefined_prefixed_name
118
119
ui.platformViewRegistry.registerViewFactory (
119
- textureId. toString () , (int viewId) => videoElement);
120
+ 'videoPlayer-$ textureId ' , (int viewId) => videoElement);
120
121
121
122
videoElement.onCanPlay.listen ((dynamic _) {
122
123
if (! isInitialized) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: video_player_web
2
2
description : Web platform implementation of video_player
3
3
author : Flutter Team <flutter-dev@googlegroups.com>
4
4
homepage : https://github.com/flutter/plugins/tree/master/packages/video_player/video_player_web
5
- version : 0.0.1
5
+ version : 0.1.0
6
6
7
7
flutter :
8
8
plugin :
You can’t perform that action at this time.
0 commit comments