Delivery

Delivery

The `Delivery` class represents a container of multiple sources.

Constructor

# new Delivery(opts)

`Delivery` class constructor.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
id String
Source:

Extends

  • nanoresource-pool

Members

# assets :Array.<Source>

All assets in the delivery pool, including child delivery pools.
Type:
Source:

# sources :Array.<Source>

All sources in the delivery pool, including child delivery pools.
Type:
Source:

Methods

# associate(uri, opts) → {Asset}

Creates and adds a new Asset from a URI. Associates it with the Delivery.
Parameters:
Name Type Description
uri String
opts Object
Source:
Returns:
Type
Asset

# demux(opts, callback) → {EventEmitter}

Demux sources into output streams. Outputs
Parameters:
Name Type Description
opts Object
callback function
Returns:
Type
EventEmitter

# probe(opts, callback)

Probes all sources in delivery pool.
Parameters:
Name Type Description
opts Object
callback function

# source(uri, opts) → {Source}

Creates and adds a new source from a URI.
Parameters:
Name Type Description
uri String
opts Object
Source:
Returns:
Type
Source

# stat(callback)

An alias for `probe()`.
Parameters:
Name Type Description
callback function