Skip to content

Commit 283af7a

Browse files
committed
fix(JingleSession) Fix high fps screenshare not showing up.
1 parent 62ba126 commit 283af7a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

modules/xmpp/JingleSessionPC.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,12 @@ export default class JingleSessionPC extends JingleSession {
562562
const msid = $(source)
563563
.find('>parameter[name="msid"]')
564564
.attr('value');
565-
const videoType = $(source).attr('videoType');
565+
let videoType = $(source).attr('videoType');
566+
567+
// If the videoType is DESKTOP_HIGH_FPS for remote tracks, we should treat it as DESKTOP.
568+
if (videoType === VideoType.DESKTOP_HIGH_FPS) {
569+
videoType = VideoType.DESKTOP;
570+
}
566571

567572
if (sourceDescription.has(sourceName)) {
568573
sourceDescription.get(sourceName).ssrcList?.push(ssrc);

service/RTC/VideoType.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ export enum VideoType {
1010
/**
1111
* The desktop video type.
1212
*/
13-
DESKTOP = 'desktop'
13+
DESKTOP = 'desktop',
14+
15+
/**
16+
* The high fps desktop video type.
17+
*/
18+
DESKTOP_HIGH_FPS = 'desktop_high_fps'
1419
}

0 commit comments

Comments
 (0)