-
- All Implemented Interfaces:
-
java.io.Serializable
public class SourceCollection extends SourceAwareMetadataObject
The SourceCollection class represents a collection of video asset Source model objects grouped by a common encoding and/or delivery method. The delivery method is defined in the dynamic metadata properties.
For example, one SourceCollection may contain several H.264-encoded asset URLs suitable for progressive download, each representing a different bit rate and resoultion, while another SourceCollection may contain a single HTTP Live Streaming (HLS) asset URL (with which the adaptation of bit rate is managed via the HLS protocol and not separate asset URLs).
-
-
Field Summary
Fields Modifier and Type Field Description public final static SourceCollection
EMPTY
private final Set<Source>
sources
-
Constructor Summary
Constructors Constructor Description SourceCollection(Map<String, Object> properties)
SourceCollection(Map<String, Object> properties, Set<Source> sources)
Initializes a new SourceCollection with a predefined metadata properties collection and apredefined Set of Source objects. SourceCollection(Set<Source> sources, DeliveryType deliveryType)
Initializes a new SourceCollection with a predefined Set of Source objects all having thegiven DeliveryType. SourceCollection(Source source, DeliveryType deliveryType)
Convenience constructor that initializes the SourceCollection with a single Source (mostcommonly used for HTTP Live Streaming which only has a single URL)
-
Method Summary
Modifier and Type Method Description Set<Source>
getSources()
Retrieves a collection of Source asset model objects in this SourceCollection. String
toString()
-
Methods inherited from class com.brightcove.player.model.SourceAwareMetadataObject
getDeliveryType
-
Methods inherited from class com.brightcove.player.model.MetadataObject
getIntegerProperty, getIntegerProperty, getLongProperty, getProperties, getStringProperty, getStringProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SourceCollection
SourceCollection(Map<String, Object> properties, Set<Source> sources)
Initializes a new SourceCollection with a predefined metadata properties collection and apredefined Set of Source objects.- Parameters:
properties
- the metadata assigned to this instancesources
- the video asset sources to associate with this SourceCollection
-
SourceCollection
SourceCollection(Set<Source> sources, DeliveryType deliveryType)
Initializes a new SourceCollection with a predefined Set of Source objects all having thegiven DeliveryType.- Parameters:
sources
- the video asset sources to associate with this SourceCollectiondeliveryType
- the DeliveryType format for all the given Sources
-
SourceCollection
SourceCollection(Source source, DeliveryType deliveryType)
Convenience constructor that initializes the SourceCollection with a single Source (mostcommonly used for HTTP Live Streaming which only has a single URL)- Parameters:
source
- the single Source for this collectiondeliveryType
- the DeliveryType format for all the given Sources
-
-
-
-