-
-
Notifications
You must be signed in to change notification settings - Fork 246
Voice Client & Packets v2 #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alexandre433
wants to merge
125
commits into
discord-php:master
Choose a base branch
from
alexandre433:feature/voice-recording
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
3ae46f1
WIP
alexandre433 dd580e0
Updates the byte version, to the latest (forked by me) one
alexandre433 efc034c
Adds a new class to rename the previous one "RecieveStream" to "Recei…
alexandre433 25e231d
Updates the current version of the voice client to v8
alexandre433 ffda2b1
Removes debugging logs
alexandre433 9b3739f
Updates const name
alexandre433 1b3ef2e
Updates recieve class.
alexandre433 59c93d6
Updates Discord class usage for voices into 1 class only.
alexandre433 f0850b9
Reorganize imports
valzargaming 99069d7
Imports
valzargaming ee994b6
Imports
valzargaming e26a968
Update .gitignore
valzargaming ae845ca
Import alias and broken function
valzargaming b6509c3
VOICE_CLIENT_CONNECT deprecated
valzargaming 4772049
Imports
valzargaming e367550
Updates usage of trafficcophp/bytebuffer to a locally ovewritten class
alexandre433 9610825
Merge branch 'master' into feature/voice-recording
alexandre433 2b227c0
Updates function according to master change
alexandre433 a2619b0
WIP
alexandre433 d511657
Updates the byte version, to the latest (forked by me) one
alexandre433 5cdc95b
Adds a new class to rename the previous one "RecieveStream" to "Recei…
alexandre433 538f9d4
Updates the current version of the voice client to v8
alexandre433 4a372e8
Removes debugging logs
alexandre433 74e1908
Updates const name
alexandre433 3086ed3
Updates recieve class.
alexandre433 3fbd34b
Updates Discord class usage for voices into 1 class only.
alexandre433 f367066
Reorganize imports
valzargaming 4b42a76
Imports
valzargaming dbae1dd
Imports
valzargaming 75fd8b7
Update .gitignore
valzargaming b311875
Update .gitignore
valzargaming 8fadcd8
Import alias and broken function
valzargaming 65c6de9
VOICE_CLIENT_CONNECT deprecated
valzargaming 1885f72
Imports
valzargaming 0112d2f
Updates usage of trafficcophp/bytebuffer to a locally ovewritten class
alexandre433 5f36bad
Updates function according to master change
alexandre433 a43a498
Removes variable overriding
alexandre433 7e0ab95
Fixes import
alexandre433 d4ff0da
Fixes issue on variable type
alexandre433 f2f5e53
Fixes payload sent, since it's using v8
alexandre433 e82cc9f
Merge branch 'feature/voice-recording' of https://github.com/alexandr…
alexandre433 989b671
Merge branch 'feature/voice-recording-01-06-2025-master' into feature…
alexandre433 21a8b66
Merge branch 'master' into feature/voice-recording
valzargaming 10e2f09
Move import of functions below import of classes
valzargaming 80dcf4a
Make method compatible with parent methods
valzargaming 82fa7f9
Fix typing for VoiceClient::startTime
valzargaming 3d5d651
Discord imports
valzargaming db92397
Buffer imports
valzargaming 93f28c6
Remove ReceiveStream imports
valzargaming c70e42f
Voice imports
valzargaming 6e0025d
VoiceClient imports
valzargaming 8f420f1
Helpers classes instead of dependency
valzargaming 153664f
Remove trafficcophp/bytebuffer as a dependency
valzargaming e46f5d3
Author formatting
valzargaming 60033dd
Copy iterator into array instead of iterating and concatentating
valzargaming 5529ded
excpectedMax => expectedMax
valzargaming 6bef84a
PHPDocs and params types
valzargaming 8d44409
Reduce ops
valzargaming 7459fa6
Update Buffer.php
valzargaming 4af2454
Create BufferArrayAccessTrait.php
valzargaming 8162df5
insert params
valzargaming d17e93c
Remove typing for insert's $format param
valzargaming e2cc7a6
Use existing FormatPackEnum class
valzargaming e5729af
Updating typings
valzargaming 31205db
Update types
valzargaming e1484bf
Update Buffer.php
valzargaming 648c6ea
use Discord\Helpers\ByteBuffer\Buffer
valzargaming 72a5dd7
PHPDoc
valzargaming 08708ab
VoicePacket Imports
valzargaming 66495a4
Fix VoicePacket property typing
valzargaming acbccb1
declare(strict_types=1);
valzargaming 79b1ec4
declare(strict_types=1);
valzargaming ed0c607
Type ordering
valzargaming b0d1302
Remove whitespace
valzargaming 8d06d7f
VoicePayload class
valzargaming 440fae2
Implement VoicePayload
valzargaming b060c3d
VoicePayload token getter and setter
valzargaming 3a2210b
Protected visibility, VoiceClient::createDecoder
valzargaming 80043ed
VoiceClient::removeDecoder
valzargaming 2b1e4a8
VoiceClient::sendHeartbeat
valzargaming 9237644
VoiceClient::decodeUDP
valzargaming da04f27
VoiceClient::readDCAOpus
valzargaming 23c625d
VoiceClient::readOggOpus
valzargaming dc3562f
PHPDocs
valzargaming eab9181
PHPDocs
valzargaming 2db5664
PHPDocs
valzargaming 912032c
Discord property for VoiceClient
valzargaming 9150506
VoiceSpeaking part, remove unused construct params
valzargaming 0b25c37
Discord\WebSockets\EventData => Discord\Parts\EventData
valzargaming d131fba
Fixes issue on factory being null
alexandre433 f988bd6
Updates Voice class to VoiceManager
alexandre433 4fd3190
Simplifies some code to remove multiple usages of the same class e.g.…
alexandre433 51a6a04
Updates more usages for $this->bot instead of using other names, whic…
alexandre433 33224e2
Updates VoiceClient creation to match previous commit
alexandre433 5f96ff9
Updates some comments
alexandre433 bd709e4
Adds new bool checks on Channel
alexandre433 22f741c
Adds new classes for Process Ffmpeg
alexandre433 ffb2a22
Updates some flow on how the VoiceClient is created & the VoiceManage…
alexandre433 69298c5
Adds missing checks
alexandre433 a55c071
Creates Packet class, moved into Client folder inside Voice
alexandre433 94c50fb
Updates class names
alexandre433 8e3e4ca
Renames
alexandre433 14f9527
Adds some declare strict types
alexandre433 a46ef01
Adds static instance for discord class, to be able to call a helper f…
alexandre433 d7bb956
Reverts visibility to protected
alexandre433 00da654
Reorder imports
valzargaming d7e1bbd
Reverts back usage of logger
alexandre433 ead85a3
Updates usage of get voice client
alexandre433 fc3d73d
Updates function to remove duplication of "return $deferred->promise();"
alexandre433 23d3d3d
Remove usage of the DnsFactory from within the VoiceClient into the c…
alexandre433 b6727fc
Removes unused function (already handled on either VoiceManager or Vo…
alexandre433 9a7cf18
Fixes issue on heartbeat not working
alexandre433 b3dc1ef
Updates some visibilities on some properties
alexandre433 0c8bccf
[Voice] Adds FFI requirement
alexandre433 82feaa5
Fixes an issue where it threw an error (frame_size should be 960)
alexandre433 6389d8d
Adds `->leave()` function to make the bot leave the voice channel
alexandre433 6a762da
Adds return null on udp
alexandre433 866da52
Updates ffmpeg command, adds todo
alexandre433 19b68e6
Runs pint on voice folder
alexandre433 82a340f
Adds new exceptions
alexandre433 05e7a8d
Adds 2 new functions `->record()` and `->stopRecording()` (BETA)
alexandre433 a60fad6
Adds some doc blocks
alexandre433 f69bb35
Adds some docblock
alexandre433 d1abf14
Updates @since for 10.19.0
alexandre433 e83649d
Refactors voice client management and updates method names for clarity
alexandre433 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Discord\Voice\Client; | ||
|
||
enum HeaderValuesEnum: int | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Discord\Voice\Client; | ||
|
||
use Discord\Discord; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Discord\Voice\Processes; | ||
|
||
use Discord\Voice\Processes\ProcessAbstract; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Discord\Voice\Processes; | ||
|
||
use React\ChildProcess\Process; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.