@poolse/sdk 2.10.1 → 2.12.0
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/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1478,6 +1478,13 @@ interface LiveKitRoomHandle {
|
|
|
1478
1478
|
remoteParticipants: Map<string, LiveKitParticipant>;
|
|
1479
1479
|
connect(url: string, token: string, options?: unknown): Promise<void>;
|
|
1480
1480
|
disconnect(): Promise<void>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Unblocks audio playback held back by a browser's autoplay policy.
|
|
1483
|
+
*
|
|
1484
|
+
* Optional because only the web needs it — React Native routes through
|
|
1485
|
+
* the native audio session and has nothing to unblock.
|
|
1486
|
+
*/
|
|
1487
|
+
startAudio?(): Promise<void>;
|
|
1481
1488
|
on(event: string, handler: (...args: never[]) => void): unknown;
|
|
1482
1489
|
off(event: string, handler: (...args: never[]) => void): unknown;
|
|
1483
1490
|
}
|
|
@@ -1837,7 +1844,7 @@ declare class AuthError extends ApiError {
|
|
|
1837
1844
|
declare function isWebRtcAvailable(): boolean;
|
|
1838
1845
|
declare function createBrowserWebRtcAdapter(): WebRtcAdapter;
|
|
1839
1846
|
|
|
1840
|
-
declare const version = "2.
|
|
1847
|
+
declare const version = "2.12.0";
|
|
1841
1848
|
|
|
1842
1849
|
declare function safeUuid(): string;
|
|
1843
1850
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1478,6 +1478,13 @@ interface LiveKitRoomHandle {
|
|
|
1478
1478
|
remoteParticipants: Map<string, LiveKitParticipant>;
|
|
1479
1479
|
connect(url: string, token: string, options?: unknown): Promise<void>;
|
|
1480
1480
|
disconnect(): Promise<void>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Unblocks audio playback held back by a browser's autoplay policy.
|
|
1483
|
+
*
|
|
1484
|
+
* Optional because only the web needs it — React Native routes through
|
|
1485
|
+
* the native audio session and has nothing to unblock.
|
|
1486
|
+
*/
|
|
1487
|
+
startAudio?(): Promise<void>;
|
|
1481
1488
|
on(event: string, handler: (...args: never[]) => void): unknown;
|
|
1482
1489
|
off(event: string, handler: (...args: never[]) => void): unknown;
|
|
1483
1490
|
}
|
|
@@ -1837,7 +1844,7 @@ declare class AuthError extends ApiError {
|
|
|
1837
1844
|
declare function isWebRtcAvailable(): boolean;
|
|
1838
1845
|
declare function createBrowserWebRtcAdapter(): WebRtcAdapter;
|
|
1839
1846
|
|
|
1840
|
-
declare const version = "2.
|
|
1847
|
+
declare const version = "2.12.0";
|
|
1841
1848
|
|
|
1842
1849
|
declare function safeUuid(): string;
|
|
1843
1850
|
|
package/dist/index.js
CHANGED
|
@@ -1749,6 +1749,10 @@ var CallRoom = class {
|
|
|
1749
1749
|
this.selfId = room.localParticipant.identity;
|
|
1750
1750
|
await room.localParticipant.setMicrophoneEnabled(!this.startMuted);
|
|
1751
1751
|
if (this.startWithVideo) await room.localParticipant.setCameraEnabled(true);
|
|
1752
|
+
try {
|
|
1753
|
+
await room.startAudio?.();
|
|
1754
|
+
} catch {
|
|
1755
|
+
}
|
|
1752
1756
|
this.setStatus("connected");
|
|
1753
1757
|
this.emitParticipants();
|
|
1754
1758
|
return true;
|
|
@@ -2201,7 +2205,7 @@ var Poolse = class {
|
|
|
2201
2205
|
};
|
|
2202
2206
|
|
|
2203
2207
|
// src/version.ts
|
|
2204
|
-
var version = "2.
|
|
2208
|
+
var version = "2.12.0";
|
|
2205
2209
|
|
|
2206
2210
|
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 };
|
|
2207
2211
|
//# sourceMappingURL=index.js.map
|