@tencentcloud/tuiroom-engine-electron 2.4.0-alpha.2 → 2.4.0-alpha.3
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/index.cjs.js +1 -1
- package/index.d.ts +1113 -4
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/plugins/audio-effect-manager/index.cjs.js +0 -503
- package/plugins/audio-effect-manager/index.d.ts +0 -75
- package/plugins/audio-effect-manager/index.js +0 -495
- package/plugins/audio-effect-manager/index.umd.js +0 -507
- package/plugins/audio-effect-manager/package.json +0 -15
- package/plugins/device-manager-plugin/index.cjs.js +0 -568
- package/plugins/device-manager-plugin/index.d.ts +0 -69
- package/plugins/device-manager-plugin/index.js +0 -559
- package/plugins/device-manager-plugin/index.umd.js +0 -572
- package/plugins/device-manager-plugin/package.json +0 -14
- package/plugins/media-mixing-plugin/index.cjs.js +0 -128
- package/plugins/media-mixing-plugin/index.d.ts +0 -87
- package/plugins/media-mixing-plugin/index.js +0 -119
- package/plugins/media-mixing-plugin/index.umd.js +0 -132
- package/plugins/media-mixing-plugin/package.json +0 -14
- package/plugins/video-effect-plugin/index.cjs.js +0 -68
- package/plugins/video-effect-plugin/index.d.ts +0 -28
- package/plugins/video-effect-plugin/index.js +0 -59
- package/plugins/video-effect-plugin/index.umd.js +0 -71
- package/plugins/video-effect-plugin/package.json +0 -15
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('trtc-electron-sdk'), require('trtc-electron-sdk/liteav/plugins/video-effect-plugin')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'trtc-electron-sdk', 'trtc-electron-sdk/liteav/plugins/video-effect-plugin'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TUIVideoEffectPlugin = {}, global.trtcElectronSdk, global.TRTCVideoEffectPluginManager));
|
|
5
|
-
})(this, (function (exports, trtcElectronSdk, TRTCVideoEffectPluginManager) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var TRTCVideoEffectPluginManager__default = /*#__PURE__*/_interopDefaultLegacy(TRTCVideoEffectPluginManager);
|
|
10
|
-
|
|
11
|
-
/* eslint no-underscore-dangle: "off"*/
|
|
12
|
-
const logger = console;
|
|
13
|
-
class TUIVideoEffectPlugin {
|
|
14
|
-
constructor(pluginId, deviceId, trtcVideoEffectPlugin) {
|
|
15
|
-
this._logPrefix = '[TUIVideoEffectPlugin]';
|
|
16
|
-
this._pluginId = pluginId;
|
|
17
|
-
this._deviceId = deviceId;
|
|
18
|
-
this._trtcVideoEffectPlugin = trtcVideoEffectPlugin;
|
|
19
|
-
}
|
|
20
|
-
get deviceId() {
|
|
21
|
-
return this._deviceId;
|
|
22
|
-
}
|
|
23
|
-
get id() {
|
|
24
|
-
return this._pluginId;
|
|
25
|
-
}
|
|
26
|
-
enable(flag) {
|
|
27
|
-
logger.debug(`${this._logPrefix}enable:${flag} ${this._pluginId}`);
|
|
28
|
-
this._trtcVideoEffectPlugin.enable(flag);
|
|
29
|
-
}
|
|
30
|
-
setParameter(param) {
|
|
31
|
-
logger.debug(`${this._logPrefix}setParameter:${this._pluginId}`);
|
|
32
|
-
this._trtcVideoEffectPlugin.setParameter(param);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const logPrefix = '[TUIVideoEffectPluginManager]';
|
|
36
|
-
const TUIVideoEffectPluginManager = {
|
|
37
|
-
setVideoPluginFormat: (bufferType = trtcElectronSdk.TRTCVideoBufferType.TRTCVideoBufferType_Buffer, pixelFormat) => {
|
|
38
|
-
logger.debug(`${logPrefix}setVideoPluginFormat bufferType:${bufferType} pixelFormat:${pixelFormat}`);
|
|
39
|
-
TRTCVideoEffectPluginManager__default["default"].setVideoPluginFormat(bufferType, pixelFormat);
|
|
40
|
-
},
|
|
41
|
-
addVideoPlugin: (options) => {
|
|
42
|
-
logger.debug(`${logPrefix}addVideoPlugin pluginId:${options.pluginId} deviceId:${options.deviceId} path:${options.path}`);
|
|
43
|
-
const trtcVideoEffectPlugin = TRTCVideoEffectPluginManager__default["default"].addVideoPlugin(options);
|
|
44
|
-
if (trtcVideoEffectPlugin) {
|
|
45
|
-
return new TUIVideoEffectPlugin(options.pluginId, options.deviceId, trtcVideoEffectPlugin);
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
},
|
|
49
|
-
removeVideoPlugin: (pluginId, deviceId) => {
|
|
50
|
-
logger.debug(`${logPrefix}removeVideoPlugin pluginId:${pluginId} deviceId:${deviceId}`);
|
|
51
|
-
TRTCVideoEffectPluginManager__default["default"].removeVideoPlugin(deviceId, pluginId);
|
|
52
|
-
},
|
|
53
|
-
setCallback: (callback) => {
|
|
54
|
-
TRTCVideoEffectPluginManager__default["default"].setCallback(callback);
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
exports.TUIVideoEffectEvents = void 0;
|
|
58
|
-
(function (TUIVideoEffectEvents) {
|
|
59
|
-
// 3D 引擎资源初始化失败
|
|
60
|
-
// 等其他未知错误
|
|
61
|
-
TUIVideoEffectEvents["onError"] = "onError";
|
|
62
|
-
// 不支持分割
|
|
63
|
-
TUIVideoEffectEvents["onNotSupportSegmentation"] = "onNotSupportSegmentation";
|
|
64
|
-
})(exports.TUIVideoEffectEvents || (exports.TUIVideoEffectEvents = {}));
|
|
65
|
-
|
|
66
|
-
exports.TUIVideoEffectPlugin = TUIVideoEffectPlugin;
|
|
67
|
-
exports["default"] = TUIVideoEffectPluginManager;
|
|
68
|
-
|
|
69
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
70
|
-
|
|
71
|
-
}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tuiroom-engine-electron/video-effect-plugin",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "TUI Room Engine video effect plugin for Electron.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "./index.js",
|
|
7
|
-
"types": "index.d.ts",
|
|
8
|
-
"author": "zackshi <zackshi@tencent.com>",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"TRTC",
|
|
11
|
-
"Room",
|
|
12
|
-
"video",
|
|
13
|
-
"video effect"
|
|
14
|
-
]
|
|
15
|
-
}
|