Using default video codec 120 since FF dosn't seem to support payload type switching for VP8
This commit is contained in:
parent
b23655dea3
commit
10ed00dd19
2 changed files with 6 additions and 6 deletions
|
@ -116,15 +116,15 @@ class CommandHandler extends AbstractCommandHandler {
|
||||||
type: "offer"
|
type: "offer"
|
||||||
}).then(() => this.handle["peer"].createAnswer())
|
}).then(() => this.handle["peer"].createAnswer())
|
||||||
.then(async answer => {
|
.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);
|
await this.handle["peer"].setLocalDescription(answer);
|
||||||
return answer;
|
return answer;
|
||||||
})
|
})
|
||||||
.then(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);
|
answer.sdp = SdpCompressor.compressSdp(answer.sdp, kSdpCompressionMode);
|
||||||
if(RTCConnection.kEnableSdpTrace) {
|
if(RTCConnection.kEnableSdpTrace) {
|
||||||
logTrace(LogCategory.WEBRTC, tr("Patched answer to remote %s:\n%s"), data.mode, answer.sdp);
|
logTrace(LogCategory.WEBRTC, tr("Patched answer to remote %s:\n%s"), data.mode, answer.sdp);
|
||||||
|
|
|
@ -13,7 +13,7 @@ interface SdpCodec {
|
||||||
/* These MUST be the payloads used by the remote as well */
|
/* These MUST be the payloads used by the remote as well */
|
||||||
const OPUS_VOICE_PAYLOAD_TYPE = 111;
|
const OPUS_VOICE_PAYLOAD_TYPE = 111;
|
||||||
const OPUS_MUSIC_PAYLOAD_TYPE = 112;
|
const OPUS_MUSIC_PAYLOAD_TYPE = 112;
|
||||||
const VP8_PAYLOAD_TYPE = 101;
|
const VP8_PAYLOAD_TYPE = 120;
|
||||||
|
|
||||||
type SdpMedia = {
|
type SdpMedia = {
|
||||||
type: string;
|
type: string;
|
||||||
|
|
Loading…
Add table
Reference in a new issue