@vonage/media-processor 1.0.0 → 1.1.2
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.
- package/dist/docs/assets/highlight.css +30 -16
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/MediaProcessor.html +95 -5
- package/dist/docs/classes/MediaProcessorConnector.html +1 -1
- package/dist/docs/index.html +1 -1
- package/dist/docs/modules.html +22 -5
- package/dist/media-processor.es.js +451 -13
- package/dist/media-processor.umd.js +3 -2
- package/dist/types/main.d.ts +1 -0
- package/dist/types/src/core/MediaProcessor.d.ts +21 -2
- package/dist/types/src/core/pipeline.d.ts +81 -3
- package/dist/types/src/telemetry/Reporter.d.ts +4 -1
- package/dist/types/src/utils/Tools.d.ts +1 -0
- package/package.json +12 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MediaProcessorConnector | @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"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@vonage/media-processor</a></li><li><a href="MediaProcessorConnector.html">MediaProcessorConnector</a></li></ul><h1>Class MediaProcessorConnector</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
2
|
<p>Helper class implementing the media processor connector interface.</p>
|
|
3
|
-
</div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-0"> </span><span class="hl-
|
|
3
|
+
</div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-0"> </span><span class="hl-6">let</span><span class="hl-0"> </span><span class="hl-5">mediaProcessor</span><span class="hl-0">: </span><span class="hl-8">MediaProcessor</span><span class="hl-0"> = </span><span class="hl-6">new</span><span class="hl-0"> </span><span class="hl-4">MediaProcessor</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">transformers</span><span class="hl-0">: </span><span class="hl-8">Array</span><span class="hl-0"><</span><span class="hl-8">Transformer</span><span class="hl-0">> = [];</span><br/><span class="hl-0"> </span><span class="hl-5">transformers</span><span class="hl-0">.</span><span class="hl-4">push</span><span class="hl-0">(</span><span class="hl-6">new</span><span class="hl-0"> </span><span class="hl-4">CanvasTransform</span><span class="hl-0">());</span><br/><span class="hl-0"> </span><span class="hl-5">mediaProcessor</span><span class="hl-0">.</span><span class="hl-4">setTransformers</span><span class="hl-0">(</span><span class="hl-5">transformers</span><span class="hl-0">);</span><br/><br/><span class="hl-0"> </span><span class="hl-6">let</span><span class="hl-0"> </span><span class="hl-5">connector</span><span class="hl-0">: </span><span class="hl-8">MediaProcessorConnector</span><span class="hl-0"> = </span><span class="hl-6">new</span><span class="hl-0"> </span><span class="hl-4">MediaProcessorConnector</span><span class="hl-0">(</span><span class="hl-5">mediaProcessor</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-5">source_</span><span class="hl-0">.</span><span class="hl-4">setMediaProcessorConnector</span><span class="hl-0">(</span><span class="hl-5">connector</span><span class="hl-0">);</span><br/><br/><span class="hl-0"> </span><span class="hl-10">// ...</span><br/><br/><span class="hl-0"> </span><span class="hl-4">setMediaProcessorConnector</span><span class="hl-0">(</span><span class="hl-5">mediaProcessorConnector</span><span class="hl-0">: </span><span class="hl-5">MediaProcessorConnectorInterface</span><span class="hl-0">): </span><span class="hl-8">Promise</span><span class="hl-0"><</span><span class="hl-6">void</span><span class="hl-0">> {</span><br/><span class="hl-0"> return new </span><span class="hl-4">Promise</span><span class="hl-0"><</span><span class="hl-8">void</span><span class="hl-0">>(</span><span class="hl-5">async</span><span class="hl-0"> (</span><span class="hl-5">resolve</span><span class="hl-0">, </span><span class="hl-5">reject</span><span class="hl-0">) </span><span class="hl-6">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-8">this</span><span class="hl-0">.</span><span class="hl-5">mediaProcessorConnector_</span><span class="hl-0"> = </span><span class="hl-5">mediaProcessorConnector</span><span class="hl-0">;</span><br/><span class="hl-0"> </span><span class="hl-4">if</span><span class="hl-0"> (!this.stream_)</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-8">console</span><span class="hl-0">.</span><span class="hl-8">log</span><span class="hl-0">(</span><span class="hl-3">'[CameraSource] Requesting camera.'</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-4">reject</span><span class="hl-0">(</span><span class="hl-3">"no stream"</span><span class="hl-0">)</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> </span><span class="hl-8">this</span><span class="hl-0">.</span><span class="hl-8">mediaProcessorConnector_</span><span class="hl-0">.</span><span class="hl-8">setTrack</span><span class="hl-0">(</span><span class="hl-8">this</span><span class="hl-0">.</span><span class="hl-8">videoTrack_</span><span class="hl-0">).</span><span class="hl-8">then</span><span class="hl-0">(</span><span class="hl-5">newTrack</span><span class="hl-0"> => {</span><br/><span class="hl-0"> let </span><span class="hl-5">processedStream</span><span class="hl-0"> = </span><span class="hl-6">new</span><span class="hl-0"> </span><span class="hl-4">MediaStream</span><span class="hl-0">();</span><br/><span class="hl-0"> processedStream.addTrack(newTrack);</span><br/><span class="hl-0"> this.sink_.setMediaStream(processedStream);</span><br/><span class="hl-0"> </span><span class="hl-4">resolve</span><span class="hl-0">();</span><br/><span class="hl-0"> })</span><br/><span class="hl-0"> .</span><span class="hl-8">catch</span><span class="hl-0">(</span><span class="hl-5">e</span><span class="hl-0"> => {</span><br/><span class="hl-0"> </span><span class="hl-4">reject</span><span class="hl-0">(</span><span class="hl-5">e</span><span class="hl-0">)</span><br/><span class="hl-0"> })</span><br/><span class="hl-0"> });</span><br/><span class="hl-0"> }</span><br/><br/><span class="hl-0"> </span><span class="hl-10">// ...</span><br/><br/><span class="hl-0"> </span><span class="hl-5">async</span><span class="hl-0"> </span><span class="hl-4">stopMediaProcessorConnector</span><span class="hl-0">() {</span><br/><span class="hl-0"> </span><span class="hl-9">if</span><span class="hl-0">(</span><span class="hl-6">this</span><span class="hl-0">.</span><span class="hl-5">mediaProcessorConnector_</span><span class="hl-0">){</span><br/><span class="hl-0"> </span><span class="hl-6">this</span><span class="hl-0">.</span><span class="hl-5">mediaProcessorConnector_</span><span class="hl-0">.</span><span class="hl-4">destroy</span><span class="hl-0">().</span><span class="hl-4">then</span><span class="hl-0">(() </span><span class="hl-6">=></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">processedStream</span><span class="hl-0"> = </span><span class="hl-6">new</span><span class="hl-0"> </span><span class="hl-4">MediaStream</span><span class="hl-0">();</span><br/><span class="hl-0"> </span><span class="hl-5">processedStream</span><span class="hl-0">.</span><span class="hl-4">addTrack</span><span class="hl-0">(</span><span class="hl-6">this</span><span class="hl-0">.</span><span class="hl-5">videoTrack_</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-6">this</span><span class="hl-0">.</span><span class="hl-5">sink_</span><span class="hl-0">.</span><span class="hl-4">setMediaStream</span><span class="hl-0">(</span><span class="hl-5">processedStream</span><span class="hl-0">);</span><br/><span class="hl-0"> })</span><br/><span class="hl-0"> .</span><span class="hl-4">catch</span><span class="hl-0">(</span><span class="hl-5">e</span><span class="hl-0"> </span><span class="hl-6">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-5">console</span><span class="hl-0">.</span><span class="hl-4">error</span><span class="hl-0">(</span><span class="hl-5">e</span><span class="hl-0">);</span><br/><span class="hl-0"> });</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> }</span>
|
|
4
4
|
</code></pre>
|
|
5
5
|
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">MediaProcessorConnector</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><a href="../interfaces/MediaProcessorConnectorInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">MediaProcessorConnectorInterface</a></li></ul></section><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>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="MediaProcessorConnector.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="MediaProcessorConnector.html#destroy" class="tsd-kind-icon">destroy</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MediaProcessorConnector.html#setTrack" class="tsd-kind-icon">set<wbr/>Track</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" 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-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Media<wbr/>Processor<wbr/>Connector<span class="tsd-signature-symbol">(</span>vonageMediaProcessor<span class="tsd-signature-symbol">: </span><a href="../interfaces/MediaProcessorInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">MediaProcessorInterface</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MediaProcessorConnector.html" class="tsd-signature-type" data-tsd-kind="Class">MediaProcessorConnector</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>vonageMediaProcessor: <a href="../interfaces/MediaProcessorInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">MediaProcessorInterface</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="MediaProcessorConnector.html" class="tsd-signature-type" data-tsd-kind="Class">MediaProcessorConnector</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="destroy" class="tsd-anchor"></a><h3 class="tsd-anchor-link">destroy<a href="#destroy" 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-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">destroy<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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of <a href="../interfaces/MediaProcessorConnectorInterface.html">MediaProcessorConnectorInterface</a>.<a href="../interfaces/MediaProcessorConnectorInterface.html#destroy">destroy</a></p></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
6
|
<p>Stops the media processing being performed.</p>
|
package/dist/docs/index.html
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
<h2>Reference documentation</h2>
|
|
13
13
|
</a>
|
|
14
14
|
<p>Check out <a href="https://vonage.github.io/media-processor">https://vonage.github.io/media-processor</a>.</p>
|
|
15
|
-
</div></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#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-function"><a href="modules.html#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setMetadata" class="tsd-kind-icon">set<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>
|
|
15
|
+
</div></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#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#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setMetadata" class="tsd-kind-icon">set<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>
|
package/dist/docs/modules.html
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
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#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></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#setMetadata" class="tsd-kind-icon">set<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="
|
|
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#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#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setMetadata" class="tsd-kind-icon">set<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">'start'</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">"start"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"transform"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"flush"</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>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></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>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">
|
|
10
|
+
<p>EventMetaData the meta data of the event.</p>
|
|
11
|
+
</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">
|
|
12
|
+
<p>The transformer index in the array of transformers.</p>
|
|
13
|
+
</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>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">
|
|
2
14
|
<p>Specifies the addional information being sent with the telemetry collected by the library.</p>
|
|
3
15
|
</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">
|
|
4
16
|
<p>Some string identifier identifying the application using the library.</p>
|
|
5
17
|
</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">
|
|
6
18
|
<p>Type of source using the library.</p>
|
|
7
|
-
</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">"automation"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"test"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"vbc"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"video"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"voice"</span></div></section
|
|
19
|
+
</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">"automation"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"test"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"vbc"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"video"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"voice"</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">
|
|
20
|
+
<p>WarnData the warning data type</p>
|
|
21
|
+
<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>
|
|
22
|
+
</code></pre>
|
|
23
|
+
</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="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"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
24
|
<p>Check if the current browser is officially supported by the library.</p>
|
|
9
25
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><div><p>The promise will resolve or reject depending whether the browser is supported or not.</p>
|
|
10
26
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="setMetadata" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Metadata<a href="#setMetadata" 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/>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">
|
|
11
27
|
<p>Sets some metadata for telemetry.</p>
|
|
12
|
-
</div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-ts"><span class="hl-0"> </span><span class="hl-
|
|
28
|
+
</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">'vonage-media-processor-example'</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">'test'</span><br/><span class="hl-0"> };</span><br/><span class="hl-0"> </span><span class="hl-4">setMetadata</span><span class="hl-0">(</span><span class="hl-5">metadata</span><span class="hl-0">);</span>
|
|
13
29
|
</code></pre>
|
|
14
30
|
</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">
|
|
15
|
-
<p>Specifies the addional information being sent with the telemetry collected by the library
|
|
16
|
-
|
|
31
|
+
<p>Specifies the addional information being sent with the telemetry collected by the library.
|
|
32
|
+
If metadata is either undefined or not set the library will not collect/send any telemetry.</p>
|
|
33
|
+
</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#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#isSupported" class="tsd-kind-icon">is<wbr/>Supported</a></li><li class="tsd-kind-function"><a href="modules.html#setMetadata" class="tsd-kind-icon">set<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>
|