@vonage/media-processor 1.2.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,53 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@vonage/media-processor</title><meta name="description" content="Documentation for @vonage/media-processor"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@vonage/media-processor</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>@vonage/media-processor</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class"><a href="classes/MediaProcessor.html" class="tsd-kind-icon">Media<wbr/>Processor</a></li><li class="tsd-kind-class"><a href="classes/MediaProcessorConnector.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorConnectorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector<wbr/>Interface</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Interface</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="modules.html#ErrorData" class="tsd-kind-icon">Error<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ErrorFunction" class="tsd-kind-icon">Error<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventDataMap" class="tsd-kind-icon">Event<wbr/>Data<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventMetaData" class="tsd-kind-icon">Event<wbr/>Meta<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#PipelineInfoData" class="tsd-kind-icon">Pipeline<wbr/>Info<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageMetadata" class="tsd-kind-icon">Vonage<wbr/>Metadata</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageSourceType" class="tsd-kind-icon">Vonage<wbr/>Source<wbr/>Type</a></li><li class="tsd-kind-type-alias"><a href="modules.html#WarnData" class="tsd-kind-icon">Warn<wbr/>Data</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="modules.html#getVonageMetadata" class="tsd-kind-icon">get<wbr/>Vonage<wbr/>Metadata</a></li><li class="tsd-kind-function"><a href="modules.html#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setVonageMetadata" class="tsd-kind-icon">set<wbr/>Vonage<wbr/>Metadata</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ErrorData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Error<wbr/>Data<a href="#ErrorData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Error<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">; </span>eventMetaData<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a><span class="tsd-signature-symbol">; </span>function<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorFunction</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
2
- <p>ErrorData the error data type</p>
3
- <pre><code class="language-ts"><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-1">eventMetaData</span><span class="hl-0">: { </span><span class="hl-1">transformerIndex</span><span class="hl-0">: </span><span class="hl-2">0</span><span class="hl-0">},</span><br/><span class="hl-0"> </span><span class="hl-1">ErrorData</span><span class="hl-0">: </span><span class="hl-3">&#39;start&#39;</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-1">error</span><span class="hl-0">: </span><span class="hl-4">e</span><span class="hl-0"> (</span><span class="hl-5">the</span><span class="hl-0"> </span><span class="hl-5">exception</span><span class="hl-0"> </span><span class="hl-6">in</span><span class="hl-0"> </span><span class="hl-5">the</span><span class="hl-0"> </span><span class="hl-5">catch</span><span class="hl-0">)</span><br/><span class="hl-0"> }</span>
4
- </code></pre>
5
- </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span></h5></li><li class="tsd-parameter"><h5>event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a></h5></li><li class="tsd-parameter"><h5>function<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorFunction</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ErrorFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Error<wbr/>Function<a href="#ErrorFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Error<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;start&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;transform&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;flush&quot;</span></div><div class="tsd-comment tsd-typography"><div class="lead">
6
- <p>ErrorFunction specifies the function which the error (exception) happened</p>
7
- </div></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="EventDataMap" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Event<wbr/>Data<wbr/>Map<a href="#EventDataMap" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Event<wbr/>Data<wbr/>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>error<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorData" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorData</a><span class="tsd-signature-symbol">; </span>pipelineInfo<span class="tsd-signature-symbol">: </span><a href="modules.html#PipelineInfoData" class="tsd-signature-type" data-tsd-kind="Type alias">PipelineInfoData</a><span class="tsd-signature-symbol">; </span>warn<span class="tsd-signature-symbol">: </span><a href="modules.html#WarnData" class="tsd-signature-type" data-tsd-kind="Type alias">WarnData</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
8
- <p>EventDataMap the options of event data</p>
9
- </div><dl class="tsd-comment-tags"><dt>warn</dt><dd><ul>
10
- <li>see <code>WarnData</code></li>
11
- </ul>
12
- </dd><dt>error</dt><dd><ul>
13
- <li>see <code>ErrorData</code></li>
14
- </ul>
15
- </dd><dt>pipelineinfo</dt><dd><ul>
16
- <li>see <code>pipelineInfo</code></li>
17
- </ul>
18
- </dd></dl></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorData" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorData</a></h5></li><li class="tsd-parameter"><h5>pipeline<wbr/>Info<span class="tsd-signature-symbol">: </span><a href="modules.html#PipelineInfoData" class="tsd-signature-type" data-tsd-kind="Type alias">PipelineInfoData</a></h5></li><li class="tsd-parameter"><h5>warn<span class="tsd-signature-symbol">: </span><a href="modules.html#WarnData" class="tsd-signature-type" data-tsd-kind="Type alias">WarnData</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="EventMetaData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Event<wbr/>Meta<wbr/>Data<a href="#EventMetaData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>transformerIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
19
- <p>EventMetaData the meta data of the event.</p>
1
+ <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@vonage/media-processor</title><meta name="description" content="Documentation for @vonage/media-processor"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@vonage/media-processor</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>@vonage/media-processor </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Enumerations</h3><ul class="tsd-index-list"><li class="tsd-kind-enum"><a href="enums/ErrorFunction.html" class="tsd-kind-icon">Error<wbr/>Function</a></li><li class="tsd-kind-enum"><a href="enums/PipelineInfoData.html" class="tsd-kind-icon">Pipeline<wbr/>Info<wbr/>Data</a></li><li class="tsd-kind-enum"><a href="enums/VonageSourceType.html" class="tsd-kind-icon">Vonage<wbr/>Source<wbr/>Type</a></li><li class="tsd-kind-enum"><a href="enums/WarningType.html" class="tsd-kind-icon">Warning<wbr/>Type</a></li></ul></section><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class"><a href="classes/MediaProcessor.html" class="tsd-kind-icon">Media<wbr/>Processor</a></li><li class="tsd-kind-class"><a href="classes/MediaProcessorConnector.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorConnectorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector<wbr/>Interface</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Interface</a></li></ul></section><section class="tsd-index-section "><h3>Type Aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="modules.html#DropInfo" class="tsd-kind-icon">Drop<wbr/>Info</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ErrorData" class="tsd-kind-icon">Error<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventDataMap" class="tsd-kind-icon">Event<wbr/>Data<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventMetaData" class="tsd-kind-icon">Event<wbr/>Meta<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageMetadata" class="tsd-kind-icon">Vonage<wbr/>Metadata</a></li><li class="tsd-kind-type-alias"><a href="modules.html#WarnData" class="tsd-kind-icon">Warn<wbr/>Data</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="modules.html#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setVonageMetadata" class="tsd-kind-icon">set<wbr/>Vonage<wbr/>Metadata</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type Aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="DropInfo" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Drop<wbr/>Info<a href="#DropInfo" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Drop<wbr/>Info<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>current<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>requested<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
2
+ <p>DropInfo gives info about the frame rate of the transformer</p>
3
+ </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>current<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
4
+ <p>The actual rate of the track</p>
5
+ </div></div></li><li class="tsd-parameter"><h5>requested<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
6
+ <p>The rate predicted rate of the track</p>
7
+ </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ErrorData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Error<wbr/>Data<a href="#ErrorData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Error<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">; </span>eventMetaData<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a><span class="tsd-signature-symbol">; </span>function<span class="tsd-signature-symbol">: </span><a href="enums/ErrorFunction.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ErrorFunction</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
8
+ <p>ErrorData. MediaProcessor error data definition.</p>
9
+ </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
10
+ <p>Type of unknown but moslty will be string</p>
11
+ </div></div></li><li class="tsd-parameter"><h5>event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
12
+ <p>Metadata of the event.</p>
13
+ </div></div></li><li class="tsd-parameter"><h5>function<span class="tsd-signature-symbol">: </span><a href="enums/ErrorFunction.html" class="tsd-signature-type" data-tsd-kind="Enumeration">ErrorFunction</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
14
+ <p>The function in which the error occurred.</p>
15
+ </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="EventDataMap" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Event<wbr/>Data<wbr/>Map<a href="#EventDataMap" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Event<wbr/>Data<wbr/>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>error<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorData" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorData</a><span class="tsd-signature-symbol">; </span>pipelineInfo<span class="tsd-signature-symbol">: </span><a href="enums/PipelineInfoData.html" class="tsd-signature-type" data-tsd-kind="Enumeration">PipelineInfoData</a><span class="tsd-signature-symbol">; </span>warn<span class="tsd-signature-symbol">: </span><a href="modules.html#WarnData" class="tsd-signature-type" data-tsd-kind="Type alias">WarnData</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
16
+ <p>EventDataMap. A map type for all event options from MediaProcessor.
17
+ Each event will include only one type.</p>
18
+ </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">: </span><a href="modules.html#ErrorData" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorData</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
19
+ <p>Errors from the insertable streams pipeline.</p>
20
+ </div></div></li><li class="tsd-parameter"><h5>pipeline<wbr/>Info<span class="tsd-signature-symbol">: </span><a href="enums/PipelineInfoData.html" class="tsd-signature-type" data-tsd-kind="Enumeration">PipelineInfoData</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
21
+ <p>Info from the insertable streams pipeline life cycle.</p>
22
+ </div></div></li><li class="tsd-parameter"><h5>warn<span class="tsd-signature-symbol">: </span><a href="modules.html#WarnData" class="tsd-signature-type" data-tsd-kind="Type alias">WarnData</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
23
+ <p>Warnings from the insertable streams pipeline.</p>
24
+ </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="EventMetaData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Event<wbr/>Meta<wbr/>Data<a href="#EventMetaData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>transformerIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
25
+ <p>EventMetaData. Some metadata of the event.</p>
20
26
  </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>transformer<wbr/>Index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
