New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

livekit-client

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livekit-client - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

11

dist/room/events.d.ts

@@ -64,11 +64,11 @@ /**

/**
* A track that was muted by [[RemoteParticipant]]
* A track that was muted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
*
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
* args: ([[TrackPublication]], [[Participant]])
*/
TrackMuted = "trackMuted",
/**
* A track that was unmuted by [[RemoteParticipant]]
* A track that was unmuted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
*
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
* args: ([[TrackPublication]], [[Participant]])
*/

@@ -110,3 +110,4 @@ TrackUnmuted = "trackUnmuted",

MetadataChanged = "metadataChanged",
DataReceived = "dataReceived"
DataReceived = "dataReceived",
IsSpeakingChanged = "isSpeakingChanged"
}

@@ -113,0 +114,0 @@ /** @internal */

@@ -68,11 +68,11 @@ "use strict";

/**
* A track that was muted by [[RemoteParticipant]]
* A track that was muted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
*
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
* args: ([[TrackPublication]], [[Participant]])
*/
RoomEvent["TrackMuted"] = "trackMuted";
/**
* A track that was unmuted by [[RemoteParticipant]]
* A track that was unmuted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
*
* args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
* args: ([[TrackPublication]], [[Participant]])
*/

@@ -116,2 +116,3 @@ RoomEvent["TrackUnmuted"] = "trackUnmuted";

ParticipantEvent["DataReceived"] = "dataReceived";
ParticipantEvent["IsSpeakingChanged"] = "isSpeakingChanged";
})(ParticipantEvent = exports.ParticipantEvent || (exports.ParticipantEvent = {}));

@@ -118,0 +119,0 @@ /** @internal */

@@ -19,2 +19,4 @@ /// <reference types="node" />

audioLevel: number;
/** if participant is currently speaking */
isSpeaking: boolean;
/** server assigned unique id */

@@ -35,3 +37,5 @@ sid: string;

setMetadata(md: string): void;
/** @internal */
setIsSpeaking(speaking: boolean): void;
protected addTrackPublication(publication: TrackPublication): void;
}

@@ -13,2 +13,4 @@ "use strict";

this.audioLevel = 0;
/** if participant is currently speaking */
this.isSpeaking = false;
this.sid = sid;

@@ -46,2 +48,10 @@ this.identity = identity;

}
/** @internal */
setIsSpeaking(speaking) {
if (speaking === this.isSpeaking) {
return;
}
this.isSpeaking = speaking;
this.emit(events_2.ParticipantEvent.IsSpeakingChanged, speaking);
}
addTrackPublication(publication) {

@@ -48,0 +58,0 @@ // forward publication driven events

@@ -101,2 +101,3 @@ "use strict";

this.localParticipant.audioLevel = speaker.level;
this.localParticipant.setIsSpeaking(true);
activeSpeakers.push(this.localParticipant);

@@ -108,2 +109,3 @@ }

p.audioLevel = speaker.level;
p.setIsSpeaking(true);
activeSpeakers.push(p);

@@ -115,2 +117,3 @@ }

this.localParticipant.audioLevel = 0;
this.localParticipant.setIsSpeaking(false);
}

@@ -120,2 +123,3 @@ this.participants.forEach((p) => {

p.audioLevel = 0;
p.setIsSpeaking(false);
}

@@ -122,0 +126,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalTrackPublication = void 0;
const LocalAudioTrack_1 = require("./LocalAudioTrack");
const LocalVideoTrack_1 = require("./LocalVideoTrack");
const TrackPublication_1 = require("./TrackPublication");

@@ -14,6 +12,6 @@ const utils_1 = require("./utils");

get isMuted() {
if (!this.track) {
return false;
if (this.track) {
return this.track.isMuted;
}
return this.track.isMuted;
return super.isMuted;
}

@@ -24,4 +22,3 @@ /**

mute() {
if (this.track instanceof LocalVideoTrack_1.LocalVideoTrack ||
this.track instanceof LocalAudioTrack_1.LocalAudioTrack) {
if (this.track) {
utils_1.setTrackMuted(this.track, true);

@@ -34,4 +31,3 @@ }

unmute() {
if (this.track instanceof LocalVideoTrack_1.LocalVideoTrack ||
this.track instanceof LocalAudioTrack_1.LocalAudioTrack) {
if (this.track) {
utils_1.setTrackMuted(this.track, false);

@@ -38,0 +34,0 @@ }

@@ -8,3 +8,2 @@ import { TrackInfo } from '../../proto/livekit_models';

track?: RemoteTrack;
isMuted: boolean;
protected subscribe: boolean;

@@ -11,0 +10,0 @@ protected disabled: boolean;

@@ -12,3 +12,2 @@ "use strict";

super(kind, id, name);
this.isMuted = false;
this.subscribe = false;

@@ -58,3 +57,3 @@ this.disabled = false;

super.updateInfo(info);
this.isMuted = info.muted;
this._isMuted = info.muted;
if (this.track instanceof RemoteVideoTrack_1.RemoteVideoTrack ||

@@ -61,0 +60,0 @@ this.track instanceof RemoteAudioTrack_1.RemoteAudioTrack) {

@@ -13,3 +13,5 @@ /// <reference types="node" />

track?: Track;
protected _isMuted: boolean;
constructor(kind: Track.Kind, id: string, name: string);
get isMuted(): boolean;
/** @internal */

@@ -16,0 +18,0 @@ setTrack(track?: Track): void;

@@ -11,2 +11,3 @@ "use strict";

super();
this._isMuted = false;
this.kind = kind;

@@ -16,2 +17,8 @@ this.trackSid = id;

}
get isMuted() {
if (!this.track) {
return false;
}
return this._isMuted;
}
/** @internal */

@@ -18,0 +25,0 @@ setTrack(track) {

@@ -1,2 +0,2 @@

export declare const version = "0.7.3";
export declare const version = "0.7.4";
export declare const protocolVersion = 2;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.protocolVersion = exports.version = void 0;
exports.version = '0.7.3';
exports.version = '0.7.4';
exports.protocolVersion = 2;
//# sourceMappingURL=version.js.map
{
"name": "livekit-client",
"version": "0.7.3",
"version": "0.7.4",
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc