feat: Video receiver (2/n)

- Only VP8 supported
- With example JSDoc
- Tested but bad quality
This commit is contained in:
Elysia
2024-07-25 21:09:52 +07:00
parent 24e151805d
commit 74f49ba92d
6 changed files with 197 additions and 23 deletions

View File

@@ -144,7 +144,8 @@ class MediaPlayer extends EventEmitter {
// Get stream type
if (this.voiceConnection.videoCodec == 'VP8') {
args.push('-f', 'ivf', '-deadline', 'realtime', '-c:v', options?.copy ? 'copy' : 'libvpx', '-speed', '5');
args.push('-f', 'ivf', '-deadline', 'realtime', '-c:v', options?.copy ? 'copy' : 'libvpx');
// Remove '-speed', '5' bc bad quality
}
if (this.voiceConnection.videoCodec == 'H264') {