21
27
  <p>The transformer index in the array of transformers.</p>
22
- </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="PipelineInfoData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Pipeline<wbr/>Info<wbr/>Data<a href="#PipelineInfoData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Pipeline<wbr/>Info<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>message<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;pipeline_ended&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_ended_with_error&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_started&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_started_with_error&quot;</span><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
23
- <p>PipelineInfolData - life cycle information of pipeline</p>
24
- </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>message<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;pipeline_ended&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_ended_with_error&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_started&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;pipeline_started_with_error&quot;</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="VonageMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Vonage<wbr/>Metadata<a href="#VonageMetadata" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Vonage<wbr/>Metadata<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>appId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>proxyUrl<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>sourceType<span class="tsd-signature-symbol">: </span><a href="modules.html#VonageSourceType" class="tsd-signature-type" data-tsd-kind="Type alias">VonageSourceType</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
28
+ </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="VonageMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Vonage<wbr/>Metadata<a href="#VonageMetadata" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Vonage<wbr/>Metadata<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>appId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>proxyUrl<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>sourceType<span class="tsd-signature-symbol">: </span><a href="enums/VonageSourceType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">VonageSourceType</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
25
29
  <p>Specifies the addional information being sent with the telemetry collected by the library.</p>
26
30
  </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>app<wbr/>Id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
