KinescopePlayerController class
Controls a Kinescope player, and provides status updates using status stream.
The video is displayed in a Flutter app by creating a KinescopePlayer
widget.
Constructors
- KinescopePlayerController(String videoId, {PlayerParameters parameters = const PlayerParameters()})
Properties
-
getCurrentTimeCompleter
↔ Completer<
Duration> ? -
Completer for getCurrentTime method
getter/setter pair
-
getDurationCompleter
↔ Completer<
Duration> ? -
Completer for getDuration method
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- parameters → PlayerParameters
-
Initial
KinescopePlayer
parameters.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ Stream<
KinescopePlayerStatus> -
Stream, that provides current player status
no setter
-
statusController
→ StreamController<
KinescopePlayerStatus> -
StreamController for status stream.
final
- videoId → String
-
Currently playing video id
no setter
- webViewController ↔ InAppWebViewController
-
Controller to communicate with WebView.
getter/setter pair
Methods
-
dispose(
) → void - Close statusController
-
getCurrentTime(
) → Future< Duration> - Get current position.
-
getDuration(
) → Future< Duration> - Get duration of video.
-
load(
String videoId) → void -
Loads the video as per the
videoId
provided. -
mute(
) → void - Mutes the player.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pauses the video.
-
play(
) → void - Plays the video.
-
seekTo(
Duration duration) → void - Seek to any position.
-
setVolume(
double value) → void - Set volume level (0..1, where 0 is 0% and 1 is 100%) Works only on Android
-
stop(
) → void - Stops the video.
-
toString(
) → String -
A string representation of this object.
inherited
-
unmute(
) → void - Unmutes the player.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited