livekit-client
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -74,3 +74,3 @@ /** | ||
* | ||
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]]) | ||
* args: ([[Track]], [[RemoteTrackPublication]], [[RemoteParticipant]]) | ||
*/ | ||
@@ -77,0 +77,0 @@ TrackUnsubscribed = "trackUnsubscribed", |
@@ -78,3 +78,3 @@ "use strict"; | ||
* | ||
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]]) | ||
* args: ([[Track]], [[RemoteTrackPublication]], [[RemoteParticipant]]) | ||
*/ | ||
@@ -81,0 +81,0 @@ RoomEvent["TrackUnsubscribed"] = "trackUnsubscribed"; |
@@ -25,3 +25,2 @@ import { DataPacket_Kind } from '../../proto/livekit_models'; | ||
setCameraEnabled(enabled: boolean): Promise<void>; | ||
get isCameraEnabled(): boolean; | ||
/** | ||
@@ -33,3 +32,2 @@ * Enable or disable a participant's microphone track. | ||
setMicrophoneEnabled(enabled: boolean): Promise<void>; | ||
get isMicrophoneEnabled(): boolean; | ||
/** | ||
@@ -39,3 +37,2 @@ * Start or stop sharing a participant's screen | ||
setScreenShareEnabled(enabled: boolean): Promise<void>; | ||
get isScreenShareEnabled(): boolean; | ||
/** | ||
@@ -42,0 +39,0 @@ * Enable or disable publishing for a track by source. This serves as a simple |
@@ -106,7 +106,2 @@ "use strict"; | ||
} | ||
get isCameraEnabled() { | ||
var _a; | ||
const track = this.getTrack(Track_1.Track.Source.Camera); | ||
return !((_a = track === null || track === void 0 ? void 0 : track.isMuted) !== null && _a !== void 0 ? _a : true); | ||
} | ||
/** | ||
@@ -120,7 +115,2 @@ * Enable or disable a participant's microphone track. | ||
} | ||
get isMicrophoneEnabled() { | ||
var _a; | ||
const track = this.getTrack(Track_1.Track.Source.Microphone); | ||
return !((_a = track === null || track === void 0 ? void 0 : track.isMuted) !== null && _a !== void 0 ? _a : true); | ||
} | ||
/** | ||
@@ -132,6 +122,2 @@ * Start or stop sharing a participant's screen | ||
} | ||
get isScreenShareEnabled() { | ||
const track = this.getTrack(Track_1.Track.Source.ScreenShare); | ||
return !!track; | ||
} | ||
/** | ||
@@ -138,0 +124,0 @@ * Enable or disable publishing for a track by source. This serves as a simple |
@@ -45,2 +45,5 @@ /// <reference types="node" /> | ||
getTrackByName(name: string): TrackPublication | undefined; | ||
get isCameraEnabled(): boolean; | ||
get isMicrophoneEnabled(): boolean; | ||
get isScreenShareEnabled(): boolean; | ||
/** when participant joined the room */ | ||
@@ -47,0 +50,0 @@ get joinedAt(): Date | undefined; |
@@ -62,2 +62,16 @@ "use strict"; | ||
} | ||
get isCameraEnabled() { | ||
var _a; | ||
const track = this.getTrack(Track_1.Track.Source.Camera); | ||
return !((_a = track === null || track === void 0 ? void 0 : track.isMuted) !== null && _a !== void 0 ? _a : true); | ||
} | ||
get isMicrophoneEnabled() { | ||
var _a; | ||
const track = this.getTrack(Track_1.Track.Source.Microphone); | ||
return !((_a = track === null || track === void 0 ? void 0 : track.isMuted) !== null && _a !== void 0 ? _a : true); | ||
} | ||
get isScreenShareEnabled() { | ||
const track = this.getTrack(Track_1.Track.Source.ScreenShare); | ||
return !!track; | ||
} | ||
/** when participant joined the room */ | ||
@@ -64,0 +78,0 @@ get joinedAt() { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.13.0"; | ||
export declare const version = "0.13.1"; | ||
export declare const protocolVersion = 4; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.protocolVersion = exports.version = void 0; | ||
exports.version = '0.13.0'; | ||
exports.version = '0.13.1'; | ||
exports.protocolVersion = 4; | ||
//# sourceMappingURL=version.js.map |
@@ -7,2 +7,3 @@ import { | ||
RemoteTrack, | ||
RemoteTrackPublication, | ||
Room, | ||
@@ -63,2 +64,3 @@ RoomEvent, | ||
track: RemoteTrack | LocalTrack, | ||
pub?: RemoteTrackPublication, | ||
participant?: Participant, | ||
@@ -126,4 +128,4 @@ ) { | ||
}); | ||
participant.on(ParticipantEvent.TrackUnsubscribed, (track) => { | ||
trackUnsubscribed(track, participant); | ||
participant.on(ParticipantEvent.TrackUnsubscribed, (track, pub) => { | ||
trackUnsubscribed(track, pub, participant); | ||
}); | ||
@@ -130,0 +132,0 @@ |
{ | ||
"name": "livekit-client", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "JavaScript/TypeScript client SDK for LiveKit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
563553
8913