quickvo-sdk-js 0.5.0 → 0.5.1
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/dist/index.js +4 -4
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7799,7 +7799,7 @@ class RoomMedias extends RoomBase {
|
|
|
7799
7799
|
* @param deviceId 设备ID
|
|
7800
7800
|
*/
|
|
7801
7801
|
Z(this, "setDeviceKind", async (u, E) => {
|
|
7802
|
-
if (V(this, bt).set(u, E), u === "
|
|
7802
|
+
if (V(this, bt).set(u, E), u === "audiooutput") {
|
|
7803
7803
|
const _ = V(this, _t).values();
|
|
7804
7804
|
for (const k of _)
|
|
7805
7805
|
k.kind === "audio" && "setSinkId" in HTMLMediaElement.prototype && k.audioContext.setSinkId(E);
|
|
@@ -8153,13 +8153,13 @@ class RoomPeer extends RoomUsers {
|
|
|
8153
8153
|
*/
|
|
8154
8154
|
Z(this, "setMediaDeviceKind", async (u, E) => {
|
|
8155
8155
|
await this.setDeviceKind(u, E);
|
|
8156
|
-
const _ = await this.getCaller(), {
|
|
8156
|
+
const _ = await this.getCaller(), { id: k, tracks: e = [] } = _;
|
|
8157
8157
|
switch (u) {
|
|
8158
8158
|
case "audioinput":
|
|
8159
|
-
k.find((
|
|
8159
|
+
this.getUserMediaStreamContext(k, "microphoneCamera_audio") && await this.initLocalStream("microphoneCamera_audio"), e.find(($) => $.mediaType === "microphoneCamera_audio") && await this.replaceSenderStream(["microphoneCamera_audio"], !0);
|
|
8160
8160
|
break;
|
|
8161
8161
|
case "videoinput":
|
|
8162
|
-
k.find((
|
|
8162
|
+
this.getUserMediaStreamContext(k, "microphoneCamera_video") && await this.initLocalStream("microphoneCamera_video"), e.find(($) => $.mediaType === "microphoneCamera_video") && await this.replaceSenderStream(["microphoneCamera_video"], !0);
|
|
8163
8163
|
break;
|
|
8164
8164
|
}
|
|
8165
8165
|
});
|