handle string ffmpeg input (#2064)

* handle string ffmpeg input

* rename stuff for new purpose

* file prefix isn't needed

* pass tests

* remove dumb spaces in dispatcher docs
This commit is contained in:
Will Nelson
2017-10-27 14:42:21 -07:00
committed by Amish Shah
parent 8a87cbf404
commit dbf4ef9a7c
7 changed files with 18 additions and 15 deletions

View File

@@ -457,7 +457,7 @@ class VoiceConnection extends EventEmitter {
* .catch(console.error);
*/
playFile(file, options) {
return this.player.playUnknownStream(`file:${file}`, options);
return this.player.playUnknown(file, options);
}
/**
@@ -467,7 +467,7 @@ class VoiceConnection extends EventEmitter {
* @returns {StreamDispatcher}
*/
playArbitraryInput(input, options) {
return this.player.playUnknownStream(input, options);
return this.player.playUnknown(input, options);
}
/**
@@ -487,7 +487,7 @@ class VoiceConnection extends EventEmitter {
* .catch(console.error);
*/
playStream(stream, options) {
return this.player.playUnknownStream(stream, options);
return this.player.playUnknown(stream, options);
}
/**