Skip to content

Commit 22e0f16

Browse files
authored
Merge branch 'jitsi:master' into RTC
2 parents f971ac9 + d1e60d2 commit 22e0f16

File tree

7 files changed

+372
-294
lines changed

7 files changed

+372
-294
lines changed

JitsiConference.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ import { XMPPEvents } from './service/xmpp/XMPPEvents';
9393

9494
export interface IConferenceOptions {
9595
config: {
96+
_p2pConnStatusRtcMuteTimeout?: number;
97+
_peerConnStatusOutOfLastNTimeout?: number;
98+
_peerConnStatusRtcMuteTimeout?: number;
9699
analytics?: {
97100
rtcstatsEnabled?: boolean;
98101
rtcstatsEndpoint?: string;
@@ -575,7 +578,7 @@ export default class JitsiConference extends Listenable {
575578
this._statsCurrentId = config.statisticsId ?? Settings.callStatsUserName;
576579
this.room = this._xmpp.createRoom(
577580
this.options.name, {
578-
customDomain: this.options.customDomain,
581+
...config,
579582
statsId: this._statsCurrentId
580583
},
581584
JitsiConference.resourceCreator
@@ -2078,7 +2081,7 @@ export default class JitsiConference extends Listenable {
20782081
_sendBridgeVideoTypeMessage(localtrack: JitsiLocalTrack): void {
20792082
let videoType = !localtrack || localtrack.isMuted() ? BridgeVideoType.NONE : localtrack.getVideoType();
20802083

2081-
if (videoType === BridgeVideoType.DESKTOP && this._desktopSharingFrameRate > SS_DEFAULT_FRAME_RATE) {
2084+
if (videoType === VideoType.DESKTOP && this._desktopSharingFrameRate > SS_DEFAULT_FRAME_RATE) {
20822085
videoType = BridgeVideoType.DESKTOP_HIGH_FPS;
20832086
}
20842087

@@ -2373,12 +2376,13 @@ export default class JitsiConference extends Listenable {
23732376

23742377
// Let the caller know that the XMPP login was successful.
23752378
onLoginSuccessful?.();
2379+
const { config } = this.options;
23762380

23772381
// Now authenticate with Jicofo and get a new session ID.
23782382
const room = xmpp.createRoom(
23792383
this.options.name,
23802384
{
2381-
customDomain: this.options.customDomain,
2385+
...config,
23822386
statsId: this._statsCurrentId
23832387
},
23842388
onCreateResource

globals.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ declare global {
1616
writable: WritableStream<RTCEncodedAudioFrame | RTCEncodedVideoFrame>;
1717
}
1818
}
19+
interface MediaStream {
20+
oninactive?: ((this: MediaStream, ev: Event) => void) | ((this: MediaStreamTrack, ev: Event) => void) | null;
21+
}
1922
}

modules/RTC/JitsiLocalTrack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ export default class JitsiLocalTrack extends JitsiTrack {
511511
= RTCUtils.obtainAudioAndVideoPermissions({
512512

513513
...streamOptions,
514-
constraints: { video: this._constraints } } as any) as Promise<IStreamInfo[]>;
514+
constraints: { video: this._constraints } }) as Promise<IStreamInfo[]>;
515515

516516
promise = promise.then((streamsInfo: IStreamInfo[]) => {
517517
const streamInfo = streamsInfo.find(info => info.track.kind === this.getType());

0 commit comments

Comments
 (0)