Skip to content

Commit 44fe634

Browse files
committed
Add documentation to the play function
1 parent c682c2a commit 44fe634

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/material/material_desktop_controls.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,11 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>
510510

511511
if (!controller.value.isInitialized) {
512512
controller.initialize().then((_) {
513+
//[VideoPlayerController.play] If the video is at the end, this method starts playing from the beginning
513514
controller.play();
514515
});
515516
} else {
517+
//[VideoPlayerController.play] If the video is at the end, this method starts playing from the beginning
516518
controller.play();
517519
}
518520
}

0 commit comments

Comments
 (0)