livekit-client 1.7.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +21 -1
- package/dist/livekit-client.esm.mjs +14241 -12994
- 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/api/SignalClient.d.ts +11 -10
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/src/proto/livekit_models.d.ts +37 -0
- package/dist/src/proto/livekit_models.d.ts.map +1 -1
- package/dist/src/proto/livekit_rtc.d.ts +347 -75
- package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +12 -3
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/src/room/ReconnectPolicy.d.ts.map +1 -1
- package/dist/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/src/room/RegionUrlProvider.d.ts.map +1 -0
- package/dist/src/room/Room.d.ts +23 -15
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +2 -1
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +23 -2
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +14 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +4 -2
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +2 -2
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +4 -3
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +3 -1
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +5 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +4 -0
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +14 -10
- package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +1 -1
- package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +1 -1
- package/dist/ts4.2/src/index.d.ts +7 -6
- package/dist/ts4.2/src/proto/livekit_models.d.ts +37 -0
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +380 -84
- package/dist/ts4.2/src/room/RTCEngine.d.ts +12 -3
- package/dist/ts4.2/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/ts4.2/src/room/Room.d.ts +23 -15
- package/dist/ts4.2/src/room/errors.d.ts +2 -1
- package/dist/ts4.2/src/room/events.d.ts +23 -2
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +14 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +4 -2
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -2
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +4 -3
- package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +3 -1
- package/dist/ts4.2/src/room/types.d.ts +5 -0
- package/dist/ts4.2/src/room/utils.d.ts +4 -0
- package/package.json +21 -20
- package/src/api/SignalClient.ts +41 -29
- package/src/connectionHelper/ConnectionCheck.ts +1 -2
- package/src/connectionHelper/checks/Checker.ts +1 -1
- package/src/connectionHelper/checks/reconnect.ts +1 -1
- package/src/index.ts +9 -8
- package/src/proto/google/protobuf/timestamp.ts +15 -6
- package/src/proto/livekit_models.ts +917 -221
- package/src/proto/livekit_rtc.ts +1053 -279
- package/src/room/RTCEngine.ts +171 -47
- package/src/room/ReconnectPolicy.ts +2 -0
- package/src/room/RegionUrlProvider.ts +73 -0
- package/src/room/Room.ts +278 -177
- package/src/room/errors.ts +1 -0
- package/src/room/events.ts +24 -0
- package/src/room/participant/LocalParticipant.ts +30 -7
- package/src/room/participant/Participant.ts +27 -3
- package/src/room/participant/RemoteParticipant.ts +6 -3
- package/src/room/participant/publishUtils.test.ts +1 -1
- package/src/room/participant/publishUtils.ts +1 -1
- package/src/room/track/LocalAudioTrack.ts +14 -7
- package/src/room/track/LocalTrack.ts +23 -9
- package/src/room/track/LocalTrackPublication.ts +1 -1
- package/src/room/track/LocalVideoTrack.ts +15 -9
- package/src/room/track/RemoteAudioTrack.ts +1 -1
- package/src/room/track/RemoteTrackPublication.ts +4 -3
- package/src/room/track/RemoteVideoTrack.test.ts +1 -1
- package/src/room/track/RemoteVideoTrack.ts +8 -7
- package/src/room/track/Track.ts +46 -31
- package/src/room/track/create.ts +2 -2
- package/src/room/types.ts +17 -0
- package/src/room/utils.ts +53 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/RemoteParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"RemoteParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/RemoteParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAKlE,OAAO,sBAAsB,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,WAAW,EAAE,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAEjD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAEjD,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAE5C,YAAY,EAAE,YAAY,CAAC;IAE3B,OAAO,CAAC,MAAM,CAAC,CAAS;IAExB,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,WAAW,CAAC,CAAqB;IAEz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,GAAG,IAAI,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO;CAIX"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publishUtils.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/publishUtils.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,eAAe,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"publishUtils.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/publishUtils.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,eAAe,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EACL,gBAAgB,EAEhB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAE1B,gBAAgB;AAChB,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,CAAC,EAAE,qBAAqB,GAClC,eAAe,GAAG,eAAe,CASnC;AAGD,eAAO,MAAM,UAAU,eAA8B,CAAC;AAGtD,eAAO,MAAM,SAAS,eAAgC,CAAC;AAGvD,eAAO,MAAM,kBAAkB,eAAoC,CAAC;AAGpE,eAAO,MAAM,0BAA0B,eAAyC,CAAC;AAGjF,eAAO,MAAM,yBAAyB,eAA6C,CAAC;AAGpF,eAAO,MAAM,yCAAyC,eAAgB,WAAW,kBAiBhF,CAAC;AAwBF,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,OAAO,EACtB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,mBAAmB,GAC5B,wBAAwB,EAAE,CAgG5B;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,eAAe,EACtB,UAAU,EAAE,gBAAgB,EAC5B,IAAI,EAAE,mBAAmB,0CA4B1B;AAGD,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,UAAU,GACjB,aAAa,CA4Bf;AAGD,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CASf;AAGD,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,OAAO,EACtB,QAAQ,EAAE,WAAW,GACpB,WAAW,EAAE,CAUf;AA0BD,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,6BAelE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,UAAU,CAAC;AAE9E,OAAO,UAAU,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,UAAU,CAAC;AAE9E,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGrD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO;IAMpB,WAAW,CAAC,QAAQ,EAAE,kBAAkB;IAUxC,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAgBhC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAmBlC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC;IAOjF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import type { VideoCodec } from './options';
|
1
|
+
import { Mutex } from '../utils';
|
3
2
|
import { Track } from './Track';
|
3
|
+
import type { VideoCodec } from './options';
|
4
4
|
export default abstract class LocalTrack extends Track {
|
5
5
|
/** @internal */
|
6
6
|
sender?: RTCRtpSender;
|
@@ -9,7 +9,8 @@ export default abstract class LocalTrack extends Track {
|
|
9
9
|
protected constraints: MediaTrackConstraints;
|
10
10
|
protected reacquireTrack: boolean;
|
11
11
|
protected providedByUser: boolean;
|
12
|
-
protected
|
12
|
+
protected muteLock: Mutex;
|
13
|
+
protected pauseUpstreamLock: Mutex;
|
13
14
|
/**
|
14
15
|
*
|
15
16
|
* @param mediaTrack
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAKN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAgC,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAW,SAAQ,KAAK;IACpD,gBAAgB;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,gBAAgB;IAChB,KAAK,CAAC,EAAE,UA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it_models';
|
|
2
2
|
import type LocalAudioTrack from './LocalAudioTrack';
|
3
3
|
import type LocalTrack from './LocalTrack';
|
4
4
|
import type LocalVideoTrack from './LocalVideoTrack';
|
5
|
-
import type { TrackPublishOptions } from './options';
|
6
5
|
import type { Track } from './Track';
|
7
6
|
import { TrackPublication } from './TrackPublication';
|
7
|
+
import type { TrackPublishOptions } from './options';
|
8
8
|
export default class LocalTrackPublication extends TrackPublication {
|
9
9
|
track?: LocalTrack;
|
10
10
|
options?: TrackPublishOptions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalTrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrackPublication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"LocalTrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrackPublication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,gBAAgB;IACjE,KAAK,CAAC,EAAE,UAAU,CAAa;IAE/B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAE9B,IAAI,gBAAgB,wBAEnB;gBAEW,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,UAAU;IAO/D,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK;IAYtB,IAAI,OAAO,IAAI,OAAO,CAKrB;IAED,IAAI,UAAU,IAAI,eAAe,GAAG,SAAS,CAE5C;IAED,IAAI,UAAU,IAAI,eAAe,GAAG,SAAS,CAE5C;IAED;;OAEG;IACG,IAAI;IAIV;;OAEG;IACG,MAAM;IAIZ;;;;OAIG;IACG,aAAa;IAInB;;;OAGG;IACG,cAAc;IAIpB,gBAAgB,aAEd;CACH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalVideoTrack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,
|
1
|
+
{"version":3,"file":"LocalVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalVideoTrack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAoC,MAAM,UAAU,CAAC;AAE9E,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGjE,qBAAa,kBAAkB;IAC7B,K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B,CAAC,SAAS,EAAE,iBAAiB,EAAE;IASxD,SAAS,CAAC,aAAa,sBAyBrB;cAEc,0BAA0B;CAO3C;AAqED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAW5D;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,wBAAwB,EAAE,GACrC,UAAU,EAAE,CA2Bd"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AudioReceiverStats } from '../stats';
|
2
|
-
import type { AudioOutputOptions } from './options';
|
3
2
|
import RemoteTrack from './RemoteTrack';
|
3
|
+
import type { AudioOutputOptions } from './options';
|
4
4
|
export default class RemoteAudioTrack extends RemoteTrack {
|
5
5
|
private prevStats?;
|
6
6
|
private elementVolume;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,UAAU,CAAC;AAE9D,OAAO,
|
1
|
+
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAkB,MAAM,UAAU,CAAC;AAE9D,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,SAAS,CAAC,CAAqB;IAEvC,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,QAAQ,CAAC,CAAW;IAE5B,OAAO,CAAC,UAAU,CAAC,CAA6B;IAEhD,OAAO,CAAC,mBAAmB,CAAc;IAEzC,OAAO,CAAC,MAAM,CAAC,CAAS;gBAGtB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,kBAAkB;IAUlC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM;IAWxB;;OAEG;IACH,SAAS,IAAI,MAAM;IAanB;;;OAGG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM;IAahC,MAAM,IAAI,gBAAgB;IAC1B,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAwBnD;;OAEG;IACH,MAAM,IAAI,gBAAgB,EAAE;IAE5B;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAqBnD;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAStD;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE;IAOrC,OAAO,CAAC,eAAe;IAmCvB,OAAO,CAAC,kBAAkB;IAO1B,SAAS,CAAC,eAAe,sBAYvB;cAEc,gBAAgB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;CAyB5E"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TrackInfo, VideoQuality } from '../../proto/livekit_models';
|
2
2
|
import type RemoteTrack from './RemoteTrack';
|
3
|
-
import
|
3
|
+
import { Track } from './Track';
|
4
4
|
import { TrackPublication } from './TrackPublication';
|
5
5
|
export default class RemoteTrackPublication extends TrackPublication {
|
6
6
|
track?: RemoteTrack;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteTrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrackPublication.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,WAAW,MAAM,e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,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU;IAkB/C,WAAW,CAAC,GAAG,EAAE,MAAM;IAiBvB,IAAI,YAAY,IAAI,YAAY,GAAG,SAAS,CAE3C;IAED,gBAAgB;IAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW;IA4B5B,gBAAgB;IAChB,UAAU,CAAC,OAAO,EAAE,OAAO;IAQ3B,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,SAAS;IAW1B,OAAO,CAAC,+BAA+B;IAQvC,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,wBAAwB;IAchC,SAAS,CAAC,WAAW,UAAW,WAAW,UAGzC;IAEF,SAAS,KAAK,gBAAgB,IAAI,OAAO,CAExC;IAED,SAAS,CAAC,sBAAsB,YAAa,OAAO,UAMlD;IAEF,SAAS,CAAC,2BAA2B,eAAgB,MAAM,UAAU,UAMnE;IAGF,eAAe;CAkBhB"}
|
@@ -6,7 +6,7 @@ export default class RemoteVideoTrack extends RemoteTrack {
|
|
6
6
|
private adaptiveStreamSettings?;
|
7
7
|
private lastVisible?;
|
8
8
|
private lastDimensions?;
|
9
|
-
private
|
9
|
+
private isObserved;
|
10
10
|
constructor(mediaTrack: MediaStreamTrack, sid: string, receiver?: RTCRtpReceiver, adaptiveStreamSettings?: AdaptiveStreamSettings);
|
11
11
|
get isAdaptiveStream(): boolean;
|
12
12
|
get mediaStreamTrack(): MediaStreamTrack;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAYA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAItD,MAAM,CAAC,OAAO,OA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AAS,CAAC;IAExC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,OAAO,IAAI,IAAI,CAAC;IAChB,aAAa,IAAI,IAAI,CAAC;CACvB"}
|
@@ -58,10 +58,12 @@ export declare abstract class Track extends Track_base {
|
|
58
58
|
protected enable(): void;
|
59
59
|
protected disable(): void;
|
60
60
|
abstract startMonitor(signalClient?: SignalClient): void;
|
61
|
-
|
61
|
+
stopMonitor(): void;
|
62
62
|
private recycleElement;
|
63
63
|
protected appVisibilityChangedListener: () => void;
|
64
64
|
protected handleAppVisibilityChanged(): Promise<void>;
|
65
|
+
protected addAppVisibilityListener(): void;
|
66
|
+
protected removeAppVisibilityListener(): void;
|
65
67
|
}
|
66
68
|
/** @internal */
|
67
69
|
export declare function attachToElement(track: MediaStreamTrack, element: HTMLMediaElement): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;oCAUX,kBAAkB,mBAAmB,CAAC;AAArG,8BAAsB,KAAM,SAAQ,UAAkE;IACpG,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAEjB,gBAAgB,EAAE,gBAAgB,EAAE,CAAM;IAE1C,OAAO,EAAE,OAAO,CAAS;IAEzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;O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Ae,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACvC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/room/track/create.ts"],"names":[],"mappings":"AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,eAAe,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/room/track/create.ts"],"names":[],"mappings":"AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EAEpB,MAAM,WAAW,CAAC;AAGnB;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CA2C5B;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAM1B;AAED,wBAAsB,qBAAqB,CACzC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAM1B;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAwC5B"}
|
package/dist/src/room/types.d.ts
CHANGED
@@ -18,4 +18,9 @@ export type DataPublishOptions = {
|
|
18
18
|
/** the topic under which the message gets published */
|
19
19
|
topic?: string;
|
20
20
|
};
|
21
|
+
export type LiveKitReactNativeInfo = {
|
22
|
+
platform: 'ios' | 'android' | 'windows' | 'macos' | 'web' | 'native';
|
23
|
+
devicePixelRatio: number;
|
24
|
+
};
|
25
|
+
export type SimulationScenario = 'signal-reconnect' | 'speaker' | 'node-failure' | 'server-leave' | 'migration' | 'resume-reconnect' | 'force-tcp' | 'force-tls' | 'full-reconnect';
|
21
26
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wFAAwF;IACxF,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7C,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wFAAwF;IACxF,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7C,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrE,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,SAAS,GACT,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,CAAC"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -17,6 +17,10 @@ export declare function isFireFox(): boolean;
|
|
17
17
|
export declare function isSafari(): boolean;
|
18
18
|
export declare function isMobile(): boolean;
|
19
19
|
export declare function isWeb(): boolean;
|
20
|
+
export declare function isReactNative(): boolean;
|
21
|
+
export declare function isCloud(serverUrl: URL): boolean;
|
22
|
+
export declare function getReactNativeOs(): string | undefined;
|
23
|
+
export declare function getDevicePixelRatio(): number;
|
20
24
|
export declare function compareVersions(v1: string, v2: string): number;
|
21
25
|
export declare const getResizeObserver: () => ResizeObserver;
|
22
26
|
export declare const getIntersectionObserver: () => IntersectionObserver;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAM7D,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,YAElC;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,sBAAsB,YAErC;AAED,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,WAAW,IAAI,OAAO,CAsBrC;AAED,wBAAgB,iBAAiB,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAQjE;AAWD,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAiBnF;AAED,wBAAgB,kBAAkB,YAEjC;AAED,wBAAgB,SAAS,IAAI,OAAO,CAGnC;AAED,wBAAgB,QAAQ,IAAI,OAAO,CAGlC;AAED,wBAAgB,QAAQ,IAAI,OAAO,CAGlC;AAED,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAED,wBAAgB,OAAO,CAAC,SAAS,EAAE,GAAG,WAErC;AAaD,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAWrD;AAED,wBAAgB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B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,GAAG,gBAAgB,EACzC,OAAO,CAAC,EAAE,oBAAoB;;;;EA+C/B;AAED,qBAAa,KAAK;IAChB,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,MAAM,CAAS;;IAOvB,QAAQ;IAIR,IAAI,kBAGoB,IAAI;CAgB7B"}
|
@@ -64,17 +64,21 @@ export declare class SignalClient {
|
|
64
64
|
connect(url: string, token: string, opts: ConnectOpts, abortSignal?: AbortSignal): Promise<JoinResponse | ReconnectResponse | void>;
|
65
65
|
close(): Promise<void>;
|
66
66
|
sendOffer(offer: RTCSessionDescriptionInit): void;
|
67
|
-
sendAnswer(answer: RTCSessionDescriptionInit): void
|
68
|
-
sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): void
|
69
|
-
sendMuteTrack(trackSid: string, muted: boolean): void
|
70
|
-
sendAddTrack(req: AddTrackRequest): void
|
67
|
+
sendAnswer(answer: RTCSessionDescriptionInit): Promise<void>;
|
68
|
+
sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): Promise<void>;
|
69
|
+
sendMuteTrack(trackSid: string, muted: boolean): Promise<void>;
|
70
|
+
sendAddTrack(req: AddTrackRequest): Promise<void>;
|
71
|
+
sendUpdateLocalMetadata(metadata: string, name: string): Promise<void>;
|
71
72
|
sendUpdateTrackSettings(settings: UpdateTrackSettings): void;
|
72
|
-
sendUpdateSubscription(sub: UpdateSubscription): void
|
73
|
-
sendSyncState(sync: SyncState): void
|
74
|
-
sendUpdateVideoLayers(trackSid: string, layers: VideoLayer[]): void
|
75
|
-
sendUpdateSubscriptionPermissions(allParticipants: boolean, trackPermissions: TrackPermission[]): void
|
76
|
-
sendSimulateScenario(scenario: SimulateScenario): void
|
77
|
-
sendPing():
|
73
|
+
sendUpdateSubscription(sub: UpdateSubscription): Promise<void>;
|
74
|
+
sendSyncState(sync: SyncState): Promise<void>;
|
75
|
+
sendUpdateVideoLayers(trackSid: string, layers: VideoLayer[]): Promise<void>;
|
76
|
+
sendUpdateSubscriptionPermissions(allParticipants: boolean, trackPermissions: TrackPermission[]): Promise<void>;
|
77
|
+
sendSimulateScenario(scenario: SimulateScenario): Promise<void>;
|
78
|
+
sendPing(): Promise<[
|
79
|
+
void,
|
80
|
+
void
|
81
|
+
]>;
|
78
82
|
sendLeave(): Promise<void>;
|
79
83
|
sendRequest(message: SignalMessage, fromQueue?: boolean): Promise<void>;
|
80
84
|
private handleSignalResponse;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type TypedEmitter from 'typed-emitter';
|
2
|
-
import {
|
2
|
+
import { CheckInfo, CheckStatus, Checker, InstantiableCheck } from './checks/Checker';
|
3
3
|
export type { CheckInfo, CheckStatus };
|
4
4
|
declare const ConnectionCheck_base: new () => TypedEmitter<ConnectionCheckCallbacks>;
|
5
5
|
export declare class ConnectionCheck extends ConnectionCheck_base {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type TypedEmitter from 'typed-emitter';
|
2
2
|
import type { RoomConnectOptions, RoomOptions } from '../../options';
|
3
|
-
import Room from '../../room/Room';
|
4
3
|
import type RTCEngine from '../../room/RTCEngine';
|
4
|
+
import Room from '../../room/Room';
|
5
5
|
type LogMessage = {
|
6
6
|
level: 'info' | 'warning' | 'error';
|
7
7
|
message: string;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { LogLevel, setLogExtension, setLogLevel } from './logger';
|
2
2
|
import { DataPacket_Kind, DisconnectReason, VideoQuality } from './proto/livekit_models';
|
3
3
|
import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
|
4
|
+
import Room, { ConnectionState, RoomState } from './room/Room';
|
4
5
|
import LocalParticipant from './room/participant/LocalParticipant';
|
5
6
|
import Participant, { ConnectionQuality } from './room/participant/Participant';
|
6
7
|
import type { ParticipantTrackPermission } from './room/participant/ParticipantTrackPermission';
|
7
8
|
import RemoteParticipant from './room/participant/RemoteParticipant';
|
8
|
-
import
|
9
|
+
import CriticalTimers from './room/timers';
|
9
10
|
import LocalAudioTrack from './room/track/LocalAudioTrack';
|
10
11
|
import LocalTrack from './room/track/LocalTrack';
|
11
12
|
import LocalTrackPublication from './room/track/LocalTrackPublication';
|
@@ -13,20 +14,20 @@ import LocalVideoTrack from './room/track/LocalVideoTrack';
|
|
13
14
|
import RemoteAudioTrack from './room/track/RemoteAudioTrack';
|
14
15
|
import RemoteTrack from './room/track/RemoteTrack';
|
15
16
|
import RemoteTrackPublication from './room/track/RemoteTrackPublication';
|
16
|
-
import RemoteVideoTrack from './room/track/RemoteVideoTrack';
|
17
|
-
import type { ElementInfo } from './room/track/RemoteVideoTrack';
|
17
|
+
import type RemoteVideoTrack, { ElementInfo } from './room/track/RemoteVideoTrack';
|
18
18
|
import { TrackPublication } from './room/track/TrackPublication';
|
19
|
-
import
|
20
|
-
import { getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsAV1, supportsDynacast, createAudioAnalyser } from './room/utils';
|
19
|
+
import type { LiveKitReactNativeInfo } from './room/types';
|
21
20
|
import type { AudioAnalyserOptions } from './room/utils';
|
21
|
+
import { createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast } from './room/utils';
|
22
22
|
export * from './options';
|
23
23
|
export * from './room/errors';
|
24
24
|
export * from './room/events';
|
25
|
+
export type { DataPublishOptions, SimulationScenario } from './room/types';
|
25
26
|
export * from './room/track/create';
|
26
27
|
export * from './room/track/options';
|
27
28
|
export * from './room/track/Track';
|
28
29
|
export * from './room/track/types';
|
29
30
|
export * from './version';
|
30
31
|
export * from './connectionHelper/ConnectionCheck';
|
31
|
-
export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, createAudioAnalyser, AudioAnalyserOptions, LogLevel, Room, ConnectionState, RoomState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, ParticipantTrackPermission, TrackPublication, VideoQuality, ConnectionQuality, ElementInfo, DefaultReconnectPolicy, CriticalTimers, };
|
32
|
+
export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, createAudioAnalyser, AudioAnalyserOptions, LogLevel, Room, ConnectionState, RoomState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, ParticipantTrackPermission, TrackPublication, VideoQuality, ConnectionQuality, ElementInfo, DefaultReconnectPolicy, CriticalTimers, LiveKitReactNativeInfo, };
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,5 +1,23 @@
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
2
2
|
export declare const protobufPackage = "livekit";
|
3
|
+
export declare enum AudioCodec {
|
4
|
+
DEFAULT_AC = 0,
|
5
|
+
OPUS = 1,
|
6
|
+
AAC = 2,
|
7
|
+
UNRECOGNIZED = -1
|
8
|
+
}
|
9
|
+
export declare function audioCodecFromJSON(object: any): AudioCodec;
|
10
|
+
export declare function audioCodecToJSON(object: AudioCodec): string;
|
11
|
+
export declare enum VideoCodec {
|
12
|
+
DEFAULT_VC = 0,
|
13
|
+
H264_BASELINE = 1,
|
14
|
+
H264_MAIN = 2,
|
15
|
+
H264_HIGH = 3,
|
16
|
+
VP8 = 4,
|
17
|
+
UNRECOGNIZED = -1
|
18
|
+
}
|
19
|
+
export declare function videoCodecFromJSON(object: any): VideoCodec;
|
20
|
+
export declare function videoCodecToJSON(object: VideoCodec): string;
|
3
21
|
export declare enum TrackType {
|
4
22
|
AUDIO = 0,
|
5
23
|
VIDEO = 1,
|
@@ -76,6 +94,7 @@ export interface Room {
|
|
76
94
|
enabledCodecs: Codec[];
|
77
95
|
metadata: string;
|
78
96
|
numParticipants: number;
|
97
|
+
numPublishers: number;
|
79
98
|
activeRecording: boolean;
|
80
99
|
}
|
81
100
|
export interface Codec {
|
@@ -95,6 +114,8 @@ export interface ParticipantPermission {
|
|
95
114
|
hidden: boolean;
|
96
115
|
/** indicates it's a recorder instance */
|
97
116
|
recorder: boolean;
|
117
|
+
/** indicates that participant can update own metadata */
|
118
|
+
canUpdateMetadata: boolean;
|
98
119
|
}
|
99
120
|
export interface ParticipantInfo {
|
100
121
|
sid: string;
|
@@ -263,6 +284,8 @@ export declare enum ClientInfo_SDK {
|
|
263
284
|
FLUTTER = 4,
|
264
285
|
GO = 5,
|
265
286
|
UNITY = 6,
|
287
|
+
REACT_NATIVE = 7,
|
288
|
+
RUST = 8,
|
266
289
|
UNRECOGNIZED = -1
|
267
290
|
}
|
268
291
|
export declare function clientInfo_SDKFromJSON(object: any): ClientInfo_SDK;
|
@@ -352,6 +375,7 @@ export declare const Room: {
|
|
352
375
|
}[] | undefined;
|
353
376
|
metadata?: string | undefined;
|
354
377
|
numParticipants?: number | undefined;
|
378
|
+
numPublishers?: number | undefined;
|
355
379
|
activeRecording?: boolean | undefined;
|
356
380
|
} & {
|
357
381
|
sid?: string | undefined;
|
@@ -379,6 +403,7 @@ export declare const Room: {
|
|
379
403
|
}) | undefined;
|
380
404
|
metadata?: string | undefined;
|
381
405
|
numParticipants?: number | undefined;
|
406
|
+
numPublishers?: number | undefined;
|
382
407
|
activeRecording?: boolean | undefined;
|
383
408
|
} & {
|
384
409
|
[K_2 in Exclude<keyof I, keyof Room>]: never;
|
@@ -396,6 +421,7 @@ export declare const Room: {
|
|
396
421
|
}[] | undefined;
|
397
422
|
metadata?: string | undefined;
|
398
423
|
numParticipants?: number | undefined;
|
424
|
+
numPublishers?: number | undefined;
|
399
425
|
activeRecording?: boolean | undefined;
|
400
426
|
} & {
|
401
427
|
sid?: string | undefined;
|
@@ -423,6 +449,7 @@ export declare const Room: {
|
|
423
449
|
}) | undefined;
|
424
450
|
metadata?: string | undefined;
|
425
451
|
numParticipants?: number | undefined;
|
452
|
+
numPublishers?: number | undefined;
|
426
453
|
activeRecording?: boolean | undefined;
|
427
454
|
} & {
|
428
455
|
[K_5 in Exclude<keyof I_1, keyof Room>]: never;
|
@@ -464,6 +491,7 @@ export declare const ParticipantPermission: {
|
|
464
491
|
canPublishSources?: TrackSource[] | undefined;
|
465
492
|
hidden?: boolean | undefined;
|
466
493
|
recorder?: boolean | undefined;
|
494
|
+
canUpdateMetadata?: boolean | undefined;
|
467
495
|
} & {
|
468
496
|
canSubscribe?: boolean | undefined;
|
469
497
|
canPublish?: boolean | undefined;
|
@@ -473,6 +501,7 @@ export declare const ParticipantPermission: {
|
|
473
501
|
}) | undefined;
|
474
502
|
hidden?: boolean | undefined;
|
475
503
|
recorder?: boolean | undefined;
|
504
|
+
canUpdateMetadata?: boolean | undefined;
|
476
505
|
} & {
|
477
506
|
[K_1 in Exclude<keyof I, keyof ParticipantPermission>]: never;
|
478
507
|
}>(base?: I | undefined): ParticipantPermission;
|
@@ -483,6 +512,7 @@ export declare const ParticipantPermission: {
|
|
483
512
|
canPublishSources?: TrackSource[] | undefined;
|
484
513
|
hidden?: boolean | undefined;
|
485
514
|
recorder?: boolean | undefined;
|
515
|
+
canUpdateMetadata?: boolean | undefined;
|
486
516
|
} & {
|
487
517
|
canSubscribe?: boolean | undefined;
|
488
518
|
canPublish?: boolean | undefined;
|
@@ -492,6 +522,7 @@ export declare const ParticipantPermission: {
|
|
492
522
|
}) | undefined;
|
493
523
|
hidden?: boolean | undefined;
|
494
524
|
recorder?: boolean | undefined;
|
525
|
+
canUpdateMetadata?: boolean | undefined;
|
495
526
|
} & {
|
496
527
|
[K_3 in Exclude<keyof I_1, keyof ParticipantPermission>]: never;
|
497
528
|
}>(object: I_1): ParticipantPermission;
|
@@ -551,6 +582,7 @@ export declare const ParticipantInfo: {
|
|
551
582
|
canPublishSources?: TrackSource[] | undefined;
|
552
583
|
hidden?: boolean | undefined;
|
553
584
|
recorder?: boolean | undefined;
|
585
|
+
canUpdateMetadata?: boolean | undefined;
|
554
586
|
} | undefined;
|
555
587
|
region?: string | undefined;
|
556
588
|
isPublisher?: boolean | undefined;
|
@@ -791,6 +823,7 @@ export declare const ParticipantInfo: {
|
|
791
823
|
canPublishSources?: TrackSource[] | undefined;
|
792
824
|
hidden?: boolean | undefined;
|
793
825
|
recorder?: boolean | undefined;
|
826
|
+
canUpdateMetadata?: boolean | undefined;
|
794
827
|
} & {
|
795
828
|
canSubscribe?: boolean | undefined;
|
796
829
|
canPublish?: boolean | undefined;
|
@@ -800,6 +833,7 @@ export declare const ParticipantInfo: {
|
|
800
833
|
}) | undefined;
|
801
834
|
hidden?: boolean | undefined;
|
802
835
|
recorder?: boolean | undefined;
|
836
|
+
canUpdateMetadata?: boolean | undefined;
|
803
837
|
} & {
|
804
838
|
[K_9 in Exclude<keyof I["permission"], keyof ParticipantPermission>]: never;
|
805
839
|
}) | undefined;
|
@@ -858,6 +892,7 @@ export declare const ParticipantInfo: {
|
|
858
892
|
canPublishSources?: TrackSource[] | undefined;
|
859
893
|
hidden?: boolean | undefined;
|
860
894
|
recorder?: boolean | undefined;
|
895
|
+
canUpdateMetadata?: boolean | undefined;
|
861
896
|
} | undefined;
|
862
897
|
region?: string | undefined;
|
863
898
|
isPublisher?: boolean | undefined;
|
@@ -1098,6 +1133,7 @@ export declare const ParticipantInfo: {
|
|
1098
1133
|
canPublishSources?: TrackSource[] | undefined;
|
1099
1134
|
hidden?: boolean | undefined;
|
1100
1135
|
recorder?: boolean | undefined;
|
1136
|
+
canUpdateMetadata?: boolean | undefined;
|
1101
1137
|
} & {
|
1102
1138
|
canSubscribe?: boolean | undefined;
|
1103
1139
|
canPublish?: boolean | undefined;
|
@@ -1107,6 +1143,7 @@ export declare const ParticipantInfo: {
|
|
1107
1143
|
}) | undefined;
|
1108
1144
|
hidden?: boolean | undefined;
|
1109
1145
|
recorder?: boolean | undefined;
|
1146
|
+
canUpdateMetadata?: boolean | undefined;
|
1110
1147
|
} & {
|
1111
1148
|
[K_20 in Exclude<keyof I_1["permission"], keyof ParticipantPermission>]: never;
|
1112
1149
|
}) | undefined;
|