MediaBuilder Class |
The MediaBuilder assists in creating playlists of fully configurable MediaUnits, together with attached, configurable MediaOverlays, using JSON files or using a Dictionary, both following the same structure.
The media builder also has class methods that assist with the generation of individual MediaUnit and MediaOverlay objects from corresponding JSON or Dictionary structures.
Plugins can be attached to a media builder. Each plugin can dynamically insert, edit or remove units and/or overlays from the generated playlist.
Namespace: Veeplay.media
The MediaBuilder type exposes the following members.
Name | Description | |
---|---|---|
MediaBuilder | Initializes a new instance of the MediaBuilder class |
Name | Description | |
---|---|---|
adBreaksForVMAP |
Generates a list of VastAdBreaks from a VMAP xml
| |
configureFromData |
Configures the builder from a String object.
| |
configureFromDictionary |
Configures the builder from a Dictionary<String, Object> object.
| |
configureFromURL(String) |
Configures the builder from a JSON structure.
Warning: This method may execute blocking network I/O on the calling thread.
| |
configureFromURL(Uri) |
Configures the builder from a JSON structure.
Warning: This method may execute blocking network I/O on the calling thread.
| |
controlsParametersFromDictionary |
Configures the builder from a Dictionary<String, Object> object.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
initWithMediaUnit |
Initializes builder with a playlist of a single MediaUnit.
| |
mediaUnits |
Returns a generated playlist of MediaUnits, based on builder configuration and registered plugins.
Warning: This method may execute blocking network I/O on the calling thread.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
overlayFromDictionary |
Factory method to generate new instance of MediaOverlay via Dictionary<String, Object> configuration.
| |
pointsForOffset | ||
positionFromString |
Configures overlay position from a string
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
unitFromDictionary |
Configures the builder from a Dictionary<String, Object> object.
|
Name | Description | |
---|---|---|
adBreaks | ||
adBreakTemplate | ||
bumperUnits | List containing MediaUnits that will be scheduled before ones in contentUnits in the generated playlist. | |
contentUnits | List containing the main content MediaUnits that will make up the playlist. | |
defaultAdBreakPositions | ||
exitUnits | ||
MarlinDRMEncoding | ||
MetadataDrmEncodingType | ||
MetadataDrmUrl | ||
userAgent | ||
vastOffset | ||
vastType | ||
vastURL | ||
vmapURL |