@touchcastllc/napster-companion-api-dev 1.0.0-alpha.46 → 1.0.0-alpha.48
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/README.md +46 -0
- package/lib/components/Avatar/index.d.ts +4 -0
- package/lib/components/Embed/index.d.ts +4 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.standalone.js +1 -1
- package/lib/types/index.d.ts +18 -0
- package/package.json +2 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -304,6 +304,11 @@ export interface NapsterCompanionApiInstance {
|
|
|
304
304
|
avatarIsVisible: () => boolean;
|
|
305
305
|
/** Tear down the SDK, remove DOM nodes and clean up resources. */
|
|
306
306
|
destroy: () => void;
|
|
307
|
+
/**
|
|
308
|
+
* The current session identifier. Available after a connection is established
|
|
309
|
+
* and reset to `undefined` once the connection is closed.
|
|
310
|
+
*/
|
|
311
|
+
readonly sessionId: string | undefined;
|
|
307
312
|
/** Update the inline style object applied to the SDK root container. */
|
|
308
313
|
updateStyles: (styles: NapsterCompanionApiConfig["style"]) => void;
|
|
309
314
|
/** Set the position of the SDK on screen (see `Position`). */
|
|
@@ -347,6 +352,19 @@ export interface NapsterCompanionApiInstance {
|
|
|
347
352
|
startFaceTracking: () => Promise<void>;
|
|
348
353
|
/** Stop face tracking (pauses detection, stops camera; model stays loaded for fast restart). */
|
|
349
354
|
stopFaceTracking: () => void;
|
|
355
|
+
/** Mute the avatar's audio output. */
|
|
356
|
+
muteAudio: () => void;
|
|
357
|
+
/** Unmute the avatar's audio output. */
|
|
358
|
+
unmuteAudio: () => void;
|
|
359
|
+
/** Whether the avatar's audio output is currently muted. */
|
|
360
|
+
readonly isAudioMuted: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* Set the avatar's audio output volume.
|
|
363
|
+
* @param volume Volume level in the range 0..1 (clamped if out of range).
|
|
364
|
+
*/
|
|
365
|
+
setAudioVolume: (volume: number) => void;
|
|
366
|
+
/** Get the current avatar audio output volume in the range 0..1. */
|
|
367
|
+
getAudioVolume: () => number;
|
|
350
368
|
}
|
|
351
369
|
/**
|
|
352
370
|
* Top-level SDK object exposed by the package. Call `init(token, config)` to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@touchcastllc/napster-companion-api-dev",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"napster",
|
|
6
6
|
"companion-api",
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
|
-
"access": "
|
|
54
|
+
"access": "public"
|
|
55
55
|
}
|
|
56
56
|
}
|