Skip to content

Commit c160041

Browse files
committed
conflicts fixed
1 parent d1a5071 commit c160041

File tree

4 files changed

+34
-29
lines changed

4 files changed

+34
-29
lines changed

JitsiConference.ts

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -834,33 +834,6 @@ export default class JitsiConference extends Listenable {
834834
}));
835835
}
836836

837-
/**
838-
* Restarts all active media sessions.
839-
*
840-
* @returns {void}
841-
* @internal
842-
*/
843-
_restartMediaSessions(): void {
844-
if (this.p2pJingleSession) {
845-
this._stopP2PSession({
846-
reasonDescription: 'restart',
847-
requestRestart: true
848-
});
849-
}
850-
851-
if (this.jvbJingleSession) {
852-
this._stopJvbSession({
853-
reason: 'success',
854-
reasonDescription: 'restart required',
855-
requestRestart: true,
856-
sendSessionTerminate: true
857-
});
858-
}
859-
860-
this._maybeStartOrStopP2P(false);
861-
}
862-
863-
864837
/**
865838
* Fires TRACK_AUDIO_LEVEL_CHANGED change conference event (for local tracks).
866839
* @param {number} audioLevel - The audio level.
@@ -2432,6 +2405,32 @@ export default class JitsiConference extends Listenable {
24322405
return process;
24332406
}
24342407

2408+
/**
2409+
* Restarts all active media sessions.
2410+
*
2411+
* @returns {void}
2412+
* @internal
2413+
*/
2414+
_restartMediaSessions(): void {
2415+
if (this.p2pJingleSession) {
2416+
this._stopP2PSession({
2417+
reasonDescription: 'restart',
2418+
requestRestart: true
2419+
});
2420+
}
2421+
2422+
if (this.jvbJingleSession) {
2423+
this._stopJvbSession({
2424+
reason: 'success',
2425+
reasonDescription: 'restart required',
2426+
requestRestart: true,
2427+
sendSessionTerminate: true
2428+
});
2429+
}
2430+
2431+
this._maybeStartOrStopP2P(false);
2432+
}
2433+
24352434
/**
24362435
* Check if joined to the conference.
24372436
* @returns {boolean} True if joined, false otherwise.

globals.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ declare global {
1616
writable: WritableStream<RTCEncodedAudioFrame | RTCEncodedVideoFrame>;
1717
}
1818
}
19+
interface RTCRtpSender {
20+
createEncodedStreams?: () => {
21+
readable: ReadableStream<RTCEncodedAudioFrame | RTCEncodedVideoFrame>;
22+
writable: WritableStream<RTCEncodedAudioFrame | RTCEncodedVideoFrame>;
23+
}
24+
}
1925
interface MediaStream {
2026
oninactive?: ((this: MediaStream, ev: Event) => void) | ((this: MediaStreamTrack, ev: Event) => void) | null;
2127
}

modules/e2ee/KeyHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getLogger } from '@jitsi/logger';
22

3+
import JitsiConference from '../../JitsiConference';
34
import { JitsiConferenceEvents } from '../../JitsiConferenceEvents';
45
import { RTCEvents } from '../../service/RTC/RTCEvents';
5-
import JitsiConference from '../../JitsiConference';
66
import JitsiLocalTrack from '../RTC/JitsiLocalTrack';
77
import JitsiRemoteTrack from '../RTC/JitsiRemoteTrack';
88
import TraceablePeerConnection from '../RTC/TraceablePeerConnection';

modules/e2ee/ManagedKeyHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getLogger } from '@jitsi/logger';
22
import { debounce } from 'lodash-es';
33

4-
import { JitsiConferenceEvents } from '../../JitsiConferenceEvents';
54
import JitsiConference from '../../JitsiConference';
5+
import { JitsiConferenceEvents } from '../../JitsiConferenceEvents';
66
import JitsiParticipant from '../../JitsiParticipant';
77

88
import { KeyHandler } from './KeyHandler';

0 commit comments

Comments
 (0)