@touchcastllc/napster-companion-api-dev 1.0.0-alpha.84 → 1.0.0-alpha.85
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/lib/index.d.ts +10 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.standalone.js +1 -1
- package/lib/services/micAccess.d.ts +9 -0
- package/lib/types/index.d.ts +20 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -43,6 +43,16 @@ declare class NapsterCompanionApiSdkVanilla implements NapsterCompanionApiSDK {
|
|
|
43
43
|
* a new fault rather than the same unresolved one.
|
|
44
44
|
*/
|
|
45
45
|
private acquireMicrophone;
|
|
46
|
+
/**
|
|
47
|
+
* Prompt for the microphone WITHOUT starting a session. Call it before minting a
|
|
48
|
+
* connection token: the backend starts counting a connection's short lifetime the
|
|
49
|
+
* moment it is created, and a permission prompt the user leaves open for seconds
|
|
50
|
+
* burns that budget before signaling ever runs.
|
|
51
|
+
*
|
|
52
|
+
* Rejects with a ConnectionError; `context.name` names the underlying
|
|
53
|
+
* DOMException. Resolving costs nothing later — the stream is cached and reused.
|
|
54
|
+
*/
|
|
55
|
+
requestMicrophoneAccess(): Promise<void>;
|
|
46
56
|
private dismissMicPermission;
|
|
47
57
|
private connectWebRTC;
|
|
48
58
|
private handleScreenShareToggle;
|