HMSHLSPlayerController class

100ms HMSHLSPlayerController

HMSHLSPlayerController class contains methods to control the HLS Playback

Constructors

HMSHLSPlayerController()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addHLSStatsListener() Future<void>
Adds an HLS stats listener to receive HLS playback statistics. Refer add HLS Stats listener
addHMSHLSPlaybackEventsListener(HMSHLSPlaybackEventsListener hmshlsPlaybackEventsListener) → void
Adds an HMSHLSPlaybackEventsListener to listen for HLS playback events. parameters:
areClosedCaptionsSupported() Future<bool>
areClosedCaptionsSupported checks whether closed captions are supported in the current HLS playback. This can be enabled/disabled from 100ms dashboard.
disableClosedCaptions() Future<void>
disableClosedCaptions disables closed captions in the current HLS playback. Refer disableClosedCaptions
enableClosedCaptions() Future<void>
enableClosedCaptions enables closed captions in the current HLS playback. Refer enableClosedCaptions
getStreamProperties() Future<HLSStreamProperties>
getStreamProperties gets the properties of the current HLS stream. Refer getStreamProperties
pause() Future<void>
Pauses the HLS playback. Refer Pause HLS Playback
removeHLSStatsListener() Future<void>
Removes the HLS stats listener that was previously added. Refer remove HLS Stats listener
removeHMSHLSPlaybackEventsListener(HMSHLSPlaybackEventsListener hmshlsPlaybackEventsListener) → void
Removes an HMSHLSPlaybackEventsListener that was previously added. parameters:
resume() Future<void>
Resumes the paused HLS playback. Refer Resume HLS Playback
seekBackward({required int seconds}) Future<void>
Seeks backward in the HLS playback by the specified seconds. parameters:
seekForward({required int seconds}) Future<void>
Seeks forward in the HLS playback by the specified seconds. parameters:
seekToLivePosition() Future<void>
Seeks to the live position in the HLS playback. Refer Seek to live position
setVolume({required int volume}) Future<void>
Sets the volume of the HLS player to the specified volume. parameters:
start({String? hlsUrl}) Future<void>
Starts the HLS playback with the specified hlsUrl. parameters:
stop() Future<void>
Stops the HLS playback. Refer Stop HLS Player