Video
The Video class is an immutable representation of all data related to a video, including associated metadata (in properties) and the groupings of source assets for this video.
Constructors
Link copied to clipboard
Initializes a new Video with a predefined metadata properties collection and a predefined Set of SourceCollection objects.
constructor(properties: Map<String, Any>, sourceCollectionSet: Set<SourceCollection>, cuePoints: List<CuePoint>)
Initializes a new Video with a predefined metadata properties collection, a predefined Set of SourceCollection objects, and a list of cue points.
Types
Link copied to clipboard
Any method attempting to call setDownloadId must be annotated explicitly with this annotation.
Link copied to clipboard
Any method attempting to call setLicenseExpiryDate must be annotated explicitly with this annotation.
Link copied to clipboard
Any method attempting to call setOfflinePlaybackLicenseKey must be annotated explicitly with this annotation.
Link copied to clipboard
enum ProjectionFormat
The list of known projection formats.
Properties
Link copied to clipboard
Deprecated.
Link copied to clipboard
Represent the default duration for a Live Video.
Link copied to clipboard
Represent the default duration for a Remote Video (including Remote Live Videos).
Link copied to clipboard
The globally unique identifier to the local copy of this video, if any.
Link copied to clipboard
The UTC date and time when the offline playback license for this video will expire.
Link copied to clipboard
The type of the parcelable object.
Link copied to clipboard
Functions
Link copied to clipboard
open fun createVideo(uri: String, type: DeliveryType, projectionFormat: Video.ProjectionFormat): Video
Creates a Video object from a string path.
Link copied to clipboard
Link copied to clipboard
Attempts to detect the delivery type of the asset URI provided.
Link copied to clipboard
Finds the source with highest bitrate for the specified delivery type.
Link copied to clipboard
Finds the source with lowest bitrate for the specified delivery type.
Link copied to clipboard
Ensures that the video properties to conform the expected value types.
Link copied to clipboard
It gets the video description from the SHORT_DESCRIPTION video property if available, or an empty string otherwise.
Link copied to clipboard
Convenience method for obtaining the parsed Duration value from the properties Map
Link copied to clipboard
Convenience method for obtaining the parsed Duration value from the properties Map
Link copied to clipboard
Convenience method to retrieve a property from the dynamic properties Map that is expected to be an Integer.
Convenience static method to retrieve a property from a properties Map that is expected to be an Integer.
Link copied to clipboard
It gets the video's long description from the LONG_DESCRIPTION video property if available.
Link copied to clipboard
Link copied to clipboard
Gets the key set identifier for the current offline playback license for this video, if any.
Link copied to clipboard
Gets the poster image source.
Link copied to clipboard
Gets the list of poster sources.
Link copied to clipboard
Link copied to clipboard
Gets the video format.
Link copied to clipboard
Retrieves a Map of dynamic properties for this object.
Link copied to clipboard
Convenience method for obtaining the parsed reference identifier from the properties map.
Link copied to clipboard
Retrieve the SourceCollection associated with this Video and the specified Delivery Type.
Link copied to clipboard
Retrieve a Set of the SourceCollections associated with this Video.
Link copied to clipboard
It gets the URI from the STILL_IMAGE_URI video property if available, or null otherwise.
Link copied to clipboard
Convenience method to retrieve a property from the dynamic properties Map that is expected to be a String.
Convenience static method to retrieve a property from a properties Map that is expected to be a String.
Link copied to clipboard
Gets the thumbnail image source.
Link copied to clipboard
Gets the list of thumbnail sources.
Link copied to clipboard
Check if the video is DRM free content.
Link copied to clipboard
Checks if this video is an offline copy, if and only if all of its sources are local.
Link copied to clipboard
Checks if the video can be stored locally on the host device.
Link copied to clipboard
Checks if this is a 360 degree video.
Link copied to clipboard
Sets the key set identifier for the current offline playback license for this video, if any.
Link copied to clipboard