This handles decryption errors for audio differently than the current version. Instead of forwarding horrible noise to the decoder, replace the bytes with magic opus bytes for silence: 0xd8fffe Those bytes were captured on a modified version of https://webrtc.github.io/samples/src/content/peerconnection/endtoend-encryption/ with more dumping and after disabling the track.master
|
|
||
314 |
|
314 |
|
315 |
|
315 |
|
316 |
|
316 |
|
|
317 |
|
|
|
318 |
|
|
|
319 |
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
317 |
|
324 |
|
318 |
|
325 |
|
319 |
|
326 |
|