VideoPlayerController class

Constructors

VideoPlayerController()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
getCurrentPosition() → Future<Duration>
getDuration() → Future<Duration>
getVideoQualities() → Future<List<BmdrmVideoQuality>>
The video renditions of the stream that is playing, highest resolution first. Auto is not in the list — it is BmdrmVideoQuality.auto. Empty when the renditions are not known yet, when the stream has only one, and on iOS below 15 where the variants API does not exist.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
play() → Future<void>
seekTo(Duration position) → Future<void>
setDrawerOpen(bool open) → Future<void>
setDrmConfig({required String videoUrl, required String licenseUrl, String? signingKey, String? edgeName, String? token, String? kid, double? width, double? height, String? alignment, String? certificateUrl, String? nonceUrl, String? jwt, int startPositionMs = 0, bool flutterOwnsFullscreen = false, BmdrmDrawerToggle drawerToggle = const BmdrmDrawerToggle()}) → Future<void>
setFlutterOwnsFullscreen(bool value) → Future<void>
setFullscreen(bool enter) → Future<void>
setPlaybackSpeed(double speed) → Future<void>
setUrl(String url, {String? signingKey}) → Future<void>
setVideoQuality(int id) → Future<void>
Pins the rendition with id (an id from getVideoQualities); -1 restores Auto. Native answers with onVideoQualityChanged once applied.
setVolume(double volume) → Future<void>
setWatermarkConfig(WatermarkConfig config) → Future<void>
stop() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

clearAllSavedPositions() → Future<void>
clearSavedPosition(String resumeId) → Future<void>
continueWatching({int limit = 20}) → Future<List<ResumeEntry>>
getSavedPosition(String resumeId) → Future<Duration>