WistiaPlayerController class

Inheritance

Constructors

WistiaPlayerController({required String videoId, WistiaPlayerOptions options = const WistiaPlayerOptions()})
Creates WistiaPlayerController.

Properties

hasDisposed bool
Returns whether or not the disposed is called on this controller.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
options WistiaPlayerOptions
Composes all the options required to control the player
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ WistiaPlayerValue
The current value stored in this notifier.
getter/setter pairinherited
videoId String
The video id of the Wistia video to play
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
aspect() num
Returns the aspect ratio (width / height) of the originally uploaded video.
cancelFullscreen() → void
If video is playing in fullscreen mode, calling this method will exit fullscreen.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
duration() num
Returns the duration of the video in seconds. This will return 0 until video.hasData() is true.
email(String? email) String?
Returns the email associated with this viewing session.
embedded() bool
Returns true if the video has been embedded, false if it hasn’t yet.
getSubtitlesScale() num
Returns the value of the multiplier that’s scaling the size of your captions.
hasData() bool
Returns true if the video has received data from the Wistia server, false if not.
hashId() String
Returns the hashed ID associated with this video.
height(int? val, {Map<String, dynamic>? options}) int
Returns the current height of the video container in pixels.
inFullscreen() bool
Returns true if the video is currently playing in fullscreen, false if not.
isMuted() bool
Returns true if the video is muted.
mute() → void
Disables audio on the video
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pause() → void
Pauses the video.
play() → void
Plays the video
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
unmute() → void
Enables audio on the video if it had been disabled via mute().
updateValue(WistiaPlayerValue newValue) → void
Updates the old WistiaPlayerOptions with new one provided.

Operators

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