Add ability to receive nothing.
This commit is contained in:
+4
-1
@@ -321,12 +321,15 @@ ServerConnection.prototype.join = function(group) {
|
||||
/**
|
||||
* request sets the list of requested media types.
|
||||
*
|
||||
* @param {string} what - One of "audio", "screenshare" or "everything".
|
||||
* @param {string} what - One of '', 'audio', 'screenshare' or 'everything'.
|
||||
*/
|
||||
ServerConnection.prototype.request = function(what) {
|
||||
/** @type {Object.<string,boolean>} */
|
||||
let request = {};
|
||||
switch(what) {
|
||||
case '':
|
||||
request = {};
|
||||
break;
|
||||
case 'audio':
|
||||
request = {audio: true};
|
||||
break;
|
||||
|
||||
@@ -174,6 +174,7 @@
|
||||
|
||||
<label for="requestselect">Receive:</label>
|
||||
<select id="requestselect" class="select select-inline">
|
||||
<option value="">nothing</option>
|
||||
<option value="audio">audio only</option>
|
||||
<option value="screenshare">screen share</option>
|
||||
<option value="everything" selected>everything</option>
|
||||
|
||||
Reference in New Issue
Block a user