mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Add optional streamOptions to playStream() functions (#663)
* Adding playStream options Added optional volume and seek properties * fixed code formatting Edited my code styling to match with the rest of d.js * Added Default Variable * Added Documentation Added documentation for the streamOptions parameter Added a default value for seek in FFmpegConverterEngine Removed redundantcy * Fixed docs for voiceConnection * Change _updateMember's notSame check from && to || (#665) * Fixed git merge fail * Built Docs. Again......... * Hopefully finally fixed
This commit is contained in:
committed by
Schuyler Cebulskie
parent
4be7a1bfd1
commit
f7a542f12b
@@ -18,7 +18,7 @@ nonce.fill(0);
|
||||
* @extends {EventEmitter}
|
||||
*/
|
||||
class StreamDispatcher extends EventEmitter {
|
||||
constructor(player, stream, sd) {
|
||||
constructor(player, stream, sd, streamOptions) {
|
||||
super();
|
||||
this.player = player;
|
||||
this.stream = stream;
|
||||
@@ -30,7 +30,7 @@ class StreamDispatcher extends EventEmitter {
|
||||
};
|
||||
this._startStreaming();
|
||||
this._triggered = false;
|
||||
this._volume = 1;
|
||||
this._volume = streamOptions.volume;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user