Click or drag to resize
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.

Inheritance Hierarchy
SystemObject
  Veeplay.mediaMediaBuilder

Namespace: Veeplay.media
Assembly: Veeplay (in Veeplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class MediaBuilder

The MediaBuilder type exposes the following members.

Constructors
  NameDescription
Public methodMediaBuilder
Initializes a new instance of the MediaBuilder class
Top
Methods
  NameDescription
Public methodadBreaksForVMAP
Generates a list of VastAdBreaks from a VMAP xml
Public methodconfigureFromData
Configures the builder from a String object.
Public methodconfigureFromDictionary
Configures the builder from a Dictionary<String, Object> object.
Public methodconfigureFromURL(String)
Configures the builder from a JSON structure.

Warning: This method may execute blocking network I/O on the calling thread.

Public methodconfigureFromURL(Uri)
Configures the builder from a JSON structure.

Warning: This method may execute blocking network I/O on the calling thread.

Public methodStatic membercontrolsParametersFromDictionary
Configures the builder from a Dictionary<String, Object> object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodinitWithMediaUnit
Initializes builder with a playlist of a single MediaUnit.
Public methodmediaUnits
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.

Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberoverlayFromDictionary
Factory method to generate new instance of MediaOverlay via Dictionary<String, Object> configuration.
Public methodpointsForOffset
Public methodStatic memberpositionFromString
Configures overlay position from a string
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberunitFromDictionary
Configures the builder from a Dictionary<String, Object> object.
Top
Fields
  NameDescription
Public fieldadBreaks
Public fieldadBreakTemplate
Public fieldbumperUnits

List containing MediaUnits that will be scheduled before ones in contentUnits in the generated playlist.

Public fieldcontentUnits

List containing the main content MediaUnits that will make up the playlist.

Public fielddefaultAdBreakPositions
Public fieldexitUnits
Public fieldStatic memberMarlinDRMEncoding
Public fieldStatic memberMetadataDrmEncodingType
Public fieldStatic memberMetadataDrmUrl
Public fielduserAgent
Public fieldvastOffset
Public fieldvastType
Public fieldvastURL
Public fieldvmapURL
Top
See Also