ZerorateHlsPlayerOptions class
Constructors
-
ZerorateHlsPlayerOptions({required String appId, required String region, String grantType = 'mobile', String subscriberId = '', String authUrl = '', MediaType type = MediaType.video, required String src, bool autoplay = true, StreamType mediaType = StreamType.onDemand, String? poster, bool muted = true, double? aspectRatio, Widget? placeholder, bool? placeholderOnTop, AudioControlsConfiguration? audioControlsConfiguration, VideoControlsConfig? videoControlsConfig, Map<
ZerorateHlsPlayerEventType, ZerorateHlsPlayerEventListener> ? eventListeners, dynamic onError(Exception)?, Widget errorBuilder(Exception)?, Widget controlsBuilder(dynamic controller)?, Color? iconsColor}) -
const
Properties
- appId → String
-
Application identifier for authentication
final
- aspectRatio → double?
-
The aspect ratio of the video player. This is a double value that
represents the width divided by the height of the video. If null,
the default aspect ratio will be used.
final
- audioControlsConfiguration → AudioControlsConfiguration?
-
Configuration for audio player controls
final
- authUrl → String
-
Endpoint to authenticate subscriber
final
- autoplay → bool
-
Auto-start playback
final
- controlsBuilder → Widget Function(dynamic controller)?
-
Custom controls builder
final
- errorBuilder → Widget Function(Exception)?
-
Custom error UI builder
final
-
eventListeners
→ Map<
ZerorateHlsPlayerEventType, ZerorateHlsPlayerEventListener> ? -
Event listeners for player events
final
- grantType → String
-
Authentication grant type (will be 'mobile' by
defalut until support is available for other device types)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconsColor → Color?
-
The color of the icons in the player controls. If null, the default
final
- mediaType → StreamType
-
Stream type (on-demand or live)
final
- muted → bool
-
Initial muted state
final
- onError → dynamic Function(Exception)?
-
Custom error handler
final
- placeholder → Widget?
-
A widget that will be displayed while the video is loading or buffering.
This can be any widget, such as a CircularProgressIndicator or a custom
loading animation. If null, no placeholder will be shown.
final
- placeholderOnTop → bool?
-
A boolean value that determines whether the placeholder widget should be
displayed on top of the video player. If true, the placeholder will be
shown on top of the video. If false or null, the placeholder will be
shown behind the video.
final
- poster → String?
-
Preview image URL
final
- region → String
-
Service region code
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- src → String
-
HLS manifest URL
final
- subscriberId → String
-
Unique subscriber identifier
final
- type → MediaType
-
Media type (video or audio)
final
- videoControlsConfig → VideoControlsConfig?
-
Configuration for video player controls
final
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