@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.2-alpha.14](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.13...client0.0.2-alpha.14) (2023-05-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.0.2-alpha.13](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.12...client0.0.2-alpha.13) (2023-05-31)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -10972,7 +10972,7 @@ class StreamClient {
|
|
|
10972
10972
|
}
|
|
10973
10973
|
getUserAgent() {
|
|
10974
10974
|
return (this.userAgent ||
|
|
10975
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.
|
|
10975
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.13"}`);
|
|
10976
10976
|
}
|
|
10977
10977
|
setUserAgent(userAgent) {
|
|
10978
10978
|
this.userAgent = userAgent;
|
|
@@ -11530,7 +11530,7 @@ const createSoundDetector = (audioStream, onSoundDetectedStateChanged, options =
|
|
|
11530
11530
|
const percentage = averagedDataValue > audioLevelThreshold
|
|
11531
11531
|
? 100
|
|
11532
11532
|
: Math.round((averagedDataValue / audioLevelThreshold) * 100);
|
|
11533
|
-
onSoundDetectedStateChanged(isSoundDetected, percentage);
|
|
11533
|
+
onSoundDetectedStateChanged({ isSoundDetected, audioLevel: percentage });
|
|
11534
11534
|
}, detectionFrequencyInMs);
|
|
11535
11535
|
return function stop() {
|
|
11536
11536
|
return __awaiter(this, void 0, void 0, function* () {
|