Removed support for H265 for IOs browser (they don't support our profile id)

master
WolverinDEV 2021-01-15 23:37:02 +01:00
parent c2bfa7b318
commit 64a28ffa4c
1 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,7 @@ export class SdpProcessor {
rate: 90000, rate: 90000,
rtcpFb: [ "nack", "nack pli", "ccm fir", "transport-cc" ], rtcpFb: [ "nack", "nack pli", "ccm fir", "transport-cc" ],
}, },
{ window.detectedBrowser.name.indexOf("ios") === -1 && window.detectedBrowser.name !== "safari" ? {
payload: H264_PAYLOAD_TYPE, payload: H264_PAYLOAD_TYPE,
codec: "H264", codec: "H264",
rate: 90000, rate: 90000,
@ -60,7 +60,7 @@ export class SdpProcessor {
"profile-level-id": "42001f", "profile-level-id": "42001f",
"max-fr": 30, "max-fr": 30,
} }
}, } : undefined,
]; ];
private rtpRemoteChannelMapping: {[key: string]: number}; private rtpRemoteChannelMapping: {[key: string]: number};
@ -150,7 +150,11 @@ export class SdpProcessor {
media.rtcpFb = []; media.rtcpFb = [];
media.rtcpFbTrrInt = []; media.rtcpFbTrrInt = [];
for(let codec of (media.type === "audio" ? this.kAudioCodecs : this.kVideoCodecs)) { for(const codec of (media.type === "audio" ? this.kAudioCodecs : this.kVideoCodecs)) {
if(!codec) {
continue;
}
media.rtp.push({ media.rtp.push({
payload: codec.payload, payload: codec.payload,
codec: codec.codec, codec: codec.codec,