27
31
  <p>Some string identifier identifying the application using the library.</p>
28
32
  </div></div></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> proxy<wbr/>Url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
29
- <p>The proxy URL to route all internet traffic generated by this library.</p>
30
- </div></div></li><li class="tsd-parameter"><h5>source<wbr/>Type<span class="tsd-signature-symbol">: </span><a href="modules.html#VonageSourceType" class="tsd-signature-type" data-tsd-kind="Type alias">VonageSourceType</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
33
+ <p>The proxy URL to route all internet traffic generated by this library. This field is optional.</p>
34
+ </div></div></li><li class="tsd-parameter"><h5>source<wbr/>Type<span class="tsd-signature-symbol">: </span><a href="enums/VonageSourceType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">VonageSourceType</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
31
35
  <p>Type of source using the library.</p>
32
- </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="VonageSourceType" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Vonage<wbr/>Source<wbr/>Type<a href="#VonageSourceType" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Vonage<wbr/>Source<wbr/>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;automation&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;test&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;vbc&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;video&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;voice&quot;</span></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="WarnData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Warn<wbr/>Data<a href="#WarnData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Warn<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>dropInfo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DropInfo</span><span class="tsd-signature-symbol">; </span>eventMetaData<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a><span class="tsd-signature-symbol">; </span>warningType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WarningType</span><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
33
- <p>WarnData the warning data type</p>
34
- <pre><code class="language-ts"><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-1">eventMetaData</span><span class="hl-0">: { </span><span class="hl-1">transformerIndex</span><span class="hl-0">: </span><span class="hl-2">0</span><span class="hl-0">},</span><br/><span class="hl-0"> </span><span class="hl-1">warningType</span><span class="hl-0">: </span><span class="hl-5">WarningType</span><span class="hl-0">.</span><span class="hl-7">FPS_DROP</span><br/><span class="hl-0"> </span><span class="hl-1">dropInfo</span><span class="hl-0">: {</span><span class="hl-1">requested</span><span class="hl-0">: </span><span class="hl-2">30</span><span class="hl-0">, </span><span class="hl-1">current</span><span class="hl-0">:</span><span class="hl-2">20</span><span class="hl-0">}</span><br/><span class="hl-0"> }</span>
35
- </code></pre>
36
- </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>drop<wbr/>Info<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DropInfo</span></h5></li><li class="tsd-parameter"><h5>event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a></h5></li><li class="tsd-parameter"><h5>warning<wbr/>Type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WarningType</span></h5></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a id="getVonageMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Vonage<wbr/>Metadata<a href="#getVonageMetadata" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">get<wbr/>Vonage<wbr/>Metadata<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="modules.html#VonageMetadata" class="tsd-signature-type" data-tsd-kind="Type alias">VonageMetadata</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="modules.html#VonageMetadata" class="tsd-signature-type" data-tsd-kind="Type alias">VonageMetadata</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="isSupported" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Supported<a href="#isSupported" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">is<wbr/>Supported<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
36
+ </div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="WarnData" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Warn<wbr/>Data<a href="#WarnData" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Warn<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>dropInfo<span class="tsd-signature-symbol">?: </span><a href="modules.html#DropInfo" class="tsd-signature-type" data-tsd-kind="Type alias">DropInfo</a><span class="tsd-signature-symbol">; </span>eventMetaData<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a><span class="tsd-signature-symbol">; </span>warningType<span class="tsd-signature-symbol">: </span><a href="enums/WarningType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">WarningType</a><span class="tsd-signature-symbol"> }</span></div><div class="tsd-comment tsd-typography"><div class="lead">
37
+ <p>WarnData - MediaProcessor warning event defintion</p>
38
+ </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> drop<wbr/>Info<span class="tsd-signature-symbol">?: </span><a href="modules.html#DropInfo" class="tsd-signature-type" data-tsd-kind="Type alias">DropInfo</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
39
+ <p> Optional - FPS drop info.</p>
40
+ </div></div></li><li class="tsd-parameter"><h5>event<wbr/>Meta<wbr/>Data<span class="tsd-signature-symbol">: </span><a href="modules.html#EventMetaData" class="tsd-signature-type" data-tsd-kind="Type alias">EventMetaData</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
41
+ <p>Meta data of the event</p>
42
+ </div></div></li><li class="tsd-parameter"><h5>warning<wbr/>Type<span class="tsd-signature-symbol">: </span><a href="enums/WarningType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">WarningType</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
43
+ <p> The waring type</p>
44
+ </div></div></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a id="isSupported" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Supported<a href="#isSupported" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">is<wbr/>Supported<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
37
45
  <p>Check if the current browser is officially supported by the library.</p>
