Commit graph

236 commits

Author SHA1 Message Date
Amish Shah
e7824d6515 Fix weird audio playback bug between subsequent streams on an AudioPlayer 2016-12-28 23:21:34 +00:00
Amish Shah
00254f35b0 Make voice return streamdispatcher 2016-12-28 21:40:11 +00:00
Amish Shah
4294d267e7 Add playFile back to voice connection 2016-12-28 19:23:11 +00:00
Amish Shah
0a47d0e1d6 Remove old stuff 2016-12-28 18:16:26 +00:00
Amish Shah
8e75b47a7b add back seek option 2016-12-28 17:37:56 +00:00
Amish Shah
8cf520d5af update streamDispatcher 2016-12-28 17:28:14 +00:00
Amish Shah
be32bbc3a4 really really really messy implementation of prism 2016-12-28 17:04:18 +00:00
bdistin
f726db2152 Revert error emit on Slow Stream Gen (#1011) 2016-12-22 22:24:31 -05:00
Schuyler Cebulskie
361547a588 Fix a bunch of capitalisation issues 2016-12-15 20:10:38 -05:00
bdistin
fbe1929bde Pass Reason to the streamDispatcher end event (#985)
* Pass Reason to the streamDispatcher end event

* Update <dispatcher>.end() to bring inline with <collector>.stop()

Also changed "Stream is not generating quickly enough." from an end to an error, per Crawl...

* Fix docs Copy/Paste fail from collection end event
2016-12-15 16:32:37 +00:00
Hackzzila
52a83b9218 Add ffmpeg-binaries as a possible source of ffmpeg (#975)
* Add ffmpeg-binaries as a possible source of ffmpeg

* Add note in faq
2016-12-11 19:02:00 +00:00
Hackzzila
6afd80cf53 Make uws a peer dep, and readd ws (#928)
* Make uws a peer dep, and readd ws

* if -> else if
2016-11-27 19:59:50 +00:00
Schuyler Cebulskie
c683790de7 Remove old uws-specific code (0.11.1 has the good stuff) 2016-11-25 19:40:53 -05:00
Will Nelson
eedc097f3f fix playConvertedStream (#923) 2016-11-24 17:08:55 -05:00
Gus Caplan
945a2e370a fix voice ws (#922) 2016-11-24 02:39:01 -05:00
Gus Caplan
c91ee7a3e7 Replace ws with uws (#918)
* change to uws (waiting for the next release tho)

* clean up, fix reconnections (maybe)

* change voice to use uws

* so messy
2016-11-23 19:30:00 -05:00
Schuyler Cebulskie
32879419e2 Fix dispatcher doc 2016-11-23 02:51:10 -05:00
Schuyler Cebulskie
f6a60581c4 Remove even more stuff from web dists 2016-11-20 22:40:06 -05:00
Gus Caplan
2440a4a2c8 Add webpack building (#907)
* friggin webpack tho

* probably important

* add all the stuff to the package.json

* add minify builds and a nice package.json script to run it all

* clean up

* use uglify harmony branch so we can actually run minify builds that work

* update build system

* make test better

* clean up

* fix issues with compression

* ‮

* c++ requirements in a node lib? whaaaaat?

* fix travis yml?

* put railings on voice connections

* 🖕🏻

* aaaaaa

* handle arraybuffers in the unlikely event one is sent

* support arraybuffers in resolvebuffer

* this needs to be fixed at some point

* this was fixed

* disable filename versioning if env VERSIONED is set to false

* Update ClientDataResolver.js

* Update ClientVoiceManager.js

* Update WebSocketManager.js

* Update ConvertArrayBuffer.js

* Update webpack.html

* enable compression for browser and fix ws error handler

* Update WebSocketManager.js

* everything will be okay gawdl3y

* compression is slower in browser, so rip the last three hours of my life

* Update Constants.js

* Update .gitignore
2016-11-20 19:38:16 -05:00
Schuyler Cebulskie
90304aa7d6 Fix loads of JSDoc type issues 2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
1e8392d90b Merge branch 'master' into indev 2016-11-12 00:30:25 -05:00
Marko Kajzer
c02eb2f171 Fixed unset field of VoiceConnection (#879)
* Fixed unset field of VoiceConnection

Fixed a typo

* Update VoiceConnection.js
2016-11-07 12:35:49 -05:00
Programmix
fe3914658a Grammar cleanup (#875)
This commit:
* fixes inconsistencies (primarily regarding capitalization)
* fixes non-proper nouns that were improperly capitalized
* fixes reminents from not-so-meticulous copy+paste jobs
2016-11-05 23:57:34 +00:00
Schuyler Cebulskie
73261646fc Fix ESLint warnings 2016-10-30 17:23:39 -04:00
Schuyler Cebulskie
8306d50bd8 Clean up a bunch of promise stuff 2016-10-30 12:47:17 -04:00
Schuyler Cebulskie
cf04b44454 Clean up some more 2016-10-27 21:38:48 -04:00
Schuyler Cebulskie
4e6b632d23 Fix VoiceConnection.speaking not emitting 2016-10-27 20:51:19 -04:00
Schuyler Cebulskie
83bef4ca77 Teensy weensy cleanup 2016-10-27 20:45:09 -04:00
Schuyler Cebulskie
1841122a8f Cherry pick commits from indev 2016-10-27 19:48:34 -04:00
Hackzzila
30105536a6 ESLint warnings (#852) 2016-10-27 22:19:20 +01:00
Amish Shah
5dd76069f8 Simplify voice channel joining 2016-10-27 19:04:24 +01:00
Amish Shah
cd9b391e2a Hide SecretKey in documentation 2016-10-27 17:25:17 +01:00
Schuyler Cebulskie
4e693e2e39 Fix a small VoiceReceiver doc issue 2016-10-26 21:43:28 -04:00
Schuyler Cebulskie
ab6750d06d Make docs catches use console.error 2016-10-26 21:37:19 -04:00
Amish Shah
e12c7bf2d4 Whoops remove something 2016-10-26 16:10:02 +01:00
Amish Shah
0f1e121b81 hide some voice stuff in docs 2016-10-26 16:06:56 +01:00
Amish Shah
45632b2eae fix joining voice channels without perms 2016-10-26 15:23:54 +01:00
Amish Shah
26de908cfd some voice docs 2016-10-26 14:44:19 +01:00
Schuyler Cebulskie
05f73c3edf Clean up voice channel join permissions check 2016-10-25 20:41:23 -04:00
Schuyler Cebulskie
b2a4545c16 Clean up more voice stuff 2016-10-25 20:34:57 -04:00
Schuyler Cebulskie
d1e9d15a1c Clean up a bunch of new voice stuff 2016-10-25 20:26:57 -04:00
Schuyler Cebulskie
a04094f0ff Rename VoiceConnection.disconnected event -> disconnect 2016-10-25 19:59:22 -04:00
Amish Shah
ff16c9f01f change currentDispatcher to just dispatcher 2016-10-25 21:55:38 +01:00
Amish Shah
2ee6da8d79 redo docs again 2016-10-25 19:52:10 +01:00
Amish Shah
5bd18e6051 add some documentation 2016-10-25 19:47:17 +01:00
Amish Shah
f77af72d71 Add voice receiving again \o/ 2016-10-25 19:41:54 +01:00
Amish Shah
b50bec8a44 whoops broke travis again 2016-10-25 15:02:16 +01:00
Amish Shah
2b2bbb565d don't require longjohn 2016-10-25 14:46:50 +01:00
Amish Shah
5844bbb54c Fix travis builds 2016-10-25 14:38:56 +01:00
Amish Shah
91ba59c43d Added voice disconnect 2016-10-25 14:18:20 +01:00
Amish Shah
b0921ae0ef fix econnreset! \o/ #694 2016-10-25 12:52:07 +01:00
Amish Shah
823a339c25 oh no wait i was right the first time 2016-10-24 22:27:23 +01:00
Amish Shah
8a68fea9af damn it hydar 2016-10-24 22:27:03 +01:00
Amish Shah
d73d6a7340 make some stuffs 2016-10-24 22:26:34 +01:00
Amish Shah
f96c185d92 add the functions to voice connection 2016-10-24 21:39:32 +01:00
Amish Shah
1a5ce878a1 fix some stuff 2016-10-24 20:13:44 +01:00
Amish Shah
5749eb6bb0 actually log the damn reason 2016-10-24 18:56:02 +01:00
Amish Shah
7818d37042 catch cleanup reasons 2016-10-24 18:36:52 +01:00
Amish Shah
17586f0e20 maybe fix again 2016-10-24 17:41:37 +01:00
Amish Shah
c6d0c31c84 hydra have you actually fixed voice whatttt 2016-10-24 17:10:17 +01:00
Amish Shah
8dd2005ab9 stop logging 2016-10-24 14:37:08 +01:00
Amish Shah
e13e2447d4 get voice sort of working 2016-10-24 14:26:24 +01:00
Amish Shah
b2eb796cfc remove console.log and fix endless loop connecting 2016-10-23 19:59:19 +01:00
Amish Shah
38ff53c3a1 woah is hydra actually working on voice?! 2016-10-23 19:51:44 +01:00
Amish Shah
57a418399b start some stuff on UDP 2016-10-02 17:28:48 +01:00
Amish Shah
c75782781b finish up voice websocket for now 2016-10-02 16:51:40 +01:00
Amish Shah
2bb6ecdc28 documentation 2016-10-02 15:16:54 +01:00
Amish Shah
ed8b79aa46 Add session description and speaking listeners 2016-10-02 15:12:43 +01:00
Amish Shah
e201e9080f start rewriting voice websocket 2016-10-02 14:59:05 +01:00
Amish Shah
c286c1443f voice rewrite part 1 2016-10-01 22:23:00 +01:00
Schuyler Cebulskie
b1322cbc69 Initialise and document StreamDispatcher.paused 2016-09-30 03:12:01 -04:00
Schuyler Cebulskie
f157bcf5e8 Rearrange StreamDispatcher code 2016-09-30 03:09:08 -04:00
Schuyler Cebulskie
4934874613 Inline a line 2016-09-30 03:05:37 -04:00
Schuyler Cebulskie
b6c26cc2ae Replace console.log in catches with console.error 2016-09-27 18:50:01 -04:00
Schuyler Cebulskie
aa9fdf2e26 Small cleanups 2016-09-20 23:09:02 -04:00
Schuyler Cebulskie
468077ce96 Merge branch 'master' into indev 2016-09-20 23:02:56 -04:00
Matteo Rizzo
f383c78414 Fix VoiceConnection.playConvertedStream not playing anything (#708) 2016-09-20 23:01:02 -04:00
Schuyler Cebulskie
5a9753e461 Double-fix my double-derp 2016-09-19 20:07:30 -04:00
Schuyler Cebulskie
0559aaf00b Fix my derp 2016-09-19 20:01:20 -04:00
Schuyler Cebulskie
7d8667694d Fix massive timeout/interval memory leaks 2016-09-19 03:49:42 -04:00
Schuyler Cebulskie
6f7deba4b3 Fix VoiceConnection client#voiceStateUpdate leak 2016-09-19 02:49:30 -04:00
Schuyler Cebulskie
ab7682f921 Tiny text changes 2016-09-17 23:22:15 -04:00
Gus Caplan
7cb2e8eef7 add disconnect event, document warn and debug events (#702)
* add documentation for events, and add a disconnect event, because i know people use that

* generate docs, and fix a hastily copied docstring

* fix permissions freak out
2016-09-14 00:12:10 -04:00
Amish Shah
b0adc881f3 Maybe fix #694? 2016-09-13 20:30:44 +01:00
Amish Shah
02b257e1fc Fix audio playing stupidly fast - fixes #689 2016-09-12 18:23:38 +01:00
Schuyler Cebulskie
961346dcaa Inline a line 2016-09-12 13:04:09 -04:00
Schuyler Cebulskie
8984bf332c Capitalised some letters 2016-09-12 13:02:56 -04:00
Amish Shah
ea55b0efbd Fix receiver.recreate() 2016-09-12 17:43:45 +01:00
Amish Shah
95369b0a89 Add VoiceReceiver.destroy()/recreate(), addresses #693 2016-09-12 17:01:15 +01:00
Amish Shah
b39d959cdf Maybe fix voice and #650? 2016-09-12 16:39:18 +01:00
Gus Caplan
032d6613f7 add a message, because WHY THE HELL DID NO ONE EVER DO THIS (#690)
* add a message, because WHY THE HELL DID NO ONE EVER DO THIS

!!!

* make message better

* make linter happy

* disable max-len rule for line 37

* make gawdl3y be happy

* gawdl3y triggers me

* Update FfmpegConverterEngine.js
2016-09-11 21:28:17 -04:00
Amish Shah
9059eb13a2 Add passes to streaming voice 2016-09-11 18:49:18 +01:00
Amish Shah
8f1216d9a5 Add StreamDispatcher#start event 2016-09-11 17:39:07 +01:00
Amish Shah
77e83fb85a Fix voice 😄 2016-09-11 16:41:05 +01:00
Schuyler Cebulskie
47d71d32f3 Make grammer gooder 2016-09-11 01:40:37 -04:00
Schuyler Cebulskie
0833500d60 Made most object typedefs specify their properties 2016-09-11 01:21:49 -04:00
Amish Shah
8c0685fa9a Add StreamDispatcher.time and totalStreamTime, addresses #674 2016-09-10 14:44:52 +01:00
Amish Shah
0d417b6432 Fix voice speed issues, fixes #672 2016-09-10 14:22:14 +01:00
Amish Shah
4278a37e3c maybe fix voice idk 2016-09-09 18:45:33 +01:00
Amish Shah
b7204f33b9 some voice fixes 2016-09-09 18:35:27 +01:00
Amish Shah
f192d16b5b Fix delays inbetween audio streams (#632) 2016-09-09 18:28:21 +01:00
Schuyler Cebulskie
8f9923976f Fix stuff 2016-09-09 11:35:59 -04:00
Schuyler Cebulskie
9682adb9fe Clean up PR a bit 2016-09-08 22:59:10 -04:00
Perry Berman
f7a542f12b 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
2016-09-08 22:49:52 -04:00
Brian Tanner
47a164bd36 fix epipe when skipping songs, probably fixes econnreset (#662) 2016-09-08 21:53:49 -04:00
Schuyler Cebulskie
0b908f5bce Cleanup Part 2: Electric Boogaloo (Reloaded) (#594)
* Cleanup Part 2: Electric Boogaloo (Reloaded)

* Moar cleanup

* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Amish Shah
a3b9b0f1b4 Fix VC docs 2016-09-03 23:11:55 +01:00
Amish Shah
efd1d0c738 rewrite some docs and refactor some names 2016-09-03 23:06:58 +01:00
Amish Shah
432c5ccc82 Add volume modification to dispatcher 2016-09-03 22:27:43 +01:00
Schuyler Cebulskie
64d89b3748 Replace a few rejections with throw (#590) 2016-09-03 21:36:54 +01:00
Amish Shah
44b34154e8 guarantee promise resolution for voice connections 2016-09-03 21:32:11 +01:00
Schuyler Cebulskie
68acf37fd4 Add stricter/better ESLint config (#589)
* Add stricter/better ESLint config

* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Schuyler Cebulskie
27652b94af Make JSDocs follow general conventions (#582)
* Make JSDocs follow usual conventions

* Fix StringResolvable name

* Make function lowercase
2016-09-03 09:57:25 +01:00
Amish Shah
d249aa10cc Add client.destroy(); 2016-08-30 13:05:57 +01:00
Amish Shah
df934eccaf Fix voice losing count 2016-08-29 16:41:33 +01:00
abal
ac7e1a052c Add opusscript as a possible opus encoder (#558)
* Add opusscript as a possible opus encoder

* Make weird eslint rule happy
2016-08-28 17:35:59 +01:00
Amish Shah
a959cd339c Fix inaccuracy in VoiceReceiver docs 2016-08-27 23:15:21 +01:00
Amish Shah
f2708dd26f Add playPCMStream 2016-08-27 15:48:10 +01:00
Amish Shah
19d976748c VoiceReadable stream now ends when a member leaves a VoiceChannel 2016-08-27 15:35:55 +01:00
Amish Shah
ee6ccc5e17 Fix fs-extra dependencies 2016-08-26 18:05:36 +01:00
Amish Shah
6ddc7a813c Add VoiceReceiver streams 2016-08-26 17:34:28 +01:00
Amish Shah
48762c642c Make voice receiving better 2016-08-25 23:12:03 +01:00
Amish Shah
2d6068010b Create basic voice receiving 2016-08-25 22:40:22 +01:00
Amish Shah
7ba37a3511 fix eslint for opus 2016-08-25 22:02:41 +01:00
Amish Shah
fe3fdb7d6a document voice 2016-08-25 19:12:23 +01:00
Amish Shah
6d7e649bb1 fix some voice stuff 2016-08-25 14:49:18 +01:00
Amish Shah
7b2d76429f remove console.log 2016-08-25 14:28:27 +01:00
Amish Shah
d6f5df39fc voice stuff 2016-08-25 14:24:19 +01:00
Amish Shah
253789f398 PLS WORK 2016-08-24 22:26:32 +01:00
Amish Shah
8683f45816 errory voice 2016-08-24 21:38:52 +01:00
Amish Shah
328f3c4ae8 Add VoiceConnection.disconnect([reason]); 2016-08-23 21:47:41 +01:00
Amish Shah
f9a553a7f0 Documentation 2016-08-23 21:16:52 +01:00
Amish Shah
d0a76f3f38 Promisify 2016-08-23 21:04:19 +01:00
Amish Shah
e370ccf806 Complete voice connection 2016-08-23 20:59:08 +01:00
Amish Shah
f713f52841 Add voice websocket handling 2016-08-23 19:13:23 +01:00
Amish Shah
d8b1ef47cd voice setup waits for all data 2016-08-23 18:29:53 +01:00