@stream-io/video-client 0.4.3 → 0.4.4
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 +7 -0
- package/dist/index.browser.es.js +9 -1
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +9 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/DynascaleManager.ts +9 -0
package/dist/index.cjs.js
CHANGED
|
@@ -9811,6 +9811,14 @@ class DynascaleManager {
|
|
|
9811
9811
|
audioElement.play().catch((e) => {
|
|
9812
9812
|
this.logger('warn', `Failed to play stream`, e);
|
|
9813
9813
|
});
|
|
9814
|
+
// audio output device shall be set after the audio element is played
|
|
9815
|
+
// otherwise, the browser will not pick it up, and will always
|
|
9816
|
+
// play audio through the system's default device
|
|
9817
|
+
const { selectedDevice } = this.call.speaker.state;
|
|
9818
|
+
if (selectedDevice && 'setSinkId' in audioElement) {
|
|
9819
|
+
// @ts-expect-error setSinkId is not yet in the lib
|
|
9820
|
+
audioElement.setSinkId(selectedDevice);
|
|
9821
|
+
}
|
|
9814
9822
|
}
|
|
9815
9823
|
});
|
|
9816
9824
|
});
|
|
@@ -13984,7 +13992,7 @@ class StreamClient {
|
|
|
13984
13992
|
});
|
|
13985
13993
|
};
|
|
13986
13994
|
this.getUserAgent = () => {
|
|
13987
|
-
const version = "0.4.
|
|
13995
|
+
const version = "0.4.4" ;
|
|
13988
13996
|
return (this.userAgent ||
|
|
13989
13997
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
13990
13998
|
};
|