livekit-client 2.13.3 → 2.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/livekit-client.esm.mjs +37 -2
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/room/attribute-typings.d.ts +35 -0
- package/dist/src/room/attribute-typings.d.ts.map +1 -0
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/utils/cloneDeep.d.ts.map +1 -1
- package/dist/ts4.2/src/index.d.ts +4 -1
- package/dist/ts4.2/src/room/attribute-typings.d.ts +35 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/room/attribute-typings.ts +61 -0
- package/src/room/participant/LocalParticipant.ts +2 -0
- package/src/utils/cloneDeep.ts +4 -0
@@ -11192,6 +11192,10 @@ function cloneDeep(value) {
|
|
11192
11192
|
return value;
|
11193
11193
|
}
|
11194
11194
|
if (typeof structuredClone === 'function') {
|
11195
|
+
if (typeof value === 'object' && value !== null) {
|
11196
|
+
// ensure that the value is not a proxy by spreading it
|
11197
|
+
return structuredClone(Object.assign({}, value));
|
11198
|
+
}
|
11195
11199
|
return structuredClone(value);
|
11196
11200
|
} else {
|
11197
11201
|
return JSON.parse(JSON.stringify(value));
|
@@ -11266,7 +11270,7 @@ function getOSVersion(ua) {
|
|
11266
11270
|
return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
|
11267
11271
|
}
|
11268
11272
|
|
11269
|
-
var version$1 = "2.13.
|
11273
|
+
var version$1 = "2.13.4";
|
11270
11274
|
|
11271
11275
|
const version = version$1;
|
11272
11276
|
const protocolVersion = 16;
|
@@ -20393,6 +20397,7 @@ class LocalParticipant extends Participant {
|
|
20393
20397
|
}
|
20394
20398
|
});
|
20395
20399
|
this.engine.on(EngineEvent.Connected, this.handleReconnected).on(EngineEvent.SignalConnected, this.handleSignalConnected).on(EngineEvent.SignalRestarted, this.handleReconnected).on(EngineEvent.SignalResumed, this.handleReconnected).on(EngineEvent.Restarting, this.handleReconnecting).on(EngineEvent.Resuming, this.handleReconnecting).on(EngineEvent.LocalTrackUnpublished, this.handleLocalTrackUnpublished).on(EngineEvent.SubscribedQualityUpdate, this.handleSubscribedQualityUpdate).on(EngineEvent.Disconnected, this.handleDisconnected).on(EngineEvent.SignalRequestResponse, this.handleSignalRequestResponse).on(EngineEvent.DataPacketReceived, this.handleDataPacket);
|
20400
|
+
this.signalConnectedFuture = undefined;
|
20396
20401
|
}
|
20397
20402
|
/**
|
20398
20403
|
* Sets and updates the metadata of the local participant.
|
@@ -24523,6 +24528,36 @@ function mapArgs(args) {
|
|
24523
24528
|
});
|
24524
24529
|
}
|
24525
24530
|
|
24531
|
+
// This file was generated from JSON Schema using quicktype, do not modify it directly.
|
24532
|
+
// The code generation lives at https://github.com/livekit/attribute-definitions
|
24533
|
+
//
|
24534
|
+
// To parse this data:
|
24535
|
+
//
|
24536
|
+
// import { Convert, AgentAttributes, TranscriptionAttributes } from "./file";
|
24537
|
+
//
|
24538
|
+
// const agentAttributes = Convert.toAgentAttributes(json);
|
24539
|
+
// const transcriptionAttributes = Convert.toTranscriptionAttributes(json);
|
24540
|
+
// Converts JSON strings to/from your types
|
24541
|
+
class Convert {
|
24542
|
+
static toAgentAttributes(json) {
|
24543
|
+
return JSON.parse(json);
|
24544
|
+
}
|
24545
|
+
static agentAttributesToJson(value) {
|
24546
|
+
return JSON.stringify(value);
|
24547
|
+
}
|
24548
|
+
static toTranscriptionAttributes(json) {
|
24549
|
+
return JSON.parse(json);
|
24550
|
+
}
|
24551
|
+
static transcriptionAttributesToJson(value) {
|
24552
|
+
return JSON.stringify(value);
|
24553
|
+
}
|
24554
|
+
}
|
24555
|
+
|
24556
|
+
var attributeTypings = /*#__PURE__*/Object.freeze({
|
24557
|
+
__proto__: null,
|
24558
|
+
Convert: Convert
|
24559
|
+
});
|
24560
|
+
|
24526
24561
|
var CheckStatus;
|
24527
24562
|
(function (CheckStatus) {
|
24528
24563
|
CheckStatus[CheckStatus["IDLE"] = 0] = "IDLE";
|
@@ -25337,5 +25372,5 @@ function isFacingModeValue(item) {
|
|
25337
25372
|
return item === undefined || allowedValues.includes(item);
|
25338
25373
|
}
|
25339
25374
|
|
25340
|
-
export { AudioPresets, BackupCodecPolicy, BaseKeyProvider, CheckStatus, Checker, ConnectionCheck, ConnectionError, ConnectionErrorReason, ConnectionQuality, ConnectionState, CriticalTimers, CryptorError, CryptorErrorReason, CryptorEvent, DataPacket_Kind, DefaultReconnectPolicy, DeviceUnsupportedError, DisconnectReason, EncryptionEvent, EngineEvent, ExternalE2EEKeyProvider, KeyHandlerEvent, KeyProviderEvent, LivekitError, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalTrackRecorder, LocalVideoTrack, LogLevel, LoggerNames, MediaDeviceFailure, _ as Mutex, NegotiationError, Participant, ParticipantEvent, ParticipantInfo_Kind as ParticipantKind, PublishDataError, PublishTrackError, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, RoomEvent, RpcError, ScreenSharePresets, SignalRequestError, SubscriptionError, Track, TrackEvent, TrackInvalidError, TrackPublication, TrackType, UnexpectedConnectionState, UnsupportedServer, VideoPreset, VideoPresets, VideoPresets43, VideoQuality, attachToElement, compareVersions, createAudioAnalyser, createE2EEKey, createKeyMaterialFromBuffer, createKeyMaterialFromString, createLocalAudioTrack, createLocalScreenTracks, createLocalTracks, createLocalVideoTrack, deriveKeys, detachTrack, facingModeFromDeviceLabel, facingModeFromLocalTrack, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, importKey, isAudioTrack, isBackupCodec, isBrowserSupported, isE2EESupported, isInsertableStreamSupported, isLocalParticipant, isLocalTrack, isRemoteParticipant, isRemoteTrack, isScriptTransformSupported, isVideoFrame, isVideoTrack, needsRbspUnescaping, parseRbsp, protocolVersion, ratchet, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, version, videoCodecs, writeRbsp };
|
25375
|
+
export { AudioPresets, BackupCodecPolicy, BaseKeyProvider, CheckStatus, Checker, ConnectionCheck, ConnectionError, ConnectionErrorReason, ConnectionQuality, ConnectionState, CriticalTimers, CryptorError, CryptorErrorReason, CryptorEvent, DataPacket_Kind, DefaultReconnectPolicy, DeviceUnsupportedError, DisconnectReason, EncryptionEvent, EngineEvent, ExternalE2EEKeyProvider, KeyHandlerEvent, KeyProviderEvent, LivekitError, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalTrackRecorder, LocalVideoTrack, LogLevel, LoggerNames, MediaDeviceFailure, _ as Mutex, NegotiationError, Participant, ParticipantEvent, ParticipantInfo_Kind as ParticipantKind, PublishDataError, PublishTrackError, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, RoomEvent, RpcError, ScreenSharePresets, SignalRequestError, SubscriptionError, Track, TrackEvent, TrackInvalidError, TrackPublication, TrackType, UnexpectedConnectionState, UnsupportedServer, VideoPreset, VideoPresets, VideoPresets43, VideoQuality, attachToElement, attributeTypings as attributes, compareVersions, createAudioAnalyser, createE2EEKey, createKeyMaterialFromBuffer, createKeyMaterialFromString, createLocalAudioTrack, createLocalScreenTracks, createLocalTracks, createLocalVideoTrack, deriveKeys, detachTrack, facingModeFromDeviceLabel, facingModeFromLocalTrack, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, importKey, isAudioTrack, isBackupCodec, isBrowserSupported, isE2EESupported, isInsertableStreamSupported, isLocalParticipant, isLocalTrack, isRemoteParticipant, isRemoteTrack, isScriptTransformSupported, isVideoFrame, isVideoTrack, needsRbspUnescaping, parseRbsp, protocolVersion, ratchet, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, version, videoCodecs, writeRbsp };
|
25341
25376
|
//# sourceMappingURL=livekit-client.esm.mjs.map
|