This commit is contained in:
Amish Shah
2017-10-26 18:05:45 +01:00
parent eeed5f23e3
commit 45ef80b92f
2 changed files with 4 additions and 0 deletions

View File

@@ -84,11 +84,13 @@ class StreamDispatcher extends Writable {
/**
* Whether or not playback is paused
* @type {boolean}
*/
get paused() { return Boolean(this.pausedSince); }
/**
* Total time that this dispatcher has been paused
* @type {number}
*/
get pausedTime() { return this._pausedTime + (this.paused ? Date.now() - this.pausedSince : 0); }
@@ -200,6 +202,7 @@ class StreamDispatcher extends Writable {
/**
* Whether or not the Opus bitrate of this stream is editable
* @type {boolean}
*/
get bitrateEditable() { return this.streams.opus && this.streams.opus.setBitrate; }

View File

@@ -12,6 +12,7 @@ class VolumeInterface extends EventEmitter {
/**
* Whether or not the volume of this stream is editable
* @type {boolean}
*/
get volumeEditable() {
return true;