38
46
  </div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The promise will resolve or reject depending whether the browser is supported or not.</p>
39
47
  </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="setVonageMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Vonage<wbr/>Metadata<a href="#setVonageMetadata" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">set<wbr/>Vonage<wbr/>Metadata<span class="tsd-signature-symbol">(</span>metadata<span class="tsd-signature-symbol">: </span><a href="modules.html#VonageMetadata" class="tsd-signature-type" data-tsd-kind="Type alias">VonageMetadata</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
40
- <p>Sets some metadata for telemetry.</p>
41
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-0"> </span><span class="hl-6">const</span><span class="hl-0"> </span><span class="hl-7">metadata</span><span class="hl-0">: </span><span class="hl-8">VonageMetadata</span><span class="hl-0"> = {</span><br/><span class="hl-0"> </span><span class="hl-5">appId:</span><span class="hl-0"> </span><span class="hl-3">&#39;vonage-media-processor-example&#39;</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">sourceType:</span><span class="hl-0"> </span><span class="hl-3">&#39;test&#39;</span><br/><span class="hl-0"> };</span><br/><span class="hl-0"> </span><span class="hl-4">setVonageMetadata</span><span class="hl-0">(</span><span class="hl-5">metadata</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-6">let</span><span class="hl-0"> </span><span class="hl-5">metadataGet</span><span class="hl-0">: </span><span class="hl-8">VonageMetadata</span><span class="hl-0"> = </span><span class="hl-4">getVonageMetadata</span><span class="hl-0">();</span>
42
- </code></pre>
43
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metadata: <a href="modules.html#VonageMetadata" class="tsd-signature-type" data-tsd-kind="Type alias">VonageMetadata</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
48
+ <p>Sets some metadata for telemetry.
49
+ An example can be found <a href="/docs/intro.md#statistics">here</a>.</p>
50
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metadata: <a href="modules.html#VonageMetadata" class="tsd-signature-type" data-tsd-kind="Type alias">VonageMetadata</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
44
51
  <p>Specifies the addional information being sent with the telemetry collected by the library.
45
52
  If metadata is either undefined or not set the library will not collect/send any telemetry.</p>
