Skip to content

Commit

Permalink
Add documentation to the play function
Browse files Browse the repository at this point in the history
  • Loading branch information
ToddZeil committed Jan 22, 2024
1 parent c682c2a commit 44fe634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/material/material_desktop_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,11 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>

if (!controller.value.isInitialized) {
controller.initialize().then((_) {
//[VideoPlayerController.play] If the video is at the end, this method starts playing from the beginning
controller.play();
});
} else {
//[VideoPlayerController.play] If the video is at the end, this method starts playing from the beginning
controller.play();
}
}
Expand Down

0 comments on commit 44fe634

Please sign in to comment.