PodPlayerController class

Constructors

PodPlayerController({required PlayVideoFrom playVideoFrom, PodPlayerConfig podPlayerConfig = const PodPlayerConfig()})
controller for pod player

Properties

currentVideoPosition Duration
Returns the current position of the video
no setter
getTag String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isFullScreen bool
returns true if video is in fullscreen mode
no setter
isInitialised bool
returns true if video player is initialized
no setter
isMute bool
no setter
isVideoBuffering bool
returns true if video is in buffering state
no setter
isVideoLooping bool
returns true if loop is enabled
no setter
isVideoPlaying bool
returns true if video is playing
no setter
playVideoFrom PlayVideoFrom
final
podPlayerConfig PodPlayerConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalVideoLength Duration
Returns the video total duration
no setter
videoPlayerType PodVideoPlayerType
no setter
videoPlayerValue VideoPlayerValue?
no setter
videoState PodVideoState
no setter
videoUrl String?
returns the url of current playing video
no setter

Methods

addListener(VoidCallback listener) → void
Listen to changes in video.
changeVideo({required PlayVideoFrom playVideoFrom, PodPlayerConfig playerConfig = const PodPlayerConfig()}) Future<void>
used to change the video
disableFullScreen(BuildContext context) → void
Disables fullscreen mode.
dispose() → void
Dispose pod video player controller
doubleTapVideoBackward(int seconds) Future<void>
on left double tap
doubleTapVideoForward(int seconds) Future<void>
on right double tap
enableFullScreen() → void
Enables video player to fullscreen mode.
hideOverlay() → void
Hide overlay of video
initialise() Future<void>
Initializes the video player.
mute() Future<void>
mute the volume of the video
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onVideoQualityChanged(VoidCallback callback) → void
listener for the changes in the quality of the video
pause() → void
pauses the video
play() → void
plays the video
removeListener(VoidCallback listener) → void
Remove registered listeners
setDoubeTapForwarDuration(int seconds) → void
showOverlay() → void
Show overlay of video
togglePlayPause() → void
toogle play and pause
toggleVolume() Future<void>
toggle the volume
toString() String
A string representation of this object.
inherited
unMute() Future<void>
unmute the volume of the video
videoSeekBackward(Duration duration) Future<void>
Moves video backward from current duration to _duration
videoSeekForward(Duration duration) Future<void>
Moves video forward from current duration to _duration
videoSeekTo(Duration moment) Future<void>
Jumps to specific position of the video

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getVimeoUrls(String videoId, {String? hash}) Future<List<VideoQalityUrls>?>
getYoutubeUrls(String youtubeIdOrUrl, {bool live = false}) Future<List<VideoQalityUrls>?>