ThaNativePlayerController.single constructor
ThaNativePlayerController.single(
- ThaMediaSource source, {
- bool autoPlay = true,
- bool loop = false,
- ThaPlaybackOptions playbackOptions = const ThaPlaybackOptions(),
Create a controller with a single media item.
Implementation
ThaNativePlayerController.single(
ThaMediaSource source, {
this.autoPlay = true,
this.loop = false,
this.playbackOptions = const ThaPlaybackOptions(),
}) : playlist = [source],
_controllerId = _nextControllerId++ {
_wasPlaying = autoPlay;
}