@poolse/sdk 2.14.1 → 2.15.1
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/CHANGELOG.md +18 -0
- package/dist/index.cjs +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1842,6 +1842,14 @@ declare class CallRoom {
|
|
|
1842
1842
|
setMicrophoneEnabled(enabled: boolean): Promise<void>;
|
|
1843
1843
|
isCameraEnabled(): boolean;
|
|
1844
1844
|
isMicrophoneEnabled(): boolean;
|
|
1845
|
+
/**
|
|
1846
|
+
* Publish one capture device, surviving its absence.
|
|
1847
|
+
*
|
|
1848
|
+
* Split out from {@link withLocal} because this runs mid-join, before
|
|
1849
|
+
* the room is marked connected — emitting a roster here would
|
|
1850
|
+
* advertise a call that has not finished starting.
|
|
1851
|
+
*/
|
|
1852
|
+
private publish;
|
|
1845
1853
|
private withLocal;
|
|
1846
1854
|
private bind;
|
|
1847
1855
|
/**
|
|
@@ -2017,7 +2025,7 @@ declare class AuthError extends ApiError {
|
|
|
2017
2025
|
declare function isWebRtcAvailable(): boolean;
|
|
2018
2026
|
declare function createBrowserWebRtcAdapter(): WebRtcAdapter;
|
|
2019
2027
|
|
|
2020
|
-
declare const version = "2.
|
|
2028
|
+
declare const version = "2.15.1";
|
|
2021
2029
|
|
|
2022
2030
|
declare function safeUuid(): string;
|
|
2023
2031
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1842,6 +1842,14 @@ declare class CallRoom {
|
|
|
1842
1842
|
setMicrophoneEnabled(enabled: boolean): Promise<void>;
|
|
1843
1843
|
isCameraEnabled(): boolean;
|
|
1844
1844
|
isMicrophoneEnabled(): boolean;
|
|
1845
|
+
/**
|
|
1846
|
+
* Publish one capture device, surviving its absence.
|
|
1847
|
+
*
|
|
1848
|
+
* Split out from {@link withLocal} because this runs mid-join, before
|
|
1849
|
+
* the room is marked connected — emitting a roster here would
|
|
1850
|
+
* advertise a call that has not finished starting.
|
|
1851
|
+
*/
|
|
1852
|
+
private publish;
|
|
1845
1853
|
private withLocal;
|
|
1846
1854
|
private bind;
|
|
1847
1855
|
/**
|
|
@@ -2017,7 +2025,7 @@ declare class AuthError extends ApiError {
|
|
|
2017
2025
|
declare function isWebRtcAvailable(): boolean;
|
|
2018
2026
|
declare function createBrowserWebRtcAdapter(): WebRtcAdapter;
|
|
2019
2027
|
|
|
2020
|
-
declare const version = "2.
|
|
2028
|
+
declare const version = "2.15.1";
|
|
2021
2029
|
|
|
2022
2030
|
declare function safeUuid(): string;
|
|
2023
2031
|
|
package/dist/index.js
CHANGED
|
@@ -1805,9 +1805,15 @@ var CallRoom = class {
|
|
|
1805
1805
|
try {
|
|
1806
1806
|
await room.connect(connection.url, connection.token);
|
|
1807
1807
|
this.selfId = room.localParticipant.identity;
|
|
1808
|
-
await
|
|
1808
|
+
await this.publish(
|
|
1809
|
+
() => room.localParticipant.setMicrophoneEnabled(!this.startMuted),
|
|
1810
|
+
"microphone"
|
|
1811
|
+
);
|
|
1809
1812
|
if (this.startWithVideo) {
|
|
1810
|
-
await
|
|
1813
|
+
await this.publish(
|
|
1814
|
+
() => room.localParticipant.setCameraEnabled(true, { facingMode: this.facing }),
|
|
1815
|
+
"camera"
|
|
1816
|
+
);
|
|
1811
1817
|
}
|
|
1812
1818
|
try {
|
|
1813
1819
|
await room.startAudio?.();
|
|
@@ -1939,6 +1945,20 @@ var CallRoom = class {
|
|
|
1939
1945
|
return this.room?.localParticipant.isMicrophoneEnabled ?? false;
|
|
1940
1946
|
}
|
|
1941
1947
|
// ── internals ───────────────────────────────────────────────────────
|
|
1948
|
+
/**
|
|
1949
|
+
* Publish one capture device, surviving its absence.
|
|
1950
|
+
*
|
|
1951
|
+
* Split out from {@link withLocal} because this runs mid-join, before
|
|
1952
|
+
* the room is marked connected — emitting a roster here would
|
|
1953
|
+
* advertise a call that has not finished starting.
|
|
1954
|
+
*/
|
|
1955
|
+
async publish(fn, what) {
|
|
1956
|
+
try {
|
|
1957
|
+
await fn();
|
|
1958
|
+
} catch (err) {
|
|
1959
|
+
this.emitError(new Error(`no ${what} available: ${String(err)}`));
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1942
1962
|
async withLocal(fn, what) {
|
|
1943
1963
|
const room = this.room;
|
|
1944
1964
|
if (!room) return;
|
|
@@ -2433,7 +2453,7 @@ var Poolse = class {
|
|
|
2433
2453
|
};
|
|
2434
2454
|
|
|
2435
2455
|
// src/version.ts
|
|
2436
|
-
var version = "2.
|
|
2456
|
+
var version = "2.15.1";
|
|
2437
2457
|
|
|
2438
2458
|
export { ApiError, AttachmentHandle, AttachmentsResource, AuthError, CallRoom, CallTokensResource, CallsResource, ConversationChannel, ConversationHandle, ConversationMessages, ConversationsResource, DevicesResource, IceServersResource, MeResource, MessageHandle, MessagesResource, NetworkError, POOLSE_API_URL, Poolse, PoolseError, PoolseRealtime, RateLimitedError, UserChannel, UsersResource, VoiceRoom, createBrowserWebRtcAdapter, isWebRtcAvailable, safeUuid, version };
|
|
2439
2459
|
//# sourceMappingURL=index.js.map
|