This commit is contained in:
Amish Shah
2017-10-26 16:35:20 +01:00
parent 780e67d19f
commit b83e12634c
2 changed files with 14 additions and 0 deletions

View File

@@ -161,6 +161,13 @@ class StreamDispatcher extends Writable {
this.emit('speaking', value);
}
get volumeEditable() { return Boolean(this.player.streams.volume); }
/**
* Whether or not the Opus bitrate of this stream is editable
*/
get bitrateEditable() { return this.streams.opus && this.streams.opus.setBitrate; }
get volume() {
return this.player.streams.volume ? this.player.streams.volume.volume : 1;
}

View File

@@ -10,6 +10,13 @@ class VolumeInterface extends EventEmitter {
this.setVolume(volume || 1);
}
/**
* Whether or not the volume of this stream is editable
*/
get volumeEditable() {
return true;
}
/**
* The current volume of the broadcast
* @readonly