SourceConfig class

Configures a Source that can be loaded into a Player.

Inheritance
Annotations

Constructors

SourceConfig({required String url, required SourceType type, String? title, String? description, List<String>? audioCodecPriority, bool isPosterPersistent = false, String? posterSource, List<SubtitleTrack>? subtitleTracks = const [], ThumbnailTrack? thumbnailTrack, List<String>? videoCodecPriority, SourceOptions options = const SourceOptions(), DrmConfig? drmConfig, SourceMetadata? analyticsSourceMetadata})
const
SourceConfig.createFromUrl(String url, SourceType type)
Creates a SourceConfig from the given url and type
factory
SourceConfig.fromJson(Map<String, dynamic> json)
Creates a SourceConfig from json
factory

Properties

analyticsSourceMetadata SourceMetadata?
The SourceMetadata for the Source, to setup custom analytics tracking
final
audioCodecPriority List<String>?
The audio codec priority for the Source where the index has the highest priority. Default value is null. In this case the player will use the default that is provided by the platform.
final
description String?
The descriptions of the Source.
final
drmConfig DrmConfig?
The DrmConfig for the Source.
final
hashCode int
The hash code for this object.
no setterinherited
isPosterPersistent bool
Whether the poster is persistent. Default value is false
final
options SourceOptions
The additional SourceOptions for the Source.
final
posterSource String?
The URL pointing to the poster image.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subtitleTracks List<SubtitleTrack>?
A list of additional SubtitleTrack available for the Source.
final
thumbnailTrack → ThumbnailTrack?
The current ThumbnailTrack or null.
final
title String?
The title of the Source.
final
type SourceType
The SourceType of the Source.
final
url String
The URL pointing to the media stream with the specified SourceType.
final
videoCodecPriority List<String>?
The video codec priority for the Source where the index has the highest priority. Default value is null. In this case the player will use the default that is provided by the platform.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this SourceConfig into JSON friendly Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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