Using default video codec 120 since FF dosn't seem to support payload type switching for VP8

canary
WolverinDEV 2020-11-16 00:02:47 +01:00
parent b23655dea3
commit 10ed00dd19
2 changed files with 6 additions and 6 deletions

View File

@ -116,15 +116,15 @@ class CommandHandler extends AbstractCommandHandler {
type: "offer"
}).then(() => this.handle["peer"].createAnswer())
.then(async answer => {
if(RTCConnection.kEnableSdpTrace) {
logTrace(LogCategory.WEBRTC, tr("Applying local description from remote %s:\n%s"), data.mode, answer.sdp);
}
answer.sdp = this.sdpProcessor.processOutgoingSdp(answer.sdp, "answer");
await this.handle["peer"].setLocalDescription(answer);
return answer;
})
.then(answer => {
if(RTCConnection.kEnableSdpTrace) {
logTrace(LogCategory.WEBRTC, tr("Sending answer to remote %s:\n%s"), data.mode, answer.sdp);
}
answer.sdp = this.sdpProcessor.processOutgoingSdp(answer.sdp, "answer");
answer.sdp = SdpCompressor.compressSdp(answer.sdp, kSdpCompressionMode);
if(RTCConnection.kEnableSdpTrace) {
logTrace(LogCategory.WEBRTC, tr("Patched answer to remote %s:\n%s"), data.mode, answer.sdp);

View File

@ -13,7 +13,7 @@ interface SdpCodec {
/* These MUST be the payloads used by the remote as well */
const OPUS_VOICE_PAYLOAD_TYPE = 111;
const OPUS_MUSIC_PAYLOAD_TYPE = 112;
const VP8_PAYLOAD_TYPE = 101;
const VP8_PAYLOAD_TYPE = 120;
type SdpMedia = {
type: string;