podchat-browser 12.6.0 → 12.6.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.
File without changes
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "podchat-browser",
3
- "version": "12.6.0",
3
+ "version": "12.6.1",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./src/chat.js",
6
6
  "scripts": {
7
7
  "test": "mocha --reporter spec --exit",
8
- "bundle": "browserify browser-bundling.js -o ./dist/podchat-12.6.0.js",
8
+ "bundle": "browserify browser-bundling.js -o ./dist/podchat-12.6.1.js",
9
9
  "bundle:test": "browserify browser-bundling.js -o ./examples/bundle-test.js",
10
10
  "publish:snapshot": "npm run version:snapshot && npm publish --tag snapshot",
11
11
  "version:snapshot": "npm version prerelease --preid snapshot",
12
12
  "publish:release": "npm run version:release && npm publish",
13
- "version:release": "npm version 12.6.0"
13
+ "version:release": "npm version 12.6.1"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -1,69 +0,0 @@
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;