Skip to content

Commit

Permalink
Expose track.conference field in types
Browse files Browse the repository at this point in the history
Local and remote Jitsi tracks expose a reference to the
`JitsiConference` through `track.conference`. This was not available in
the TypeScript definitions.

Local tracks are initialized with `conference = null` but will be set
later, assuming the caller adds the track to a conference. Remote tracks
are always associated with a conference.
  • Loading branch information
jesse-gibson-dd authored and paweldomas committed Apr 29, 2024
1 parent 7a5381f commit 16b28a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/hand-crafted/modules/RTC/JitsiRemoteTrack.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import JitsiConference from '../../JitsiConference';

export default class JitsiRemoteTrack extends JitsiTrack {
constructor(rtc: RTC, conference: JitsiConference, ownerEndpointId: string, stream: MediaStream, track: MediaStreamTrack, mediaType: any, videoType: any, ssrc: number, muted: boolean, isP2P: boolean);
readonly conference: JitsiConference;
setMute: ( value: boolean ) => void;
isMuted: () => boolean;
getParticipantId: () => string;
Expand Down
1 change: 1 addition & 0 deletions types/hand-crafted/modules/RTC/JitsiTrack.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import TraceablePeerConnection from './TraceablePeerConnection';

export default class JitsiTrack extends EventEmitter {
constructor( conference: JitsiConference, stream: unknown, track: unknown, streamInactiveHandler: unknown, trackMediaType: MediaType, videoType: VideoType ); // TODO:
readonly conference: null | JitsiConference;
disposed: boolean;
getVideoType: () => VideoType;
getType: () => MediaType;
Expand Down

0 comments on commit 16b28a7

Please sign in to comment.