Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 49b93ae

Browse files
committed
Add videoEventsFor
1 parent db8af39 commit 49b93ae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/video_player/video_player_web/lib/video_player_web.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,10 @@ class VideoPlayerPlugin extends VideoPlayerPlatform {
183183
videoPlayers[textureId].sendBufferingUpdate();
184184
return videoPlayers[textureId].getPosition();
185185
}
186+
187+
@override
188+
Stream<VideoEvent> videoEventsFor(int textureId) {
189+
videoPlayers[textureId].sendBufferingUpdate();
190+
return videoPlayers[textureId].eventController.stream;
191+
}
186192
}

0 commit comments

Comments
 (0)