@jp-web/ts-sdk
Version:
视频客服,视频会议Web端及微信小程序端SDK
1,264 lines • 84.5 kB
HTML
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WeChatLocalStream | webrtc-guest-sdk</title>
<meta name="description" content="Documentation for webrtc-guest-sdk">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</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">webrtc-guest-sdk</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>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</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="../index.html">Globals</a>
</li>
<li>
<a href="../modules/_we_chat_wechatlocalstream_.html">"we-chat/WeChatLocalStream"</a>
</li>
<li>
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html">WeChatLocalStream</a>
</li>
</ul>
<h1>Class WeChatLocalStream</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">
<p>该类表示微信小程序中的本地媒体流</p>
</div>
<p>由于微信小程序的特殊性, 无法通过DOM操作设置<code><live-pusher></code>的属性,
因此需要使用<code><local-stream></code>组件来代替<code><live-pusher></code>,
同理, 使用<code><remote-stream></code>代替<code><live-player></code></p>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<a href="_eventtarget_.eventtarget.html" class="tsd-signature-type">EventTarget</a>
<ul class="tsd-hierarchy">
<li>
<span class="target">WeChatLocalStream</span>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel">
<h3>Implements</h3>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/_interface_stream_stream_.stream.html" class="tsd-signature-type">Stream</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 tsd-is-external">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#_pagetarget" class="tsd-kind-icon">_page<wbr>Target</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#component" class="tsd-kind-icon">component</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#listenermap" class="tsd-kind-icon">listener<wbr>Map</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#options" class="tsd-kind-icon">options</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#userid" class="tsd-kind-icon">user<wbr>Id</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#reporter" class="tsd-kind-icon">reporter</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlistener" class="tsd-kind-icon">add<wbr>Event<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlisteners" class="tsd-kind-icon">add<wbr>Event<wbr>Listeners</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#bindcomponent" class="tsd-kind-icon">bind<wbr>Component</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#clearlistener" class="tsd-kind-icon">clear<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disableaudio" class="tsd-kind-icon">disable<wbr>Audio</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disablepreview" class="tsd-kind-icon">disable<wbr>Preview</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disablevideo" class="tsd-kind-icon">disable<wbr>Video</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#dispatchevent" class="tsd-kind-icon">dispatch<wbr>Event</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#dispatcheventlite" class="tsd-kind-icon">dispatch<wbr>Event<wbr>Lite</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enableaudio" class="tsd-kind-icon">enable<wbr>Audio</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enablepreview" class="tsd-kind-icon">enable<wbr>Preview</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enablevideo" class="tsd-kind-icon">enable<wbr>Video</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmcomplete" class="tsd-kind-icon">onbgmcomplete</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmprocess" class="tsd-kind-icon">onbgmprocess</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmstart" class="tsd-kind-icon">onbgmstart</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onerror" class="tsd-kind-icon">onerror</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onnetstatechange" class="tsd-kind-icon">onnetstatechange</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onstatechange" class="tsd-kind-icon">onstatechange</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#pause" class="tsd-kind-icon">pause</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#removeeventlistener" class="tsd-kind-icon">remove<wbr>Event<wbr>Listener</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#reset" class="tsd-kind-icon">reset</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#setaudiooutput" class="tsd-kind-icon">set<wbr>Audio<wbr>Output</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#snapshot" class="tsd-kind-icon">snapshot</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#start" class="tsd-kind-icon">start</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#stop" class="tsd-kind-icon">stop</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#switchcamera" class="tsd-kind-icon">switch<wbr>Camera</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external">
<h3>Object literals</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-object-literal tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#default_event_listener_options" class="tsd-kind-icon">DEFAULT_<wbr>EVENT_<wbr>LISTENER_<wbr>OPTIONS</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#default_stream_options" class="tsd-kind-icon">DEFAULT_<wbr>STREAM_<wbr>OPTIONS</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external">
<li class="tsd-signature tsd-kind-icon">new <wbr>WeChat<wbr>Local<wbr>Stream<span class="tsd-signature-symbol">(</span>pageTarget<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, userId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamoptions.html" class="tsd-signature-type">WeChatLocalStreamOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_we_chat_wechatlocalstream_.wechatlocalstream.html" class="tsd-signature-type">WeChatLocalStream</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Overrides <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#constructor">constructor</a></p>
</aside>
<div class="tsd-comment tsd-typography">
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>pageTarget: <span class="tsd-signature-type">any</span></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>微信小程序页面对应的 <code>this</code></p>
</div>
</div>
</li>
<li>
<h5>userId: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>用户id</p>
</div>
</div>
</li>
<li>
<h5>options: <a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamoptions.html" class="tsd-signature-type">WeChatLocalStreamOptions</a></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p><code><local-stream></code>组件配置参数</p>
</div>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_we_chat_wechatlocalstream_.wechatlocalstream.html" class="tsd-signature-type">WeChatLocalStream</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="_pagetarget" class="tsd-anchor"></a>
<h3>_page<wbr>Target</h3>
<div class="tsd-signature tsd-kind-icon">_page<wbr>Target<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="component" class="tsd-anchor"></a>
<h3>component</h3>
<div class="tsd-signature tsd-kind-icon">component<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamcontext.html" class="tsd-signature-type">WeChatLocalStreamContext</a></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="listenermap" class="tsd-anchor"></a>
<h3>listener<wbr>Map</h3>
<div class="tsd-signature tsd-kind-icon">listener<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#listenermap">listenerMap</a></p>
</aside>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol"><</span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a><span class="tsd-signature-symbol">></span></h5>
</li>
</ul>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="options" class="tsd-anchor"></a>
<h3>options</h3>
<div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamoptions.html" class="tsd-signature-type">WeChatLocalStreamOptions</a></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="userid" class="tsd-anchor"></a>
<h3>user<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">user<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external">
<a name="reporter" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> reporter</h3>
<div class="tsd-signature tsd-kind-icon">reporter<span class="tsd-signature-symbol">:</span> <a href="_reporter_reporter_.reporter.html" class="tsd-signature-type">Reporter</a><span class="tsd-signature-symbol"> = new Reporter('WeChatLocalStream')</span></div>
<aside class="tsd-sources">
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="addeventlistener" class="tsd-anchor"></a>
<h3>add<wbr>Event<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">add<wbr>Event<wbr>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a>, func<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><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">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#addeventlistener">addEventListener</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>添加事件监听器</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a></h5>
<div class="tsd-comment tsd-typography">
<p>要监听的事件类型</p>
</div>
</li>
<li>
<h5>func: <a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a></h5>
<div class="tsd-comment tsd-typography">
<p>事件监听回调</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h4>
<p>若添加成功则返回一个函数, 用于移除事件监听</p>
<ul class="tsd-parameters">
<li class="tsd-parameter-signature">
<ul class="tsd-signatures tsd-kind-type-literal">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><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">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="addeventlisteners" class="tsd-anchor"></a>
<h3>add<wbr>Event<wbr>Listeners</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">add<wbr>Event<wbr>Listeners<span class="tsd-signature-symbol">(</span>types<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol"><</span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a><span class="tsd-signature-symbol">></span>, func<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">(Anonymous function)</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#addeventlisteners">addEventListeners</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>对多个事件添加同一个事件监听器</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>types: <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol"><</span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a><span class="tsd-signature-symbol">></span></h5>
<div class="tsd-comment tsd-typography">
<p>要监听的事件类型</p>
</div>
</li>
<li>
<h5>func: <a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a></h5>
<div class="tsd-comment tsd-typography">
<p>事件监听回调</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a></h5>
<div class="tsd-comment tsd-typography">
<p>设置监听器参数</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">(Anonymous function)</span></h4>
<p>若添加成功则返回一个函数, 用于移除事件监听</p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="bindcomponent" class="tsd-anchor"></a>
<h3>bind<wbr>Component</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">bind<wbr>Component<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, pageTarget<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>id: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> pageTarget: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="clearlistener" class="tsd-anchor"></a>
<h3>clear<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">clear<wbr>Listener<span class="tsd-signature-symbol">(</span><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">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#clearlistener">clearListener</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>清空所有绑定的事件</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="disableaudio" class="tsd-anchor"></a>
<h3>disable<wbr>Audio</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">disable<wbr>Audio<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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#disableaudio">disableAudio</a></p>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="disablepreview" class="tsd-anchor"></a>
<h3>disable<wbr>Preview</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">disable<wbr>Preview<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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>关闭摄像头预览</p>
</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">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="disablevideo" class="tsd-anchor"></a>
<h3>disable<wbr>Video</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">disable<wbr>Video<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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#disablevideo">disableVideo</a></p>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="dispatchevent" class="tsd-anchor"></a>
<h3>dispatch<wbr>Event</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">dispatch<wbr>Event<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="_eventtarget_.event.html" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#dispatchevent">dispatchEvent</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>分发事件</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>event: <a href="_eventtarget_.event.html" class="tsd-signature-type">Event</a></h5>
<div class="tsd-comment tsd-typography">
<p>分发的事件对象</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
<p>事件是否发送成功</p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="dispatcheventlite" class="tsd-anchor"></a>
<h3>dispatch<wbr>Event<wbr>Lite</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">dispatch<wbr>Event<wbr>Lite<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a>, message<span class="tsd-signature-symbol">?: </span><a href="../modules/_eventtarget_.html#eventtargetdata" class="tsd-signature-type">EventTargetData</a>, error<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><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">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#dispatcheventlite">dispatchEventLite</a></p>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> message: <a href="../modules/_eventtarget_.html#eventtargetdata" class="tsd-signature-type">EventTargetData</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> error: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="enableaudio" class="tsd-anchor"></a>
<h3>enable<wbr>Audio</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">enable<wbr>Audio<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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#enableaudio">enableAudio</a></p>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="enablepreview" class="tsd-anchor"></a>
<h3>enable<wbr>Preview</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">enable<wbr>Preview<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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>开启摄像头预览</p>
</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">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="enablevideo" class="tsd-anchor"></a>
<h3>enable<wbr>Video</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">enable<wbr>Video<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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#enablevideo">enableVideo</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>开启关闭视频</p>
</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">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="haslistener" class="tsd-anchor"></a>
<h3>has<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">has<wbr>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#haslistener">hasListener</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>指定类型的事件是否被监听</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onbgmcomplete" class="tsd-anchor"></a>
<h3>onbgmcomplete</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onbgmcomplete<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onbgmprocess" class="tsd-anchor"></a>
<h3>onbgmprocess</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onbgmprocess<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onbgmstart" class="tsd-anchor"></a>
<h3>onbgmstart</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onbgmstart<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onerror" class="tsd-anchor"></a>
<h3>onerror</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onerror<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onnetstatechange" class="tsd-anchor"></a>
<h3>onnetstatechange</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onnetstatechange<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="onstatechange" class="tsd-anchor"></a>
<h3>onstatechange</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">onstatechange<span class="tsd-signature-symbol">(</span>ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><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">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ev: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="pause" class="tsd-anchor"></a>
<h3>pause</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">pause<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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a name="removeeventlistener" class="tsd-anchor"></a>
<h3>remove<wbr>Event<wbr>Listener</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<li class="tsd-signature tsd-kind-icon">remove<wbr>Event<wbr>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a>, func<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#removeeventlistener">removeEventListener</a></p>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>移除事件监听器, 要提供与调用<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlistener">addEventListener</a>或<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlisteners">addEventListeners</a>时相同的参数</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>type: <a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a></h5>
<div class="tsd-comment tsd-typography">
<p>要移除的事件监听器类型</p>
</div>
</li>
<li>
<h5>func: <a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a></h5>
<div class="tsd-comment tsd-typography">
<p>要移除的事件监听器</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
<p>返回true表示有该fun监听器并且移除成功</p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="reset" class="tsd-anchor"></a>
<h3>reset</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamoptions.html" class="tsd-signature-type">WeChatLocalStreamOptions</a><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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>重置配置</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> options: <a href="../interfaces/_we_chat_wechatdef_.wechatlocalstreamoptions.html" class="tsd-signature-type">WeChatLocalStreamOptions</a><span class="tsd-signature-symbol"> = this.options</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="setaudiooutput" class="tsd-anchor"></a>
<h3>set<wbr>Audio<wbr>Output</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">set<wbr>Audio<wbr>Output<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#setaudiooutput">setAudioOutput</a></p>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="snapshot" class="tsd-anchor"></a>
<h3>snapshot</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">snapshot<span class="tsd-signature-symbol">(</span>quality<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"raw"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"compressed"</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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>quality: <span class="tsd-signature-type">"raw"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"compressed"</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="start" class="tsd-anchor"></a>
<h3>start</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">start<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, pageTarget<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>id: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> pageTarget: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="stop" class="tsd-anchor"></a>
<h3>stop</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">stop<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">any</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/_interface_stream_stream_.stream.html">Stream</a>.<a href="../interfaces/_interface_stream_stream_.stream.html#stop">stop</a></p>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="switchcamera" class="tsd-anchor"></a>
<h3>switch<wbr>Camera</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">switch<wbr>Camera<span class="tsd-signature-symbol">(</span>camera<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"front"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"back"</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">any</span><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>切换摄像头</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>camera: <span class="tsd-signature-type">"front"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"back"</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Object literals</h2>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external">
<a name="default_event_listener_options" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>EVENT_<wbr>LISTENER_<wbr>OPTIONS</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>EVENT_<wbr>LISTENER_<wbr>OPTIONS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#default_event_listener_options">DEFAULT_EVENT_LISTENER_OPTIONS</a></p>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_event_listener_options.once" class="tsd-anchor"></a>
<h3>once</h3>
<div class="tsd-signature tsd-kind-icon">once<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-class tsd-is-static tsd-is-external">
<a name="default_stream_options" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>STREAM_<wbr>OPTIONS</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>STREAM_<wbr>OPTIONS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.aspect" class="tsd-anchor"></a>
<h3>aspect</h3>
<div class="tsd-signature tsd-kind-icon">aspect<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"9:16"</span><span class="tsd-signature-symbol"> = "9:16"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.audioquality" class="tsd-anchor"></a>
<h3>audio<wbr>Quality</h3>
<div class="tsd-signature tsd-kind-icon">audio<wbr>Quality<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"high"</span><span class="tsd-signature-symbol"> = "high"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.audioreverbtype" class="tsd-anchor"></a>
<h3>audio<wbr>Reverb<wbr>Type</h3>
<div class="tsd-signature tsd-kind-icon">audio<wbr>Reverb<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.audiovolumetype" class="tsd-anchor"></a>
<h3>audio<wbr>Volume<wbr>Type</h3>
<div class="tsd-signature tsd-kind-icon">audio<wbr>Volume<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"voicecall"</span><span class="tsd-signature-symbol"> = "voicecall"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.autofocus" class="tsd-anchor"></a>
<h3>auto<wbr>Focus</h3>
<div class="tsd-signature tsd-kind-icon">auto<wbr>Focus<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> = true</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.autopush" class="tsd-anchor"></a>
<h3>autopush</h3>
<div class="tsd-signature tsd-kind-icon">autopush<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.backgroundmute" class="tsd-anchor"></a>
<h3>background<wbr>Mute</h3>
<div class="tsd-signature tsd-kind-icon">background<wbr>Mute<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> = true</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.beauty" class="tsd-anchor"></a>
<h3>beauty</h3>
<div class="tsd-signature tsd-kind-icon">beauty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.debug" class="tsd-anchor"></a>
<h3>debug</h3>
<div class="tsd-signature tsd-kind-icon">debug<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.deviceposition" class="tsd-anchor"></a>
<h3>device<wbr>Position</h3>
<div class="tsd-signature tsd-kind-icon">device<wbr>Position<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"front"</span><span class="tsd-signature-symbol"> = "front"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.enableagc" class="tsd-anchor"></a>
<h3>enable<wbr>Agc</h3>
<div class="tsd-signature tsd-kind-icon">enable<wbr>Agc<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.enableans" class="tsd-anchor"></a>
<h3>enable<wbr>Ans</h3>
<div class="tsd-signature tsd-kind-icon">enable<wbr>Ans<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.enablecamera" class="tsd-anchor"></a>
<h3>enable<wbr>Camera</h3>
<div class="tsd-signature tsd-kind-icon">enable<wbr>Camera<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> = true</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.enablemic" class="tsd-anchor"></a>
<h3>enable<wbr>Mic</h3>
<div class="tsd-signature tsd-kind-icon">enable<wbr>Mic<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> = true</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.hidden" class="tsd-anchor"></a>
<h3>hidden</h3>
<div class="tsd-signature tsd-kind-icon">hidden<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.localmirror" class="tsd-anchor"></a>
<h3>local<wbr>Mirror</h3>
<div class="tsd-signature tsd-kind-icon">local<wbr>Mirror<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"auto"</span><span class="tsd-signature-symbol"> = "auto"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.maxbitrate" class="tsd-anchor"></a>
<h3>max<wbr>Bitrate</h3>
<div class="tsd-signature tsd-kind-icon">max<wbr>Bitrate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 600</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.minbitrate" class="tsd-anchor"></a>
<h3>min<wbr>Bitrate</h3>
<div class="tsd-signature tsd-kind-icon">min<wbr>Bitrate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 450</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.mode" class="tsd-anchor"></a>
<h3>mode</h3>
<div class="tsd-signature tsd-kind-icon">mode<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RTC"</span><span class="tsd-signature-symbol"> = "RTC"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.orientation" class="tsd-anchor"></a>
<h3>orientation</h3>
<div class="tsd-signature tsd-kind-icon">orientation<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"vertical"</span><span class="tsd-signature-symbol"> = "vertical"</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.pushurl" class="tsd-anchor"></a>
<h3>push<wbr>Url</h3>
<div class="tsd-signature tsd-kind-icon">push<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> = null</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.remotemirror" class="tsd-anchor"></a>
<h3>remote<wbr>Mirror</h3>
<div class="tsd-signature tsd-kind-icon">remote<wbr>Mirror<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.videoheight" class="tsd-anchor"></a>
<h3>video<wbr>Height</h3>
<div class="tsd-signature tsd-kind-icon">video<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 640</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.videowidth" class="tsd-anchor"></a>
<h3>video<wbr>Width</h3>
<div class="tsd-signature tsd-kind-icon">video<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 360</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.waitingimage" class="tsd-anchor"></a>
<h3>waiting<wbr>Image</h3>
<div class="tsd-signature tsd-kind-icon">waiting<wbr>Image<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ""</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.waitingimagehash" class="tsd-anchor"></a>
<h3>waiting<wbr>Image<wbr>Hash</h3>
<div class="tsd-signature tsd-kind-icon">waiting<wbr>Image<wbr>Hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ""</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.whiteness" class="tsd-anchor"></a>
<h3>whiteness</h3>
<div class="tsd-signature tsd-kind-icon">whiteness<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal tsd-is-external">
<a name="default_stream_options.zoom" class="tsd-anchor"></a>
<h3>zoom</h3>
<div class="tsd-signature tsd-kind-icon">zoom<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
</aside>
</section>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../index.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-module tsd-is-external">
<a href="../modules/_we_chat_wechatlocalstream_.html">"we-<wbr>chat/<wbr>WeChat<wbr>Local<wbr>Stream"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-module tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html" class="tsd-kind-icon">We<wbr>Chat<wbr>Local<wbr>Stream</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#_pagetarget" class="tsd-kind-icon">_page<wbr>Target</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#component" class="tsd-kind-icon">component</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#listenermap" class="tsd-kind-icon">listener<wbr>Map</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#options" class="tsd-kind-icon">options</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#userid" class="tsd-kind-icon">user<wbr>Id</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#reporter" class="tsd-kind-icon">reporter</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlistener" class="tsd-kind-icon">add<wbr>Event<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#addeventlisteners" class="tsd-kind-icon">add<wbr>Event<wbr>Listeners</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#bindcomponent" class="tsd-kind-icon">bind<wbr>Component</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#clearlistener" class="tsd-kind-icon">clear<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disableaudio" class="tsd-kind-icon">disable<wbr>Audio</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disablepreview" class="tsd-kind-icon">disable<wbr>Preview</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#disablevideo" class="tsd-kind-icon">disable<wbr>Video</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#dispatchevent" class="tsd-kind-icon">dispatch<wbr>Event</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#dispatcheventlite" class="tsd-kind-icon">dispatch<wbr>Event<wbr>Lite</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enableaudio" class="tsd-kind-icon">enable<wbr>Audio</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enablepreview" class="tsd-kind-icon">enable<wbr>Preview</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#enablevideo" class="tsd-kind-icon">enable<wbr>Video</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmcomplete" class="tsd-kind-icon">onbgmcomplete</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmprocess" class="tsd-kind-icon">onbgmprocess</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onbgmstart" class="tsd-kind-icon">onbgmstart</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onerror" class="tsd-kind-icon">onerror</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onnetstatechange" class="tsd-kind-icon">onnetstatechange</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#onstatechange" class="tsd-kind-icon">onstatechange</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#pause" class="tsd-kind-icon">pause</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#removeeventlistener" class="tsd-kind-icon">remove<wbr>Event<wbr>Listener</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#reset" class="tsd-kind-icon">reset</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#setaudiooutput" class="tsd-kind-icon">set<wbr>Audio<wbr>Output</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#snapshot" class="tsd-kind-icon">snapshot</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#start" class="tsd-kind-icon">start</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#stop" class="tsd-kind-icon">stop</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#switchcamera" class="tsd-kind-icon">switch<wbr>Camera</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#default_event_listener_options" class="tsd-kind-icon">DEFAULT_<wbr>EVENT_<wbr>LISTENER_<wbr>OPTIONS</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-class tsd-is-static tsd-is-external">
<a href="_we_chat_wechatlocalstream_.wechatlocalstream.html#default_stream_options" class="tsd-kind-icon">DEFAULT_<wbr>STREAM_<wbr>OPTIONS</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
</div>
</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/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>