<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="utf-8">
|
<title>JSDoc: Class: JanusVideoRoom</title>
|
|
<script src="scripts/prettify/prettify.js"> </script>
|
<script src="scripts/prettify/lang-css.js"> </script>
|
<!--[if lt IE 9]>
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
<![endif]-->
|
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
</head>
|
|
<body>
|
|
<div id="main">
|
|
<h1 class="page-title">Class: JanusVideoRoom</h1>
|
|
|
|
|
|
|
<section>
|
|
<header>
|
|
<h2>JanusVideoRoom</h2>
|
|
|
</header>
|
|
<article>
|
<div class="container-overview">
|
|
|
|
|
|
<h4 class="name" id="JanusVideoRoom"><span class="type-signature"></span>new JanusVideoRoom<span class="signature">(janusUrl, srvurl)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
<div class="description">
|
Interface with Janus Gateway Video Room and WebRTC-streamer API
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
<table class="params">
|
<thead>
|
<tr>
|
|
<th>Name</th>
|
|
|
<th>Type</th>
|
|
|
|
|
|
<th class="last">Description</th>
|
</tr>
|
</thead>
|
|
<tbody>
|
|
|
<tr>
|
|
<td class="name"><code>janusUrl</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">url of Janus Gateway</td>
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>srvurl</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">url of WebRTC-streamer</td>
|
</tr>
|
|
|
</tbody>
|
</table>
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
<dd class="tag-source"><ul class="dummy"><li>
|
<a href="janusvideoroom.js.html">janusvideoroom.js</a>, <a href="janusvideoroom.js.html#line10">line 10</a>
|
</li></ul></dd>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="subsection-title">Methods</h3>
|
|
|
|
|
|
|
<h4 class="name" id="join"><span class="type-signature"></span>join<span class="signature">(janusroomid, url, name)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
<div class="description">
|
Ask to publish a stream from WebRTC-streamer in a Janus Video Room user
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
<table class="params">
|
<thead>
|
<tr>
|
|
<th>Name</th>
|
|
|
<th>Type</th>
|
|
|
|
|
|
<th class="last">Description</th>
|
</tr>
|
</thead>
|
|
<tbody>
|
|
|
<tr>
|
|
<td class="name"><code>janusroomid</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">id of the Janus Video Room to join</td>
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>url</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">WebRTC stream to publish</td>
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>name</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">name in Janus Video Room</td>
|
</tr>
|
|
|
</tbody>
|
</table>
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
<dd class="tag-source"><ul class="dummy"><li>
|
<a href="janusvideoroom.js.html">janusvideoroom.js</a>, <a href="janusvideoroom.js.html#line23">line 23</a>
|
</li></ul></dd>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="name" id="leave"><span class="type-signature"></span>leave<span class="signature">(janusroomid, url, name)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
<div class="description">
|
Ask to unpublish a stream from WebRTC-streamer in a Janus Video Room user
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
<table class="params">
|
<thead>
|
<tr>
|
|
<th>Name</th>
|
|
|
<th>Type</th>
|
|
|
|
|
|
<th class="last">Description</th>
|
</tr>
|
</thead>
|
|
<tbody>
|
|
|
<tr>
|
|
<td class="name"><code>janusroomid</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">id of the Janus Video Room to join</td>
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>url</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">WebRTC stream to publish</td>
|
</tr>
|
|
|
|
<tr>
|
|
<td class="name"><code>name</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">name in Janus Video Room</td>
|
</tr>
|
|
|
</tbody>
|
</table>
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
<dd class="tag-source"><ul class="dummy"><li>
|
<a href="janusvideoroom.js.html">janusvideoroom.js</a>, <a href="janusvideoroom.js.html#line48">line 48</a>
|
</li></ul></dd>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="name" id="subscribeEvents"><span class="type-signature"></span>subscribeEvents<span class="signature">(fn)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
<div class="description">
|
subscribeEvents
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>Parameters:</h5>
|
|
|
<table class="params">
|
<thead>
|
<tr>
|
|
<th>Name</th>
|
|
|
<th>Type</th>
|
|
|
|
|
|
<th class="last">Description</th>
|
</tr>
|
</thead>
|
|
<tbody>
|
|
|
<tr>
|
|
<td class="name"><code>fn</code></td>
|
|
|
<td class="type">
|
|
|
<span class="param-type">string</span>
|
|
|
|
</td>
|
|
|
|
|
|
<td class="description last">funtcion to call</td>
|
</tr>
|
|
|
</tbody>
|
</table>
|
|
|
|
|
|
|
<dl class="details">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
<dd class="tag-source"><ul class="dummy"><li>
|
<a href="janusvideoroom.js.html">janusvideoroom.js</a>, <a href="janusvideoroom.js.html#line76">line 76</a>
|
</li></ul></dd>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
</section>
|
|
|
|
|
</div>
|
|
<nav>
|
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="JanusVideoRoom.html">JanusVideoRoom</a></li><li><a href="WebRtcStreamer.html">WebRtcStreamer</a></li><li><a href="XMPPVideoRoom.html">XMPPVideoRoom</a></li></ul>
|
</nav>
|
|
<br class="clear">
|
|
<footer>
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Sat Aug 25 2018 15:00:27 GMT+0200 (CEST)
|
</footer>
|
|
<script> prettyPrint(); </script>
|
<script src="scripts/linenumber.js"> </script>
|
</body>
|
</html>
|