podchat-browser 12.5.2-snapshot.7 → 12.6.0
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 +13 -0
- package/dist/node/lib/call/deviceCheck.js +69 -0
- package/dist/{podchat-12.1.0.js → podchat-12.6.0.js} +58305 -57124
- package/examples/bundle-test.js +55982 -55982
- package/package.json +3 -3
- package/dist/podchat-11.4.2.js +0 -74696
- package/dist/podchat-11.4.3.js +0 -74696
package/changelog.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented here.
|
|
4
4
|
to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.ir/pod/pod-basic-sdk/chat-js-browser-sdk/-/blob/master/changelog.md)
|
|
5
5
|
|
|
6
|
+
## [12.6.0] - 2022-06-16
|
|
7
|
+
### Fixed
|
|
8
|
+
- User being muted when muting others
|
|
9
|
+
- Mute audio send only not all audio tags (Causes problems in Apple devices)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Improved call error logs in Sentry
|
|
13
|
+
- Update sentry url
|
|
14
|
+
- Update async package
|
|
15
|
+
- TypeCode handling functionality
|
|
16
|
+
- Updated sentry server URL
|
|
17
|
+
- Removed CALL_ENDED from LEAVE_CALL event in GroupCall
|
|
18
|
+
|
|
6
19
|
## [12.5.2-snapshot.7] - 2022-06-1
|
|
7
20
|
### Changed
|
|
8
21
|
- Removed CALL_ENDED from LEAVE_CALL event in GroupCall
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
require("../constants.js");
|
|
9
|
+
|
|
10
|
+
var deviceList = {
|
|
11
|
+
audioIn: [],
|
|
12
|
+
audioOut: [],
|
|
13
|
+
videoIn: []
|
|
14
|
+
};
|
|
15
|
+
var deviceManager = {
|
|
16
|
+
getAvailableDevices: function getAvailableDevices() {
|
|
17
|
+
deviceManager.getInputDevicesPermissions().then(function () {
|
|
18
|
+
// deviceManager.changeAudioOutputDevice();
|
|
19
|
+
navigator.mediaDevices.enumerateDevices().then(function (devices) {
|
|
20
|
+
devices.forEach(function (device) {
|
|
21
|
+
console.log(device);
|
|
22
|
+
console.log(device.kind + ": " + device.label + " id = " + device.deviceId);
|
|
23
|
+
});
|
|
24
|
+
})["catch"](function (err) {
|
|
25
|
+
console.log(err.name + ": " + err.message);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
getInputDevices: function getInputDevices() {},
|
|
30
|
+
changeAudioOutputDevice: function changeAudioOutputDevice() {
|
|
31
|
+
if (!navigator.mediaDevices.selectAudioOutput) {
|
|
32
|
+
console.warn("selectAudioOutput() not supported.");
|
|
33
|
+
return;
|
|
34
|
+
} //Display prompt and log selected device or error
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
navigator.mediaDevices.selectAudioOutput().then(function (device) {
|
|
38
|
+
console.log(device.kind + ": " + device.label + " id = " + device.deviceId);
|
|
39
|
+
})["catch"](function (err) {
|
|
40
|
+
console.log(err.name + ": " + err.message);
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
getScreenSharePermission: function getScreenSharePermission() {
|
|
44
|
+
return new Promise(function (resolve) {
|
|
45
|
+
navigator.mediaDevices.getDisplayMedia({
|
|
46
|
+
audio: true,
|
|
47
|
+
video: true
|
|
48
|
+
}).then(function (result) {
|
|
49
|
+
console.log(result);
|
|
50
|
+
resolve(result);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
getInputDevicesPermissions: function getInputDevicesPermissions() {
|
|
55
|
+
return new Promise(function (resolve) {
|
|
56
|
+
navigator.mediaDevices.getUserMedia({
|
|
57
|
+
audio: false,
|
|
58
|
+
video: true
|
|
59
|
+
}).then(function (result) {
|
|
60
|
+
console.log(result);
|
|
61
|
+
resolve(result);
|
|
62
|
+
})["catch"](function (error) {
|
|
63
|
+
console.log(error);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var _default = deviceManager;
|
|
69
|
+
exports["default"] = _default;
|