mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Add ability to receive nothing.
This commit is contained in:
parent
8a4b2f5d3f
commit
eab848f2cf
2 changed files with 5 additions and 1 deletions
|
@ -321,12 +321,15 @@ ServerConnection.prototype.join = function(group) {
|
||||||
/**
|
/**
|
||||||
* request sets the list of requested media types.
|
* 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) {
|
ServerConnection.prototype.request = function(what) {
|
||||||
/** @type {Object.<string,boolean>} */
|
/** @type {Object.<string,boolean>} */
|
||||||
let request = {};
|
let request = {};
|
||||||
switch(what) {
|
switch(what) {
|
||||||
|
case '':
|
||||||
|
request = {};
|
||||||
|
break;
|
||||||
case 'audio':
|
case 'audio':
|
||||||
request = {audio: true};
|
request = {audio: true};
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -174,6 +174,7 @@
|
||||||
|
|
||||||
<label for="requestselect">Receive:</label>
|
<label for="requestselect">Receive:</label>
|
||||||
<select id="requestselect" class="select select-inline">
|
<select id="requestselect" class="select select-inline">
|
||||||
|
<option value="">nothing</option>
|
||||||
<option value="audio">audio only</option>
|
<option value="audio">audio only</option>
|
||||||
<option value="screenshare">screen share</option>
|
<option value="screenshare">screen share</option>
|
||||||
<option value="everything" selected>everything</option>
|
<option value="everything" selected>everything</option>
|
||||||
|
|
Loading…
Reference in a new issue