We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df95ce3 + d697bdc commit dd7130dCopy full SHA for dd7130d
www/video-rtc.js
@@ -580,7 +580,11 @@ export class VideoRTC extends HTMLElement {
580
581
/** @type {MediaStream} */
582
const stream = video2.srcObject;
583
- if (stream.getVideoTracks().length > 0) rtcPriority += 0x220;
+ if (stream.getVideoTracks().length > 0) {
584
+ // not the best, but a pretty simple way to check a codec
585
+ const isH265Supported = this.pc.remoteDescription.sdp.includes('H265/90000');
586
+ rtcPriority += isH265Supported ? 0x240 : 0x220;
587
+ }
588
if (stream.getAudioTracks().length > 0) rtcPriority += 0x102;
589
590
if (this.mseCodecs.indexOf('hvc1.') >= 0) msePriority += 0x230;
0 commit comments