@webex/media-helpers 3.0.0-beta.166 → 3.0.0-beta.168
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/constants.js +59 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/constants.ts +29 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PresetCameraConstraints = exports.FacingMode = exports.DisplaySurface = void 0;
|
|
8
|
+
var FacingMode; // can be used later on when we add constraints in create display track
|
|
9
|
+
exports.FacingMode = FacingMode;
|
|
10
|
+
(function (FacingMode) {
|
|
11
|
+
FacingMode["user"] = "user";
|
|
12
|
+
FacingMode["environment"] = "environment";
|
|
13
|
+
})(FacingMode || (exports.FacingMode = FacingMode = {}));
|
|
14
|
+
var DisplaySurface;
|
|
15
|
+
exports.DisplaySurface = DisplaySurface;
|
|
16
|
+
(function (DisplaySurface) {
|
|
17
|
+
DisplaySurface["browser"] = "browser";
|
|
18
|
+
DisplaySurface["monitor"] = "monitor";
|
|
19
|
+
DisplaySurface["window"] = "window";
|
|
20
|
+
})(DisplaySurface || (exports.DisplaySurface = DisplaySurface = {}));
|
|
21
|
+
var PresetCameraConstraints = {
|
|
22
|
+
'1080p': {
|
|
23
|
+
frameRate: 30,
|
|
24
|
+
width: 1920,
|
|
25
|
+
height: 1080
|
|
26
|
+
},
|
|
27
|
+
'720p': {
|
|
28
|
+
frameRate: 30,
|
|
29
|
+
width: 1280,
|
|
30
|
+
height: 720
|
|
31
|
+
},
|
|
32
|
+
'480p': {
|
|
33
|
+
frameRate: 30,
|
|
34
|
+
width: 640,
|
|
35
|
+
height: 480
|
|
36
|
+
},
|
|
37
|
+
'360p': {
|
|
38
|
+
frameRate: 30,
|
|
39
|
+
width: 640,
|
|
40
|
+
height: 360
|
|
41
|
+
},
|
|
42
|
+
'240p': {
|
|
43
|
+
frameRate: 30,
|
|
44
|
+
width: 320,
|
|
45
|
+
height: 240
|
|
46
|
+
},
|
|
47
|
+
'180p': {
|
|
48
|
+
frameRate: 30,
|
|
49
|
+
width: 320,
|
|
50
|
+
height: 180
|
|
51
|
+
},
|
|
52
|
+
'120p': {
|
|
53
|
+
frameRate: 30,
|
|
54
|
+
width: 160,
|
|
55
|
+
height: 120
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.PresetCameraConstraints = PresetCameraConstraints;
|
|
59
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FacingMode","DisplaySurface","PresetCameraConstraints","frameRate","width","height"],"sources":["constants.ts"],"sourcesContent":["import {VideoDeviceConstraints} from '@webex/internal-media-core';\n\nexport enum FacingMode {\n user = 'user',\n environment = 'environment',\n}\n\n// can be used later on when we add constraints in create display track\nexport enum DisplaySurface {\n browser = 'browser',\n monitor = 'monitor',\n window = 'window',\n}\n\nexport const PresetCameraConstraints: {[key: string]: VideoDeviceConstraints} = {\n '1080p': {frameRate: 30, width: 1920, height: 1080},\n\n '720p': {frameRate: 30, width: 1280, height: 720},\n\n '480p': {frameRate: 30, width: 640, height: 480},\n\n '360p': {frameRate: 30, width: 640, height: 360},\n\n '240p': {frameRate: 30, width: 320, height: 240},\n\n '180p': {frameRate: 30, width: 320, height: 180},\n\n '120p': {frameRate: 30, width: 160, height: 120},\n};\n"],"mappings":";;;;;;;IAEYA,UAAU,EAKtB;AAAA;AAAA,WALYA,UAAU;EAAVA,UAAU;EAAVA,UAAU;AAAA,GAAVA,UAAU,0BAAVA,UAAU;AAAA,IAMVC,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc;AAMnB,IAAMC,uBAAgE,GAAG;EAC9E,OAAO,EAAE;IAACC,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAI,CAAC;EAEnD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAG,CAAC;EAEjD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAG,CAAC;EAEhD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAG,CAAC;EAEhD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAG,CAAC;EAEhD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAG,CAAC;EAEhD,MAAM,EAAE;IAACF,SAAS,EAAE,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAG;AACjD,CAAC;AAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,18 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/defi
|
|
|
4
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
_Object$defineProperty(exports, "DisplaySurface", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _constants.DisplaySurface;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
_Object$defineProperty(exports, "FacingMode", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _constants.FacingMode;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
7
19
|
_Object$defineProperty(exports, "LocalCameraTrack", {
|
|
8
20
|
enumerable: true,
|
|
9
21
|
get: function get() {
|
|
@@ -52,6 +64,12 @@ _Object$defineProperty(exports, "NoiseReductionEffect", {
|
|
|
52
64
|
return _webMediaEffects.NoiseReductionEffect;
|
|
53
65
|
}
|
|
54
66
|
});
|
|
67
|
+
_Object$defineProperty(exports, "PresetCameraConstraints", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function get() {
|
|
70
|
+
return _constants.PresetCameraConstraints;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
55
73
|
_Object$defineProperty(exports, "VirtualBackgroundEffect", {
|
|
56
74
|
enumerable: true,
|
|
57
75
|
get: function get() {
|
|
@@ -84,4 +102,5 @@ _Object$defineProperty(exports, "getDevices", {
|
|
|
84
102
|
});
|
|
85
103
|
var _webrtcCore = require("./webrtc-core");
|
|
86
104
|
var _webMediaEffects = require("@webex/web-media-effects");
|
|
105
|
+
var _constants = require("./constants");
|
|
87
106
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export {\n getDevices,\n LocalTrack,\n LocalDisplayTrack,\n LocalTrackEvents,\n type TrackMuteEvent,\n type ServerMuteReason,\n LocalMicrophoneTrackEvents,\n LocalCameraTrackEvents,\n LocalMicrophoneTrack,\n LocalCameraTrack,\n createMicrophoneTrack,\n createCameraTrack,\n createDisplayTrack,\n} from './webrtc-core';\n\nexport {NoiseReductionEffect, VirtualBackgroundEffect} from '@webex/web-media-effects';\nexport type {\n NoiseReductionEffectOptions,\n VirtualBackgroundEffectOptions,\n} from '@webex/web-media-effects';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export {\n getDevices,\n LocalTrack,\n LocalDisplayTrack,\n LocalTrackEvents,\n type TrackMuteEvent,\n type ServerMuteReason,\n LocalMicrophoneTrackEvents,\n LocalCameraTrackEvents,\n LocalMicrophoneTrack,\n LocalCameraTrack,\n createMicrophoneTrack,\n createCameraTrack,\n createDisplayTrack,\n} from './webrtc-core';\n\nexport {NoiseReductionEffect, VirtualBackgroundEffect} from '@webex/web-media-effects';\nexport type {\n NoiseReductionEffectOptions,\n VirtualBackgroundEffectOptions,\n} from '@webex/web-media-effects';\n\nexport {FacingMode, DisplaySurface, PresetCameraConstraints} from './constants';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;AAMA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/media-helpers",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.168",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
28
|
-
"@webex/test-helper-mock-webex": "3.0.0-beta.
|
|
27
|
+
"@webex/test-helper-chai": "3.0.0-beta.168",
|
|
28
|
+
"@webex/test-helper-mock-webex": "3.0.0-beta.168",
|
|
29
29
|
"sinon": "^9.2.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {VideoDeviceConstraints} from '@webex/internal-media-core';
|
|
2
|
+
|
|
3
|
+
export enum FacingMode {
|
|
4
|
+
user = 'user',
|
|
5
|
+
environment = 'environment',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// can be used later on when we add constraints in create display track
|
|
9
|
+
export enum DisplaySurface {
|
|
10
|
+
browser = 'browser',
|
|
11
|
+
monitor = 'monitor',
|
|
12
|
+
window = 'window',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const PresetCameraConstraints: {[key: string]: VideoDeviceConstraints} = {
|
|
16
|
+
'1080p': {frameRate: 30, width: 1920, height: 1080},
|
|
17
|
+
|
|
18
|
+
'720p': {frameRate: 30, width: 1280, height: 720},
|
|
19
|
+
|
|
20
|
+
'480p': {frameRate: 30, width: 640, height: 480},
|
|
21
|
+
|
|
22
|
+
'360p': {frameRate: 30, width: 640, height: 360},
|
|
23
|
+
|
|
24
|
+
'240p': {frameRate: 30, width: 320, height: 240},
|
|
25
|
+
|
|
26
|
+
'180p': {frameRate: 30, width: 320, height: 180},
|
|
27
|
+
|
|
28
|
+
'120p': {frameRate: 30, width: 160, height: 120},
|
|
29
|
+
};
|