Video

open class Video : MetadataObject

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
constructor(properties: Map<String, Any>)
constructor(properties: Map<String, Any>, sourceCollectionSet: Set<SourceCollection>)
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
open class Builder
Convenience Builder to build Video objects.
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
open class Fields
Provides the list of known field names that can appear in the properties Map.
Link copied to clipboard
The list of known projection formats.
Link copied to clipboard
enum Status

Properties

Link copied to clipboard
open var CREATOR: Creator<Video>
Creator for de-serializing Video object from the given Parcel.
Link copied to clipboard
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
open var downloadId: UUID
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
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun createVideo(uri: String): Video
open fun createVideo(uri: String, type: DeliveryType): Video
open fun createVideo(uri: String, projectionFormat: Video.ProjectionFormat): Video
open fun createVideo(uri: String, type: DeliveryType, projectionFormat: Video.ProjectionFormat): Video
Creates a Video object from a string path.
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
Attempts to detect the delivery type of the asset URI provided.
Link copied to clipboard
open fun findHighQualitySource(deliveryType: DeliveryType): Source
Finds the source with highest bitrate for the specified delivery type.
Link copied to clipboard
open fun findLowQualitySource(deliveryType: DeliveryType): Source
Finds the source with lowest bitrate for the specified delivery type.
Link copied to clipboard
open fun fixProperties(): Video
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
open fun getDuration(): Int
Convenience method for obtaining the parsed Duration value from the properties Map
Link copied to clipboard
open fun getDurationLong(): Long
Convenience method for obtaining the parsed Duration value from the properties Map
Link copied to clipboard
open fun getId(): String
Convenience method for obtaining the parsed ID from the properties map.
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
It gets the video's long description from the LONG_DESCRIPTION video property if available.
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 getName(): String
It gets the video name from the NAME video property if available, or an empty string otherwise.
Link copied to clipboard
Gets the key set identifier for the current offline playback license for this video, if any.
Link copied to clipboard
open fun getPosterImage(): URI
Gets the poster image source.
Link copied to clipboard
open fun getPosterSources(): Set<URI>
Gets the list of poster sources.
Link copied to clipboard
Gets the video format.
Link copied to clipboard
open fun getProperties(): Map<String, Any>
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
open fun getStillImageUri(): URI
It gets the URI from the STILL_IMAGE_URI video property if available, or null otherwise.
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 getThumbnail(): URI
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
open fun isOwned(): Boolean
Checks if the video has a valid purchase license.
Link copied to clipboard
open fun isRented(): Boolean
Checks if the video has a valid rental license.
Link copied to clipboard
open fun isVideo360(): Boolean
Checks if this is a 360 degree video.
Link copied to clipboard
open fun setOfflinePlaybackLicenseKey(licenseKeySetId: Array<Byte>)
Sets the key set identifier for the current offline playback license for this video, if any.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(parcel: Parcel, i: Int)