UNPKG

aes70

Version:

A controller library for the AES70 protocol.

52 lines (50 loc) 1.77 kB
/* * This file has been generated. */ export class OcaMediaConnection { /** * A single-channel or multichannel connection between a local media connector * (i.e. **OcaMedia(Source/Sink)Connector** instance) of an * **OcaMediaTransportNetwork** object in this node and another ("remote") * media source or sink. Normally, the remote source or sink is in another * node. The remote end may or may not be an OCA-compliant device. A * connection is unidirectional. Its direction is determined by the connector * that owns the connection. Its direction is either: * * - *Outbound: * A signal flow from a **source** connector to an external * destination; or * * - *Inbound: * A signal flow from an external source to a **sink** * connector. * * * An **OcaMediaConnection** object may represent a connection to either a * unicast or a multicast stream. Any given **OcaMedia(Source/Sink)Connector** * object will only have one media connection. In non-OCA documents, * connections are sometimes referred to as *streams* or *flows.* * @class OcaMediaConnection */ constructor(Secure, StreamParameters, StreamCastMode, StreamChannelCount) { /** * True if and only if connection is secure. * @type boolean */ this.Secure = Secure; /** * Stream parameters (encoding, sampling, etc). Format is media network type * dependent. * @type Uint8Array */ this.StreamParameters = StreamParameters; /** * Unicast or multicast * @type OcaMediaStreamCastMode */ this.StreamCastMode = StreamCastMode; /** * Number of channels in connected stream * @type number */ this.StreamChannelCount = StreamChannelCount; } }