Initialise and document StreamDispatcher.paused

This commit is contained in:
Schuyler Cebulskie
2016-09-30 03:12:01 -04:00
parent f157bcf5e8
commit b1322cbc69
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -32,12 +32,19 @@ class StreamDispatcher extends EventEmitter {
this._startStreaming();
this._triggered = false;
this._volume = streamOptions.volume;
/**
* How many passes the dispatcher should take when sending packets to reduce packet loss. Values over 5
* aren't recommended, as it means you are using 5x more bandwidth. You _can_ edit this at runtime.
* @type {number}
*/
this.passes = streamOptions.passes || 1;
/**
* Whether playing is paused
* @type {boolean}
*/
this.paused = false;
}
/**