Source

The Source class is an immutable representation of a specific playable video asset, including the URL or other necessary information required to play the video.

Constructors

Link copied to clipboard
constructor(properties: Map<String, Any>)
constructor(url: String)
Initializes a Source with a single URL property.
constructor(url: String, deliveryType: DeliveryType)
Initializes a Source with a single URL property with the given DeliveryType.

Types

Link copied to clipboard
class Fields
Provides the list of known field names that can appear in the properties Map.

Properties

Link copied to clipboard
The constant HLS EXT_X_VERSION_4.
Link copied to clipboard
The constant HLS EXT_X_VERSION_5.
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun getBitRate(): Integer
Convenience getter to retrieve the property with a key of BIT_RATE
Link copied to clipboard
Returns the DeliveryType for this Source, or DeliveryType.UNKNOWN if none was specified.
Link copied to clipboard
open fun getIntegerProperty(propertyName: String): Integer
Convenience method to retrieve a property from the dynamic properties Map that is expected to be an Integer.
open fun getIntegerProperty(properties: Map<String, Any>, propertyName: String): Integer
Convenience static method to retrieve a property from a properties Map that is expected to be an Integer.
Link copied to clipboard
open fun getKeySystem(keySystem: String): Map<String, Any>
Returns the specified key system, or an empty Map if the key system can not be found
Link copied to clipboard
open fun getLongProperty(properties: Map<String, Any>, propertyName: String): Long
Convenience static method to retrieve a property from a properties Map that is expected to be an Integer.
Link copied to clipboard
open fun getProperties(): Map<String, Any>
Retrieves a Map of dynamic properties for this object.
Link copied to clipboard
open fun getSourceUrl(source: Source): String
Gets the URL of the source.
Link copied to clipboard
open fun getStringProperty(propertyName: String): String
Convenience method to retrieve a property from the dynamic properties Map that is expected to be a String.
open fun getStringProperty(properties: Map<String, Any>, propertyName: String): String
Convenience static method to retrieve a property from a properties Map that is expected to be a String.
Link copied to clipboard
open fun getUrl(): String
Convenience getter to retrieve the property with the URL key
Link copied to clipboard
Checks if the source has HLSe encryption.
Link copied to clipboard
open fun hasKeySystem(keySystem: String): Boolean
Checks if the source has the specified key system.
Link copied to clipboard
open fun isLocal(): Boolean
Checks if the source points to local media.
Link copied to clipboard
open fun toString(): String