@wireapp/avs 9.9.3 → 9.9.5
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/avs_core.js +8 -2
- package/dist/avs_wcall.d.ts +6 -0
- package/dist/avs_wcall.js +12 -1
- package/package.json +1 -1
package/dist/avs_wcall.d.ts
CHANGED
|
@@ -77,6 +77,10 @@ export declare enum STATE {
|
|
|
77
77
|
export declare enum VSTREAMS {
|
|
78
78
|
LIST = 0
|
|
79
79
|
}
|
|
80
|
+
export declare enum MODE {
|
|
81
|
+
MARSHAL = 0,
|
|
82
|
+
DIRECT = 1
|
|
83
|
+
}
|
|
80
84
|
export interface WcallMember {
|
|
81
85
|
userid: string;
|
|
82
86
|
clientid: string;
|
|
@@ -162,6 +166,8 @@ export declare class Wcall {
|
|
|
162
166
|
processNotifications(wuser: number, processing: number): number;
|
|
163
167
|
poll(): void;
|
|
164
168
|
setupEx(flags: number): number;
|
|
169
|
+
setMode(mode: number): void;
|
|
170
|
+
getMode(): number;
|
|
165
171
|
setUserMediaHandler(userMediaHandler: UserMediaHandler): void;
|
|
166
172
|
setAudioStreamHandler(audioStreamHandler: AudioStreamHandler): void;
|
|
167
173
|
setVideoStreamHandler(videoStreamHandler: VideoStreamHandler): void;
|
package/dist/avs_wcall.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.getAvsInstance = exports.Wcall = exports.VSTREAMS = exports.STATE = exports.CONV_TYPE = exports.CALL_TYPE = exports.ENV = exports.VIDEO_STATE = exports.AUDIO_STATE = exports.LOG_LEVEL = exports.REASON = exports.QUALITY = exports.ERROR = void 0;
|
|
20
|
+
exports.getAvsInstance = exports.Wcall = exports.MODE = exports.VSTREAMS = exports.STATE = exports.CONV_TYPE = exports.CALL_TYPE = exports.ENV = exports.VIDEO_STATE = exports.AUDIO_STATE = exports.LOG_LEVEL = exports.REASON = exports.QUALITY = exports.ERROR = void 0;
|
|
21
21
|
/* DO NOT edit this file by hand. It is generated by the AVS make
|
|
22
22
|
* system and any changes you make will be lost.
|
|
23
23
|
*/
|
|
@@ -112,6 +112,11 @@ var VSTREAMS;
|
|
|
112
112
|
(function (VSTREAMS) {
|
|
113
113
|
VSTREAMS[VSTREAMS["LIST"] = 0] = "LIST";
|
|
114
114
|
})(VSTREAMS = exports.VSTREAMS || (exports.VSTREAMS = {}));
|
|
115
|
+
var MODE;
|
|
116
|
+
(function (MODE) {
|
|
117
|
+
MODE[MODE["MARSHAL"] = 0] = "MARSHAL";
|
|
118
|
+
MODE[MODE["DIRECT"] = 1] = "DIRECT";
|
|
119
|
+
})(MODE = exports.MODE || (exports.MODE = {}));
|
|
115
120
|
var instance;
|
|
116
121
|
var logFn;
|
|
117
122
|
var logHandler = function (level, msg, err) {
|
|
@@ -585,6 +590,12 @@ var Wcall = /** @class */ (function () {
|
|
|
585
590
|
Wcall.prototype.setupEx = function (flags) {
|
|
586
591
|
return this.em_module.ccall("wcall_setup_ex", "number", ["number"], [flags]);
|
|
587
592
|
};
|
|
593
|
+
Wcall.prototype.setMode = function (mode) {
|
|
594
|
+
this.em_module.ccall("wcall_set_mode", "null", ["number"], [mode]);
|
|
595
|
+
};
|
|
596
|
+
Wcall.prototype.getMode = function () {
|
|
597
|
+
return this.em_module.ccall("wcall_get_mode", "number", [], []);
|
|
598
|
+
};
|
|
588
599
|
Wcall.prototype.setUserMediaHandler = function (userMediaHandler) {
|
|
589
600
|
avs_pc_1.default.setUserMediaHandler(userMediaHandler);
|
|
590
601
|
};
|
package/package.json
CHANGED