AtomicPlayerImpl class

Implemented types

Constructors

AtomicPlayerImpl()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → PlayerState
Reactive state. Carries connection state, buffering status, playback statistics, etc. You can read the current value or observe changes.
no setteroverride

Methods

addListener(PlayerListener? listener) → void
Add player event callback listener.
override
enableAdvancedFeature(String key, Object value) → void
Enable an advanced feature by key-value pair. Supported keys depend on the underlying native player capability and may evolve over versions.
override
enableReceiveSeiMessage(bool enable, int payloadType) → void
Enable or disable receiving SEI messages. When enabled, SEI data embedded in the video stream will be delivered via the PlayerEvent.seiReceived event.
override
joinChannel(String liveID) → Future<CompletionHandler>
Join channel.
override
leaveChannel() → void
Leave channel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(PlayerListener? listener) → void
Remove player event callback listener.
override
setRenderRotation(PlayerRenderRotation rotation) → void
Set render rotation angle.
override
setView(AtomicLiveWidget view) → void
Set the render view. The video frames will be rendered into the given AtomicLiveView container. This binding is decoupled from the view's window-attachment timing: it is safe to call this before the view is attached to a window (e.g. inside UICollectionView cells or RecyclerView), the binding will be completed automatically once the view is ready.
override
setVolume(int volume) → void
Set playback volume.
override
snapshot() → Future<Image?>
Capture the current video frame.
override
startPlay(String url) → void
Start playing the remote stream specified by URL. Calling this method on an already-playing instance will stop the previous stream and play the new one.
override
stopPlay() → void
Stop playback.
override
switchStream(String url) → Future<CompletionHandler>
Seamlessly switch to a new stream URL without tearing down the current render view. Suitable for quality switching (such as 720p → 1080p) and CDN line failover.
override
toString() → String
A string representation of this object.
inherited

Operators

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