public class SourceCollection extends SourceAwareMetadataObject
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).
SourceAwareMetadataObject.Fields
Modifier and Type | Field and Description |
---|---|
static SourceCollection |
EMPTY
Indicates an empty Source Collection.
|
properties, TAG
Constructor and Description |
---|
SourceCollection(java.util.Map<java.lang.String,java.lang.Object> properties) |
SourceCollection(java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Set<Source> sources)
Initializes a new SourceCollection with a predefined metadata properties collection and a
predefined Set of Source objects.
|
SourceCollection(java.util.Set<Source> sources,
DeliveryType deliveryType)
Initializes a new SourceCollection with a predefined Set of Source objects all having the
given DeliveryType.
|
SourceCollection(Source source,
DeliveryType deliveryType)
Convenience constructor that initializes the SourceCollection with a single Source (most
commonly used for HTTP Live Streaming which only has a single URL)
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Source> |
getSources()
Retrieves a collection of Source asset model objects in this SourceCollection.
|
java.lang.String |
toString() |
getDeliveryType, initializeDeliveryType
getIntegerProperty, getIntegerProperty, getProperties, getStringProperty, getStringProperty
public static final SourceCollection EMPTY
public SourceCollection(@NonNull java.util.Map<java.lang.String,java.lang.Object> properties)
public SourceCollection(@NonNull java.util.Map<java.lang.String,java.lang.Object> properties, @NonNull java.util.Set<Source> sources)
properties
- the metadata assigned to this instancesources
- the video asset sources to associate with this SourceCollectionpublic SourceCollection(@NonNull java.util.Set<Source> sources, @NonNull DeliveryType deliveryType)
sources
- the video asset sources to associate with this SourceCollectiondeliveryType
- the DeliveryType format for all the given Sourcespublic SourceCollection(@NonNull Source source, @NonNull DeliveryType deliveryType)
source
- the single Source for this collectiondeliveryType
- the DeliveryType format for all the given Sources@NonNull public java.util.Set<Source> getSources()
@NonNull public java.lang.String toString()
toString
in class MetadataObject