46
- </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class"><a href="classes/MediaProcessor.html" class="tsd-kind-icon">Media<wbr/>Processor</a></li><li class="tsd-kind-class"><a href="classes/MediaProcessorConnector.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorConnectorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector<wbr/>Interface</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Interface</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ErrorData" class="tsd-kind-icon">Error<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ErrorFunction" class="tsd-kind-icon">Error<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventDataMap" class="tsd-kind-icon">Event<wbr/>Data<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventMetaData" class="tsd-kind-icon">Event<wbr/>Meta<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#PipelineInfoData" class="tsd-kind-icon">Pipeline<wbr/>Info<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageMetadata" class="tsd-kind-icon">Vonage<wbr/>Metadata</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageSourceType" class="tsd-kind-icon">Vonage<wbr/>Source<wbr/>Type</a></li><li class="tsd-kind-type-alias"><a href="modules.html#WarnData" class="tsd-kind-icon">Warn<wbr/>Data</a></li><li class="tsd-kind-function"><a href="modules.html#getVonageMetadata" class="tsd-kind-icon">get<wbr/>Vonage<wbr/>Metadata</a></li><li class="tsd-kind-function"><a href="modules.html#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setVonageMetadata" class="tsd-kind-icon">set<wbr/>Vonage<wbr/>Metadata</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
53
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-enum"><a href="enums/ErrorFunction.html" class="tsd-kind-icon">Error<wbr/>Function</a></li><li class="tsd-kind-enum"><a href="enums/PipelineInfoData.html" class="tsd-kind-icon">Pipeline<wbr/>Info<wbr/>Data</a></li><li class="tsd-kind-enum"><a href="enums/VonageSourceType.html" class="tsd-kind-icon">Vonage<wbr/>Source<wbr/>Type</a></li><li class="tsd-kind-enum"><a href="enums/WarningType.html" class="tsd-kind-icon">Warning<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/MediaProcessor.html" class="tsd-kind-icon">Media<wbr/>Processor</a></li><li class="tsd-kind-class"><a href="classes/MediaProcessorConnector.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorConnectorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Connector<wbr/>Interface</a></li><li class="tsd-kind-interface"><a href="interfaces/MediaProcessorInterface.html" class="tsd-kind-icon">Media<wbr/>Processor<wbr/>Interface</a></li><li class="tsd-kind-type-alias"><a href="modules.html#DropInfo" class="tsd-kind-icon">Drop<wbr/>Info</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ErrorData" class="tsd-kind-icon">Error<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventDataMap" class="tsd-kind-icon">Event<wbr/>Data<wbr/>Map</a></li><li class="tsd-kind-type-alias"><a href="modules.html#EventMetaData" class="tsd-kind-icon">Event<wbr/>Meta<wbr/>Data</a></li><li class="tsd-kind-type-alias"><a href="modules.html#VonageMetadata" class="tsd-kind-icon">Vonage<wbr/>Metadata</a></li><li class="tsd-kind-type-alias"><a href="modules.html#WarnData" class="tsd-kind-icon">Warn<wbr/>Data</a></li><li class="tsd-kind-function"><a href="modules.html#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setVonageMetadata" class="tsd-kind-icon">set<wbr/>Vonage<wbr/>Metadata</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
@@ -17,7 +17,9 @@ Key.errors = {
17
17
  "transformer_none": "No transformers provided",
18
18
  "transformer_start": "Cannot start transformer",
19
19
  "transformer_transform": "Cannot transform frame",
20
- "transformer_flush": "Cannot flush transformer"
20
+ "transformer_flush": "Cannot flush transformer",
21
+ "readable_null": "Readable is null",
22
+ "writable_null": "Writable is null"
21
23
  };
22
24
  var axios$2 = { exports: {} };
23
25
  var bind$2 = function bind(fn, thisArg) {
@@ -290,7 +292,13 @@ var settle$1 = function settle(resolve, reject, response) {
290
292
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
291
293
  resolve(response);
292
294
  } else {
293
- reject(createError$1("Request failed with status code " + response.status, response.config, null, response.request, response));
295
+ reject(createError$1(
296
+ "Request failed with status code " + response.status,
297
+ response.config,
298
+ null,
299
+ response.request,
300
+ response
301
+ ));
294
302
  }
295
303
  };
296
304
  var utils$a = utils$e;
