@stream-io/video-client 0.0.2-alpha.13 → 0.0.2-alpha.14
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 +4 -0
- package/dist/index.browser.es.js +2 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/helpers/sound-detector.d.ts +10 -1
- package/package.json +1 -1
- package/src/helpers/sound-detector.ts +13 -9
package/dist/index.cjs.js
CHANGED
|
@@ -10977,7 +10977,7 @@ class StreamClient {
|
|
|
10977
10977
|
}
|
|
10978
10978
|
getUserAgent() {
|
|
10979
10979
|
return (this.userAgent ||
|
|
10980
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.
|
|
10980
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.13"}`);
|
|
10981
10981
|
}
|
|
10982
10982
|
setUserAgent(userAgent) {
|
|
10983
10983
|
this.userAgent = userAgent;
|
|
@@ -11535,7 +11535,7 @@ const createSoundDetector = (audioStream, onSoundDetectedStateChanged, options =
|
|
|
11535
11535
|
const percentage = averagedDataValue > audioLevelThreshold
|
|
11536
11536
|
? 100
|
|
11537
11537
|
: Math.round((averagedDataValue / audioLevelThreshold) * 100);
|
|
11538
|
-
onSoundDetectedStateChanged(isSoundDetected, percentage);
|
|
11538
|
+
onSoundDetectedStateChanged({ isSoundDetected, audioLevel: percentage });
|
|
11539
11539
|
}, detectionFrequencyInMs);
|
|
11540
11540
|
return function stop() {
|
|
11541
11541
|
return __awaiter(this, void 0, void 0, function* () {
|