podchat-browser 12.9.13 → 12.9.14-snapshot.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/changelog.md +1 -1
- package/dist/node/buildConfig.json +1 -1
- package/dist/node/lib/call/callUsers.js +9 -3
- package/dist/node/lib/call/multitrack/callUser.js +6 -0
- package/dist/node/lib/call/multitrack/callUsers.js +11 -2
- package/dist/podchat-browser-bundle.js +29 -6
- package/examples/index.html +4 -0
- package/package.json +1 -1
- package/src/buildConfig.json +1 -1
- package/src/lib/call/callUsers.js +6 -3
- package/src/lib/call/multitrack/callUser.js +6 -0
- package/src/lib/call/multitrack/callUsers.js +10 -2
- /package/dist/node/lib/helpers/{DataFormatters.js → dataFormatters.js} +0 -0
package/changelog.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.9.
|
|
1
|
+
{"version":"12.9.14-snapshot.1","date":"۱۴۰۳/۴/۱۸","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
@@ -103,17 +103,23 @@ function CallUsers(_ref) {
|
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
},
|
|
106
|
-
switchSpeakers: function switchSpeakers(deviceId) {
|
|
106
|
+
switchSpeakers: function switchSpeakers(deviceId, callback) {
|
|
107
107
|
var audioFound = false;
|
|
108
108
|
for (var i in config.list) {
|
|
109
109
|
var user = config.list[i];
|
|
110
110
|
if (user && !user.isMe()) {
|
|
111
|
-
if (user.audioTopicManager())
|
|
112
|
-
|
|
111
|
+
if (!user.isScreenShare() && user.audioTopicManager()) {
|
|
112
|
+
audioFound = true;
|
|
113
|
+
user === null || user === void 0 ? void 0 : user.switchSpeaker(deviceId);
|
|
114
|
+
}
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
117
|
if (!audioFound) {
|
|
116
118
|
throw new Error('[SDK] No active audio receiver found.');
|
|
119
|
+
} else {
|
|
120
|
+
callback && callback({
|
|
121
|
+
hasError: false
|
|
122
|
+
});
|
|
117
123
|
}
|
|
118
124
|
}
|
|
119
125
|
};
|
|
@@ -54,6 +54,9 @@ function CallUser(app, user) {
|
|
|
54
54
|
}, _callee);
|
|
55
55
|
}))();
|
|
56
56
|
},
|
|
57
|
+
audioIsOpen: function audioIsOpen() {
|
|
58
|
+
return config.audioIsOpen;
|
|
59
|
+
},
|
|
57
60
|
resetTopicVersions: function resetTopicVersions() {
|
|
58
61
|
config.videoReceiveVersion = -1;
|
|
59
62
|
config.audioReceiveVersion = -1;
|
|
@@ -658,6 +661,9 @@ function CallScreenShare(app, user) {
|
|
|
658
661
|
isMe: function isMe() {
|
|
659
662
|
return app.call.currentCall().screenShareInfo.iAmOwner();
|
|
660
663
|
},
|
|
664
|
+
audioIsOpen: function audioIsOpen() {
|
|
665
|
+
return false;
|
|
666
|
+
},
|
|
661
667
|
resetTopicVersions: function resetTopicVersions() {
|
|
662
668
|
config.videoReceiveVersion = -1;
|
|
663
669
|
},
|
|
@@ -271,13 +271,22 @@ function CallUsers(_ref) {
|
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
switchSpeakers: function switchSpeakers(deviceId) {
|
|
274
|
+
switchSpeakers: function switchSpeakers(deviceId, callback) {
|
|
275
|
+
var audioFound = false;
|
|
275
276
|
for (var i in config.list) {
|
|
276
277
|
var user = config.list[i];
|
|
277
|
-
if (user && !user.isMe()) {
|
|
278
|
+
if (user && !user.isMe() && !user.isScreenShare() && user.audioIsOpen()) {
|
|
279
|
+
audioFound = true;
|
|
278
280
|
user === null || user === void 0 ? void 0 : user.switchSpeaker(deviceId);
|
|
279
281
|
}
|
|
280
282
|
}
|
|
283
|
+
if (!audioFound) {
|
|
284
|
+
throw new Error('[SDK] No active audio receiver found.');
|
|
285
|
+
} else {
|
|
286
|
+
callback && callback({
|
|
287
|
+
hasError: false
|
|
288
|
+
});
|
|
289
|
+
}
|
|
281
290
|
}
|
|
282
291
|
};
|
|
283
292
|
return publicized;
|
|
@@ -45388,7 +45388,7 @@ FilterXSS.prototype.process = function (html) {
|
|
|
45388
45388
|
module.exports = FilterXSS;
|
|
45389
45389
|
|
|
45390
45390
|
},{"./default":277,"./parser":279,"./util":280,"cssfilter":128}],282:[function(require,module,exports){
|
|
45391
|
-
module.exports={"version":"12.9.
|
|
45391
|
+
module.exports={"version":"12.9.14-snapshot.1","date":"۱۴۰۳/۴/۱۸","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
45392
45392
|
},{}],283:[function(require,module,exports){
|
|
45393
45393
|
"use strict";
|
|
45394
45394
|
|
|
@@ -53296,20 +53296,26 @@ function CallUsers(_ref) {
|
|
|
53296
53296
|
});
|
|
53297
53297
|
});
|
|
53298
53298
|
},
|
|
53299
|
-
switchSpeakers: function switchSpeakers(deviceId) {
|
|
53299
|
+
switchSpeakers: function switchSpeakers(deviceId, callback) {
|
|
53300
53300
|
var audioFound = false;
|
|
53301
53301
|
|
|
53302
53302
|
for (var i in config.list) {
|
|
53303
53303
|
var user = config.list[i];
|
|
53304
53304
|
|
|
53305
53305
|
if (user && !user.isMe()) {
|
|
53306
|
-
if (user.audioTopicManager())
|
|
53307
|
-
|
|
53306
|
+
if (!user.isScreenShare() && user.audioTopicManager()) {
|
|
53307
|
+
audioFound = true;
|
|
53308
|
+
user === null || user === void 0 ? void 0 : user.switchSpeaker(deviceId);
|
|
53309
|
+
}
|
|
53308
53310
|
}
|
|
53309
53311
|
}
|
|
53310
53312
|
|
|
53311
53313
|
if (!audioFound) {
|
|
53312
53314
|
throw new Error('[SDK] No active audio receiver found.');
|
|
53315
|
+
} else {
|
|
53316
|
+
callback && callback({
|
|
53317
|
+
hasError: false
|
|
53318
|
+
});
|
|
53313
53319
|
}
|
|
53314
53320
|
}
|
|
53315
53321
|
};
|
|
@@ -55862,6 +55868,9 @@ function CallUser(app, user) {
|
|
|
55862
55868
|
}, _callee);
|
|
55863
55869
|
}))();
|
|
55864
55870
|
},
|
|
55871
|
+
audioIsOpen: function audioIsOpen() {
|
|
55872
|
+
return config.audioIsOpen;
|
|
55873
|
+
},
|
|
55865
55874
|
resetTopicVersions: function resetTopicVersions() {
|
|
55866
55875
|
config.videoReceiveVersion = -1;
|
|
55867
55876
|
config.audioReceiveVersion = -1;
|
|
@@ -56493,6 +56502,9 @@ function CallScreenShare(app, user) {
|
|
|
56493
56502
|
isMe: function isMe() {
|
|
56494
56503
|
return app.call.currentCall().screenShareInfo.iAmOwner();
|
|
56495
56504
|
},
|
|
56505
|
+
audioIsOpen: function audioIsOpen() {
|
|
56506
|
+
return false;
|
|
56507
|
+
},
|
|
56496
56508
|
resetTopicVersions: function resetTopicVersions() {
|
|
56497
56509
|
config.videoReceiveVersion = -1;
|
|
56498
56510
|
},
|
|
@@ -57123,14 +57135,25 @@ function CallUsers(_ref) {
|
|
|
57123
57135
|
}
|
|
57124
57136
|
}
|
|
57125
57137
|
},
|
|
57126
|
-
switchSpeakers: function switchSpeakers(deviceId) {
|
|
57138
|
+
switchSpeakers: function switchSpeakers(deviceId, callback) {
|
|
57139
|
+
var audioFound = false;
|
|
57140
|
+
|
|
57127
57141
|
for (var i in config.list) {
|
|
57128
57142
|
var user = config.list[i];
|
|
57129
57143
|
|
|
57130
|
-
if (user && !user.isMe()) {
|
|
57144
|
+
if (user && !user.isMe() && !user.isScreenShare() && user.audioIsOpen()) {
|
|
57145
|
+
audioFound = true;
|
|
57131
57146
|
user === null || user === void 0 ? void 0 : user.switchSpeaker(deviceId);
|
|
57132
57147
|
}
|
|
57133
57148
|
}
|
|
57149
|
+
|
|
57150
|
+
if (!audioFound) {
|
|
57151
|
+
throw new Error('[SDK] No active audio receiver found.');
|
|
57152
|
+
} else {
|
|
57153
|
+
callback && callback({
|
|
57154
|
+
hasError: false
|
|
57155
|
+
});
|
|
57156
|
+
}
|
|
57134
57157
|
}
|
|
57135
57158
|
};
|
|
57136
57159
|
return publicized;
|
package/examples/index.html
CHANGED
package/package.json
CHANGED
package/src/buildConfig.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.9.
|
|
1
|
+
{"version":"12.9.14-snapshot.1","date":"۱۴۰۳/۴/۱۸","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
@@ -87,18 +87,21 @@ function CallUsers({app, callId}) {
|
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
},
|
|
90
|
-
switchSpeakers(deviceId) {
|
|
90
|
+
switchSpeakers(deviceId, callback) {
|
|
91
91
|
let audioFound = false;
|
|
92
92
|
for (let i in config.list) {
|
|
93
93
|
let user = config.list[i];
|
|
94
94
|
if (user && !user.isMe()) {
|
|
95
|
-
if(user.audioTopicManager())
|
|
95
|
+
if(!user.isScreenShare() && user.audioTopicManager()) {
|
|
96
96
|
audioFound = true
|
|
97
|
-
|
|
97
|
+
user?.switchSpeaker(deviceId);
|
|
98
|
+
}
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
if(!audioFound) {
|
|
101
102
|
throw new Error('[SDK] No active audio receiver found.');
|
|
103
|
+
} else {
|
|
104
|
+
callback && callback({hasError: false});
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
}
|
|
@@ -33,6 +33,9 @@ function CallUser(app, user) {
|
|
|
33
33
|
console.error('Error setting audio output:', error);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
audioIsOpen(){
|
|
37
|
+
return config.audioIsOpen;
|
|
38
|
+
},
|
|
36
39
|
resetTopicVersions() {
|
|
37
40
|
config.videoReceiveVersion = -1;
|
|
38
41
|
config.audioReceiveVersion = -1;
|
|
@@ -546,6 +549,9 @@ function CallScreenShare(app, user) {
|
|
|
546
549
|
isMe() {
|
|
547
550
|
return app.call.currentCall().screenShareInfo.iAmOwner();
|
|
548
551
|
},
|
|
552
|
+
audioIsOpen(){
|
|
553
|
+
return false;
|
|
554
|
+
},
|
|
549
555
|
resetTopicVersions() {
|
|
550
556
|
config.videoReceiveVersion = -1
|
|
551
557
|
},
|
|
@@ -154,13 +154,21 @@ function CallUsers({app, callId}) {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
switchSpeakers(deviceId) {
|
|
157
|
+
switchSpeakers(deviceId, callback) {
|
|
158
|
+
let audioFound = false;
|
|
159
|
+
|
|
158
160
|
for (let i in config.list) {
|
|
159
161
|
let user = config.list[i];
|
|
160
|
-
if (user && !user.isMe()) {
|
|
162
|
+
if (user && !user.isMe() && !user.isScreenShare() && user.audioIsOpen()) {
|
|
163
|
+
audioFound = true;
|
|
161
164
|
user?.switchSpeaker(deviceId);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
167
|
+
if(!audioFound) {
|
|
168
|
+
throw new Error('[SDK] No active audio receiver found.');
|
|
169
|
+
} else {
|
|
170
|
+
callback && callback({hasError: false});
|
|
171
|
+
}
|
|
164
172
|
}
|
|
165
173
|
}
|
|
166
174
|
|
|
File without changes
|