@@ -521,7 +529,12 @@ var xhr = function xhrAdapter(config) {
521
529
  if (config.timeoutErrorMessage) {
522
530
  timeoutErrorMessage = config.timeoutErrorMessage;
523
531
  }
524
- reject(createError2(timeoutErrorMessage, config, transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", request2));
532
+ reject(createError2(
533
+ timeoutErrorMessage,
534
+ config,
535
+ transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
536
+ request2
537
+ ));
525
538
  request2 = null;
526
539
  };
527
540
  if (utils$7.isStandardBrowserEnv()) {
@@ -698,21 +711,43 @@ function throwIfCancellationRequested(config) {
698
711
  var dispatchRequest$1 = function dispatchRequest(config) {
699
712
  throwIfCancellationRequested(config);
700
713
  config.headers = config.headers || {};
701
- config.data = transformData2.call(config, config.data, config.headers, config.transformRequest);
702
- config.headers = utils$4.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
703
- utils$4.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
704
- delete config.headers[method];
705
- });
714
+ config.data = transformData2.call(
715
+ config,
716
+ config.data,
717
+ config.headers,
718
+ config.transformRequest
719
+ );
720
+ config.headers = utils$4.merge(
721
+ config.headers.common || {},
722
+ config.headers[config.method] || {},
723
+ config.headers
724
+ );
725
+ utils$4.forEach(
726
+ ["delete", "get", "head", "post", "put", "patch", "common"],
727
+ function cleanHeaderConfig(method) {
728
+ delete config.headers[method];
729
+ }
730
+ );
706
731
  var adapter = config.adapter || defaults$1.adapter;
707
732
  return adapter(config).then(function onAdapterResolution(response) {
708
733
  throwIfCancellationRequested(config);
709
- response.data = transformData2.call(config, response.data, response.headers, config.transformResponse);
734
+ response.data = transformData2.call(
735
+ config,
736
+ response.data,
737
+ response.headers,
738
+ config.transformResponse
739
+ );
710
740
  return response;
711
741
  }, function onAdapterRejection(reason) {
712
742
  if (!isCancel2(reason)) {
713
743
  throwIfCancellationRequested(config);
714
744
  if (reason && reason.response) {
715
- reason.response.data = transformData2.call(config, reason.response.data, reason.response.headers, config.transformResponse);
745
+ reason.response.data = transformData2.call(
746
+ config,
747
+ reason.response.data,
748
+ reason.response.headers,
749
+ config.transformResponse
750
+ );
716
751
  }
717
752
  }
718
753
  return Promise.reject(reason);
@@ -814,7 +849,12 @@ validators$1.transitional = function transitional(validator2, version2, message)
814
849
  }
815
850
  if (version2 && !deprecatedWarnings[opt]) {
816
851
  deprecatedWarnings[opt] = true;
817
- console.warn(formatMessage(opt, " has been deprecated since v" + version2 + " and will be removed in the near future"));
852
+ console.warn(
853
+ formatMessage(
854
+ opt,
855
+ " has been deprecated since v" + version2 + " and will be removed in the near future"
856
+ )
857
+ );
818
858
  }
819
859
  return validator2 ? validator2(value, opt, opts) : true;
820
860
  };
@@ -1209,7 +1249,15 @@ class EmptyOptional extends Optional {
1209
1249
  return null;
1210
1250
  }
1211
1251
  }
1212
- const version = "1.2.5";
1252
+ const version = "2.0.0";
1253
+ var VonageSourceType = /* @__PURE__ */ ((VonageSourceType2) => {
1254
+ VonageSourceType2["automation"] = "automation";
1255
+ VonageSourceType2["test"] = "test";
1256
+ VonageSourceType2["vbc"] = "vbc";
1257
+ VonageSourceType2["video"] = "video";
1258
+ VonageSourceType2["voice"] = "voice";
1259
+ return VonageSourceType2;
1260
+ })(VonageSourceType || {});
1213
1261
  function setVonageMetadata(metadata) {
1214
1262
  globalThis._vonageMediaProcessorMetadata = metadata;
1215
1263
  }
@@ -1371,9 +1419,9 @@ function v4(options, buf, offset) {
1371
1419
  }
1372
1420
  return stringify(rnds);
1373
1421
  }
1374
- const anyMap = new WeakMap();
1375
- const eventsMap = new WeakMap();
1376
- const producersMap = new WeakMap();
1422
+ const anyMap = /* @__PURE__ */ new WeakMap();
1423
+ const eventsMap = /* @__PURE__ */ new WeakMap();
1424
+ const producersMap = /* @__PURE__ */ new WeakMap();
1377
1425
  const anyProducer = Symbol("anyProducer");
1378
1426
  const resolvedPromise = Promise.resolve();
1379
1427
  const listenerAdded = Symbol("listenerAdded");
@@ -1392,7 +1440,7 @@ function assertListener(listener) {
1392
1440
  function getListeners(instance, eventName) {
1393
1441
  const events = eventsMap.get(instance);
1394
1442
  if (!events.has(eventName)) {
1395
- events.set(eventName, new Set());
1443
+ events.set(eventName, /* @__PURE__ */ new Set());
1396
1444
  }
1397
1445
  return events.get(eventName);
1398
1446
  }
@@ -1400,7 +1448,7 @@ function getEventProducers(instance, eventName) {
1400
1448
  const key = typeof eventName === "string" || typeof eventName === "symbol" ? eventName : anyProducer;
1401
1449
  const producers = producersMap.get(instance);
1402
1450
  if (!producers.has(key)) {
1403
- producers.set(key, new Set());
1451
+ producers.set(key, /* @__PURE__ */ new Set());
1404
1452
  }
1405
1453
  return producers.get(key);
1406
1454
  }
@@ -1534,9 +1582,9 @@ class Emittery {
1534
1582
  isGlobalDebugEnabled = newValue;
1535
1583
  }
1536
1584
  constructor(options = {}) {
1537
- anyMap.set(this, new Set());
1538
- eventsMap.set(this, new Map());
1539
- producersMap.set(this, new Map());
1585
+ anyMap.set(this, /* @__PURE__ */ new Set());
1586
+ eventsMap.set(this, /* @__PURE__ */ new Map());
1587
+ producersMap.set(this, /* @__PURE__ */ new Map());
1540
1588
  this.debug = options.debug || {};
1541
1589
  if (this.debug.enabled === void 0) {
1542
1590
  this.debug.enabled = false;
@@ -1747,10 +1795,25 @@ function toErrorWithMessage(maybeError) {
1747
1795
  function getErrorMessage(error) {
1748
1796
  return toErrorWithMessage(error).message;
1749
1797
  }
1750
- var WarningType;
1751
- (function(WarningType2) {
1798
+ var WarningType = /* @__PURE__ */ ((WarningType2) => {
1752
1799
  WarningType2["FPS_DROP"] = "fps_drop";
1753
- })(WarningType || (WarningType = {}));
1800
+ return WarningType2;
1801
+ })(WarningType || {});
1802
+ var ErrorFunction = /* @__PURE__ */ ((ErrorFunction2) => {
1803
+ ErrorFunction2["start"] = "start";
1804
+ ErrorFunction2["transform"] = "transform";
1805
+ ErrorFunction2["flush"] = "flush";
1806
+ return ErrorFunction2;
1807
+ })(ErrorFunction || {});
1808
+ var PipelineInfoData = /* @__PURE__ */ ((PipelineInfoData2) => {
1809
+ PipelineInfoData2["pipeline_ended"] = "pipeline_ended";
1810
+ PipelineInfoData2["pipeline_ended_with_error"] = "pipeline_ended_with_error";
1811
+ PipelineInfoData2["pipeline_started"] = "pipeline_started";
1812
+ PipelineInfoData2["pipeline_started_with_error"] = "pipeline_started_with_error";
1813
+ PipelineInfoData2["pipeline_restarted"] = "pipeline_restarted";
1814
+ PipelineInfoData2["pipeline_restarted_with_error"] = "pipeline_restarted_with_error";
1815
+ return PipelineInfoData2;
1816
+ })(PipelineInfoData || {});
1754
1817
  const TELEMETRY_MEDIA_TRANSFORMER_QOS_REPORT_INTERVAL = 500;
1755
1818
  const RATE_DROP_TO_PRECENT = 0.8;
1756
1819
  class InternalTransformer extends emittery {
@@ -1779,6 +1842,7 @@ class InternalTransformer extends emittery {
1779
1842
  this.trackExpectedRate_ = trackExpectedRate;
1780
1843
  }
1781
1844
  async start(controller) {
1845
+ this.controller_ = controller;
1782
1846
  if (this.transformer_ && typeof this.transformer_.start === "function") {
1783
1847
  try {
1784
1848
  await this.transformer_.start(controller);
@@ -1815,6 +1879,7 @@ class InternalTransformer extends emittery {
1815
1879
  this.emit("error", msg);
1816
1880
  }
1817
1881
  } else {
1882
+ console.warn("[Pipeline] flush from transform");
1818
1883
  data2.close();
1819
1884
  this.flush(controller);
1820
1885
  controller.terminate();
@@ -1839,6 +1904,10 @@ class InternalTransformer extends emittery {
1839
1904
  }
1840
1905
  stop() {
1841
1906
  console.log("[Pipeline] Stop stream.");
1907
+ if (this.controller_) {
1908
+ this.flush(this.controller_);
1909
+ this.controller_.terminate();
1910
+ }
1842
1911
  this.shouldStop_ = true;
1843
1912
  }
1844
1913
  mediaTransformerQosReport() {
@@ -1846,7 +1915,7 @@ class InternalTransformer extends emittery {
1846
1915
  let fps = this.framesFromSource_ / timeElapsed_s;
1847
1916
  let transformedFps = this.framesTransformed_ / timeElapsed_s;
1848
1917
  if (this.trackExpectedRate_ != -1 && this.trackExpectedRate_ * RATE_DROP_TO_PRECENT > fps) {
1849
- const msg = { eventMetaData: { transformerIndex: this.index_ }, warningType: WarningType.FPS_DROP, dropInfo: { requested: this.trackExpectedRate_, current: fps } };
1918
+ const msg = { eventMetaData: { transformerIndex: this.index_ }, warningType: "fps_drop", dropInfo: { requested: this.trackExpectedRate_, current: fps } };
1850
1919
  this.emit("warn", msg);
1851
1920
  }
1852
1921
  const qos = new ReportBuilder().action("MediaTransformer").fps(fps).transformedFps(transformedFps).framesTransformed(this.framesTransformed_).guid(this.uuid_).transformerType(this.transformerType_).videoHeight(this.videoHeight_).videoWidth(this.videoWidth_).variation("QoS").build();
@@ -1892,7 +1961,7 @@ class Pipeline extends emittery {
1892
1961
  console.log("[Pipeline] Setup.");
1893
1962
  await writeable.abort();
1894
1963
  await orgReader.cancel();
1895
- this.emit("pipelineInfo", { message: "pipeline_ended" });
1964
+ this.emit("pipelineInfo", "pipeline_ended");
1896
1965
  }).catch(async (e) => {
1897
1966
  readable.cancel().then(() => {
1898
1967
  console.log("[Pipeline] Shutting down streams after abort.");
@@ -1901,14 +1970,14 @@ class Pipeline extends emittery {
1901
1970
  });
1902
1971
  await writeable.abort(e);
1903
1972
  await orgReader.cancel(e);
1904
- this.emit("pipelineInfo", { message: "pipeline_ended_with_error" });
1973
+ this.emit("pipelineInfo", "pipeline_ended_with_error");
1905
1974
  });
1906
1975
  } catch (e) {
1907
- this.emit("pipelineInfo", { message: "pipeline_started_with_error" });
1976
+ this.emit("pipelineInfo", "pipeline_started_with_error");
1908
1977
  this.destroy();
1909
1978
  return;
1910
1979
  }
1911
- this.emit("pipelineInfo", { message: "pipeline_started" });
1980
+ this.emit("pipelineInfo", "pipeline_started");
1912
1981
  console.log("[Pipeline] Pipeline started.");
1913
1982
  }
1914
1983
  async destroy() {
@@ -1943,8 +2012,24 @@ class MediaProcessor extends emittery {
1943
2012
  const report = new ReportBuilder().action("MediaProcessor").guid(this.uuid_).message(Key.errors["transformer_none"]).variation("Error").build();
1944
2013
  Reporter.report(report);
1945
2014
  reject("[MediaProcessor] Need to set transformers.");
2015
+ return;
2016
+ }
2017
+ if (!this.readable_) {
2018
+ const report = new ReportBuilder().action("MediaProcessor").guid(this.uuid_).message(Key.errors["readable_null"]).variation("Error").build();
2019
+ Reporter.report(report);
2020
+ reject("[MediaProcessor] Readable is null.");
2021
+ return;
2022
+ }
2023
+ if (!this.writable_) {
2024
+ const report = new ReportBuilder().action("MediaProcessor").guid(this.uuid_).message(Key.errors["writable_null"]).variation("Error").build();
2025
+ Reporter.report(report);
2026
+ reject("[MediaProcessor] Writable is null.");
2027
+ return;
1946
2028
  }
2029
+ let isPipelineReset = false;
1947
2030
  if (this.pipeline_) {
2031
+ isPipelineReset = true;
2032
+ this.pipeline_.clearListeners();
1948
2033
  this.pipeline_.destroy();
1949
2034
  }
1950
2035
  this.pipeline_ = new Pipeline(this.transformers_);
@@ -1955,6 +2040,13 @@ class MediaProcessor extends emittery {
1955
2040
  this.emit("error", eventData);
1956
2041
  });
1957
2042
  this.pipeline_.on("pipelineInfo", (eventData) => {
2043
+ if (isPipelineReset) {
2044
+ if (eventData === "pipeline_started") {
2045
+ eventData = PipelineInfoData.pipeline_restarted;
2046
+ } else if (eventData === "pipeline_started_with_error") {
2047
+ eventData = PipelineInfoData.pipeline_restarted_with_error;
2048
+ }
2049
+ }
1958
2050
  this.emit("pipelineInfo", eventData);
1959
2051
  });
1960
2052
  if (this.trackExpectedRate_ != -1) {
@@ -2057,4 +2149,4 @@ class MediaProcessorConnector {
2057
2149
  });
2058
2150
  }
2059
2151
  }
2060
- export { MediaProcessor, MediaProcessorConnector, getVonageMetadata, isSupported, setVonageMetadata };
2152
+ export { ErrorFunction, MediaProcessor, MediaProcessorConnector, PipelineInfoData, VonageSourceType, WarningType, getVonageMetadata, isSupported, setVonageMetadata };