IvsPlayerController class

AWS IVS Player Controller for Flutter applications.

Manages the lifecycle and state of an AWS IVS video player, providing a clean Dart API while handling platform-specific communication.

Key features:

  • State synchronization between Flutter and native layers
  • Error handling with retry mechanisms
  • Resource cleanup and memory management
  • Event-driven architecture with callback handling

Usage:

final controller = IvsPlayerController();
await controller.play('https://stream-url.m3u8');
controller.pause();
controller.dispose();
Inheritance
Implemented types

Constructors

IvsPlayerController({PlayerPlatformChannel? platformChannel})

Properties

currentUrl → String?
no setteroverride
errorMessage → String?
no setteroverride
hasError → bool
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → PlayerState
no setteroverride

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → Future<void>
Discards any resources used by the object.
override
initialize(int viewId) → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onPlayerError(String errorMessage) → void
override
onPlayerReady() → void
override
onPlayerStateChanged(PlayerState state) → void
override
pause() → Future<void>
override
play(String url) → Future<void>
override
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resume() → Future<void>
override
stop() → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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