@byteplus/react-native-live-push 1.3.0-rc.0 → 1.3.0-rc.2
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/android/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLiveEffectHelper.java +222 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +2 -0
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +6 -1
- package/ios/VeLivePushHelper.h +2 -1
- package/ios/VeLivePushHelper.m +7 -0
- package/lib/commonjs/index.js +487 -279
- package/lib/commonjs/typescript/core/api.d.ts +7 -1
- package/lib/commonjs/typescript/core/effect.d.ts +15 -0
- package/lib/commonjs/typescript/core/index.d.ts +1 -0
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/commonjs/typescript/utils/index.d.ts +4 -0
- package/lib/module/index.js +487 -280
- package/lib/module/typescript/core/api.d.ts +7 -1
- package/lib/module/typescript/core/effect.d.ts +15 -0
- package/lib/module/typescript/core/index.d.ts +1 -0
- package/lib/module/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/module/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/module/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/module/typescript/utils/index.d.ts +4 -0
- package/lib/typescript/core/api.d.ts +7 -1
- package/lib/typescript/core/effect.d.ts +15 -0
- package/lib/typescript/core/index.d.ts +1 -0
- package/lib/typescript/platforms/android/extends.d.ts +2 -0
- package/lib/typescript/platforms/android/helper.d.ts +10 -0
- package/lib/typescript/platforms/ios/helper.d.ts +1 -0
- package/lib/typescript/utils/index.d.ts +4 -0
- package/package.json +1 -1
- package/react-native-velive-push.podspec +3 -3
package/lib/commonjs/index.js
CHANGED
|
@@ -2981,7 +2981,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
2981
2981
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2982
2982
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2983
2983
|
***************************************************************************** */
|
|
2984
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
2984
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
2985
2985
|
|
|
2986
2986
|
var extendStatics = function(d, b) {
|
|
2987
2987
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -3057,7 +3057,7 @@ function __runInitializers(thisArg, initializers, value) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
function __setFunctionName(f, name, prefix) {
|
|
3059
3059
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
3060
|
-
return Object.defineProperty(f, "name", { configurable: true, value: name });
|
|
3060
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
3061
3061
|
}
|
|
3062
3062
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3063
3063
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -3070,8 +3070,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
3070
3070
|
}
|
|
3071
3071
|
|
|
3072
3072
|
function __generator(thisArg, body) {
|
|
3073
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3074
|
-
return g =
|
|
3073
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
3074
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3075
3075
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3076
3076
|
function step(op) {
|
|
3077
3077
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -3130,6 +3130,172 @@ var NativeViewComponent = /** @class */ (function (_super) {
|
|
|
3130
3130
|
return NativeViewComponent;
|
|
3131
3131
|
}(React.Component));
|
|
3132
3132
|
|
|
3133
|
+
var VeLivePushHelper$1 = function () {
|
|
3134
|
+
var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.VeLivePushHelper')];
|
|
3135
|
+
var _classDescriptor;
|
|
3136
|
+
var _classExtraInitializers = [];
|
|
3137
|
+
var _classThis;
|
|
3138
|
+
var _staticExtraInitializers = [];
|
|
3139
|
+
var _static_setVeLivePusher_decorators;
|
|
3140
|
+
var _static_removeVeLivePusher_decorators;
|
|
3141
|
+
var VeLivePushHelper = _classThis = /** @class */ (function () {
|
|
3142
|
+
function VeLivePushHelper_1() {
|
|
3143
|
+
}
|
|
3144
|
+
VeLivePushHelper_1.setPusher = function (viewId, pusher) {
|
|
3145
|
+
VeLivePushHelper.pusherMap.set(pusher, viewId);
|
|
3146
|
+
this.setVeLivePusher(viewId, pusher);
|
|
3147
|
+
};
|
|
3148
|
+
VeLivePushHelper_1.removePusher = function (pusher) {
|
|
3149
|
+
var viewId = VeLivePushHelper.pusherMap.get(pusher);
|
|
3150
|
+
if (viewId) {
|
|
3151
|
+
VeLivePushHelper.pusherMap.delete(pusher);
|
|
3152
|
+
this.removeVeLivePusher(viewId);
|
|
3153
|
+
}
|
|
3154
|
+
};
|
|
3155
|
+
VeLivePushHelper_1.setVeLivePusher = function (viewId, pusher) {
|
|
3156
|
+
throw new Error('');
|
|
3157
|
+
};
|
|
3158
|
+
VeLivePushHelper_1.removeVeLivePusher = function (viewId) {
|
|
3159
|
+
throw new Error('');
|
|
3160
|
+
};
|
|
3161
|
+
return VeLivePushHelper_1;
|
|
3162
|
+
}());
|
|
3163
|
+
__setFunctionName(_classThis, "VeLivePushHelper");
|
|
3164
|
+
(function () {
|
|
3165
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3166
|
+
_static_setVeLivePusher_decorators = [NativeStaticMethodSync()];
|
|
3167
|
+
_static_removeVeLivePusher_decorators = [NativeStaticMethodSync()];
|
|
3168
|
+
__esDecorate(_classThis, null, _static_setVeLivePusher_decorators, { kind: "method", name: "setVeLivePusher", static: true, private: false, access: { has: function (obj) { return "setVeLivePusher" in obj; }, get: function (obj) { return obj.setVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3169
|
+
__esDecorate(_classThis, null, _static_removeVeLivePusher_decorators, { kind: "method", name: "removeVeLivePusher", static: true, private: false, access: { has: function (obj) { return "removeVeLivePusher" in obj; }, get: function (obj) { return obj.removeVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3170
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
3171
|
+
VeLivePushHelper = _classThis = _classDescriptor.value;
|
|
3172
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
3173
|
+
})();
|
|
3174
|
+
_classThis.pusherMap = (__runInitializers(_classThis, _staticExtraInitializers), new WeakMap());
|
|
3175
|
+
(function () {
|
|
3176
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
3177
|
+
})();
|
|
3178
|
+
return VeLivePushHelper = _classThis;
|
|
3179
|
+
}();
|
|
3180
|
+
var VeLiveEffectHelper = function () {
|
|
3181
|
+
var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.VeLiveEffectHelper')];
|
|
3182
|
+
var _classDescriptor;
|
|
3183
|
+
var _classExtraInitializers = [];
|
|
3184
|
+
var _classThis;
|
|
3185
|
+
var _staticExtraInitializers = [];
|
|
3186
|
+
var _static_getLicensePath_decorators;
|
|
3187
|
+
var _static_getModelPath_decorators;
|
|
3188
|
+
var _static_getBeautyPathByName_decorators;
|
|
3189
|
+
var _static_getStickerPathByName_decorators;
|
|
3190
|
+
var _static_getFilterPathByName_decorators;
|
|
3191
|
+
var _static_initVideoEffectResource_decorators;
|
|
3192
|
+
var _static_copyAssetFolder_decorators;
|
|
3193
|
+
_classThis = /** @class */ (function () {
|
|
3194
|
+
function VeLiveEffectHelper_1() {
|
|
3195
|
+
}
|
|
3196
|
+
VeLiveEffectHelper_1.getLicensePath = function (name) {
|
|
3197
|
+
throw new Error('');
|
|
3198
|
+
};
|
|
3199
|
+
VeLiveEffectHelper_1.getModelPath = function () {
|
|
3200
|
+
throw new Error('');
|
|
3201
|
+
};
|
|
3202
|
+
VeLiveEffectHelper_1.getBeautyPathByName = function (subPath) {
|
|
3203
|
+
throw new Error('');
|
|
3204
|
+
};
|
|
3205
|
+
VeLiveEffectHelper_1.getStickerPathByName = function (name) {
|
|
3206
|
+
throw new Error('');
|
|
3207
|
+
};
|
|
3208
|
+
VeLiveEffectHelper_1.getFilterPathByName = function (name) {
|
|
3209
|
+
throw new Error('');
|
|
3210
|
+
};
|
|
3211
|
+
VeLiveEffectHelper_1.initVideoEffectResource = function () {
|
|
3212
|
+
throw new Error('');
|
|
3213
|
+
};
|
|
3214
|
+
VeLiveEffectHelper_1.copyAssetFolder = function (context, srcName, dstName) {
|
|
3215
|
+
throw new Error('');
|
|
3216
|
+
};
|
|
3217
|
+
return VeLiveEffectHelper_1;
|
|
3218
|
+
}());
|
|
3219
|
+
__setFunctionName(_classThis, "VeLiveEffectHelper");
|
|
3220
|
+
(function () {
|
|
3221
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3222
|
+
_static_getLicensePath_decorators = [NativeStaticMethodSync()];
|
|
3223
|
+
_static_getModelPath_decorators = [NativeStaticMethodSync()];
|
|
3224
|
+
_static_getBeautyPathByName_decorators = [NativeStaticMethodSync()];
|
|
3225
|
+
_static_getStickerPathByName_decorators = [NativeStaticMethodSync()];
|
|
3226
|
+
_static_getFilterPathByName_decorators = [NativeStaticMethodSync()];
|
|
3227
|
+
_static_initVideoEffectResource_decorators = [NativeStaticMethodSync()];
|
|
3228
|
+
_static_copyAssetFolder_decorators = [NativeStaticMethodSync()];
|
|
3229
|
+
__esDecorate(_classThis, null, _static_getLicensePath_decorators, { kind: "method", name: "getLicensePath", static: true, private: false, access: { has: function (obj) { return "getLicensePath" in obj; }, get: function (obj) { return obj.getLicensePath; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3230
|
+
__esDecorate(_classThis, null, _static_getModelPath_decorators, { kind: "method", name: "getModelPath", static: true, private: false, access: { has: function (obj) { return "getModelPath" in obj; }, get: function (obj) { return obj.getModelPath; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3231
|
+
__esDecorate(_classThis, null, _static_getBeautyPathByName_decorators, { kind: "method", name: "getBeautyPathByName", static: true, private: false, access: { has: function (obj) { return "getBeautyPathByName" in obj; }, get: function (obj) { return obj.getBeautyPathByName; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3232
|
+
__esDecorate(_classThis, null, _static_getStickerPathByName_decorators, { kind: "method", name: "getStickerPathByName", static: true, private: false, access: { has: function (obj) { return "getStickerPathByName" in obj; }, get: function (obj) { return obj.getStickerPathByName; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3233
|
+
__esDecorate(_classThis, null, _static_getFilterPathByName_decorators, { kind: "method", name: "getFilterPathByName", static: true, private: false, access: { has: function (obj) { return "getFilterPathByName" in obj; }, get: function (obj) { return obj.getFilterPathByName; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3234
|
+
__esDecorate(_classThis, null, _static_initVideoEffectResource_decorators, { kind: "method", name: "initVideoEffectResource", static: true, private: false, access: { has: function (obj) { return "initVideoEffectResource" in obj; }, get: function (obj) { return obj.initVideoEffectResource; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3235
|
+
__esDecorate(_classThis, null, _static_copyAssetFolder_decorators, { kind: "method", name: "copyAssetFolder", static: true, private: false, access: { has: function (obj) { return "copyAssetFolder" in obj; }, get: function (obj) { return obj.copyAssetFolder; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3236
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
3237
|
+
_classThis = _classDescriptor.value;
|
|
3238
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
3239
|
+
__runInitializers(_classThis, _staticExtraInitializers);
|
|
3240
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
3241
|
+
})();
|
|
3242
|
+
return _classThis;
|
|
3243
|
+
}();
|
|
3244
|
+
|
|
3245
|
+
var VeLivePushHelper = function () {
|
|
3246
|
+
var _classDecorators = [NativeClass('VeLivePushHelper')];
|
|
3247
|
+
var _classDescriptor;
|
|
3248
|
+
var _classExtraInitializers = [];
|
|
3249
|
+
var _classThis;
|
|
3250
|
+
var _staticExtraInitializers = [];
|
|
3251
|
+
var _static_setVeLivePusher_decorators;
|
|
3252
|
+
var _static_removeVeLivePusher_decorators;
|
|
3253
|
+
var _static_getResourcePath_decorators;
|
|
3254
|
+
var VeLivePushHelper = _classThis = /** @class */ (function () {
|
|
3255
|
+
function VeLivePushHelper_1() {
|
|
3256
|
+
}
|
|
3257
|
+
VeLivePushHelper_1.setPusher = function (viewId, pusher) {
|
|
3258
|
+
VeLivePushHelper.pusherMap.set(pusher, viewId);
|
|
3259
|
+
this.setVeLivePusher(pusher, viewId);
|
|
3260
|
+
};
|
|
3261
|
+
VeLivePushHelper_1.removePusher = function (pusher) {
|
|
3262
|
+
var viewId = VeLivePushHelper.pusherMap.get(pusher);
|
|
3263
|
+
if (viewId) {
|
|
3264
|
+
VeLivePushHelper.pusherMap.delete(pusher);
|
|
3265
|
+
this.removeVeLivePusher(viewId);
|
|
3266
|
+
}
|
|
3267
|
+
};
|
|
3268
|
+
VeLivePushHelper_1.setVeLivePusher = function (pusher, viewId) {
|
|
3269
|
+
throw new Error('');
|
|
3270
|
+
};
|
|
3271
|
+
VeLivePushHelper_1.removeVeLivePusher = function (viewId) {
|
|
3272
|
+
throw new Error('');
|
|
3273
|
+
};
|
|
3274
|
+
VeLivePushHelper_1.getResourcePath = function (subPath) {
|
|
3275
|
+
throw new Error('');
|
|
3276
|
+
};
|
|
3277
|
+
return VeLivePushHelper_1;
|
|
3278
|
+
}());
|
|
3279
|
+
__setFunctionName(_classThis, "VeLivePushHelper");
|
|
3280
|
+
(function () {
|
|
3281
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3282
|
+
_static_setVeLivePusher_decorators = [NativeStaticMethodSync('setVeLivePusher:forKey:')];
|
|
3283
|
+
_static_removeVeLivePusher_decorators = [NativeStaticMethodSync('removeVeLivePusher:')];
|
|
3284
|
+
_static_getResourcePath_decorators = [NativeStaticMethodSync('getResourcePath:')];
|
|
3285
|
+
__esDecorate(_classThis, null, _static_setVeLivePusher_decorators, { kind: "method", name: "setVeLivePusher", static: true, private: false, access: { has: function (obj) { return "setVeLivePusher" in obj; }, get: function (obj) { return obj.setVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3286
|
+
__esDecorate(_classThis, null, _static_removeVeLivePusher_decorators, { kind: "method", name: "removeVeLivePusher", static: true, private: false, access: { has: function (obj) { return "removeVeLivePusher" in obj; }, get: function (obj) { return obj.removeVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3287
|
+
__esDecorate(_classThis, null, _static_getResourcePath_decorators, { kind: "method", name: "getResourcePath", static: true, private: false, access: { has: function (obj) { return "getResourcePath" in obj; }, get: function (obj) { return obj.getResourcePath; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
3288
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
3289
|
+
VeLivePushHelper = _classThis = _classDescriptor.value;
|
|
3290
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
3291
|
+
})();
|
|
3292
|
+
_classThis.pusherMap = (__runInitializers(_classThis, _staticExtraInitializers), new WeakMap());
|
|
3293
|
+
(function () {
|
|
3294
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
3295
|
+
})();
|
|
3296
|
+
return VeLivePushHelper = _classThis;
|
|
3297
|
+
}();
|
|
3298
|
+
|
|
3133
3299
|
var VeLiveVideoEncoderConfiguration$2 = function () {
|
|
3134
3300
|
var _classDecorators = [NativeClass('com.ss.avframework.live.VeLivePusherDef$VeLiveVideoEncoderConfiguration')];
|
|
3135
3301
|
var _classDescriptor;
|
|
@@ -15036,102 +15202,6 @@ var NativeUIView = function () {
|
|
|
15036
15202
|
return UIView;
|
|
15037
15203
|
})(NativeUIView));
|
|
15038
15204
|
|
|
15039
|
-
var VeLivePushHelper$1 = function () {
|
|
15040
|
-
var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.VeLivePushHelper')];
|
|
15041
|
-
var _classDescriptor;
|
|
15042
|
-
var _classExtraInitializers = [];
|
|
15043
|
-
var _classThis;
|
|
15044
|
-
var _staticExtraInitializers = [];
|
|
15045
|
-
var _static_setVeLivePusher_decorators;
|
|
15046
|
-
var _static_removeVeLivePusher_decorators;
|
|
15047
|
-
var VeLivePushHelper = _classThis = /** @class */ (function () {
|
|
15048
|
-
function VeLivePushHelper_1() {
|
|
15049
|
-
}
|
|
15050
|
-
VeLivePushHelper_1.setPusher = function (viewId, pusher) {
|
|
15051
|
-
VeLivePushHelper.pusherMap.set(pusher, viewId);
|
|
15052
|
-
this.setVeLivePusher(viewId, pusher);
|
|
15053
|
-
};
|
|
15054
|
-
VeLivePushHelper_1.removePusher = function (pusher) {
|
|
15055
|
-
var viewId = VeLivePushHelper.pusherMap.get(pusher);
|
|
15056
|
-
if (viewId) {
|
|
15057
|
-
VeLivePushHelper.pusherMap.delete(pusher);
|
|
15058
|
-
this.removeVeLivePusher(viewId);
|
|
15059
|
-
}
|
|
15060
|
-
};
|
|
15061
|
-
VeLivePushHelper_1.setVeLivePusher = function (viewId, pusher) {
|
|
15062
|
-
throw new Error('');
|
|
15063
|
-
};
|
|
15064
|
-
VeLivePushHelper_1.removeVeLivePusher = function (viewId) {
|
|
15065
|
-
throw new Error('');
|
|
15066
|
-
};
|
|
15067
|
-
return VeLivePushHelper_1;
|
|
15068
|
-
}());
|
|
15069
|
-
__setFunctionName(_classThis, "VeLivePushHelper");
|
|
15070
|
-
(function () {
|
|
15071
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
15072
|
-
_static_setVeLivePusher_decorators = [NativeStaticMethodSync()];
|
|
15073
|
-
_static_removeVeLivePusher_decorators = [NativeStaticMethodSync()];
|
|
15074
|
-
__esDecorate(_classThis, null, _static_setVeLivePusher_decorators, { kind: "method", name: "setVeLivePusher", static: true, private: false, access: { has: function (obj) { return "setVeLivePusher" in obj; }, get: function (obj) { return obj.setVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
15075
|
-
__esDecorate(_classThis, null, _static_removeVeLivePusher_decorators, { kind: "method", name: "removeVeLivePusher", static: true, private: false, access: { has: function (obj) { return "removeVeLivePusher" in obj; }, get: function (obj) { return obj.removeVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
15076
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
15077
|
-
VeLivePushHelper = _classThis = _classDescriptor.value;
|
|
15078
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
15079
|
-
})();
|
|
15080
|
-
_classThis.pusherMap = (__runInitializers(_classThis, _staticExtraInitializers), new WeakMap());
|
|
15081
|
-
(function () {
|
|
15082
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
15083
|
-
})();
|
|
15084
|
-
return VeLivePushHelper = _classThis;
|
|
15085
|
-
}();
|
|
15086
|
-
|
|
15087
|
-
var VeLivePushHelper = function () {
|
|
15088
|
-
var _classDecorators = [NativeClass('VeLivePushHelper')];
|
|
15089
|
-
var _classDescriptor;
|
|
15090
|
-
var _classExtraInitializers = [];
|
|
15091
|
-
var _classThis;
|
|
15092
|
-
var _staticExtraInitializers = [];
|
|
15093
|
-
var _static_setVeLivePusher_decorators;
|
|
15094
|
-
var _static_removeVeLivePusher_decorators;
|
|
15095
|
-
var VeLivePushHelper = _classThis = /** @class */ (function () {
|
|
15096
|
-
function VeLivePushHelper_1() {
|
|
15097
|
-
}
|
|
15098
|
-
VeLivePushHelper_1.setPusher = function (viewId, pusher) {
|
|
15099
|
-
VeLivePushHelper.pusherMap.set(pusher, viewId);
|
|
15100
|
-
this.setVeLivePusher(pusher, viewId);
|
|
15101
|
-
};
|
|
15102
|
-
VeLivePushHelper_1.removePusher = function (pusher) {
|
|
15103
|
-
var viewId = VeLivePushHelper.pusherMap.get(pusher);
|
|
15104
|
-
if (viewId) {
|
|
15105
|
-
VeLivePushHelper.pusherMap.delete(pusher);
|
|
15106
|
-
this.removeVeLivePusher(viewId);
|
|
15107
|
-
}
|
|
15108
|
-
};
|
|
15109
|
-
VeLivePushHelper_1.setVeLivePusher = function (pusher, viewId) {
|
|
15110
|
-
throw new Error('');
|
|
15111
|
-
};
|
|
15112
|
-
VeLivePushHelper_1.removeVeLivePusher = function (viewId) {
|
|
15113
|
-
throw new Error('');
|
|
15114
|
-
};
|
|
15115
|
-
return VeLivePushHelper_1;
|
|
15116
|
-
}());
|
|
15117
|
-
__setFunctionName(_classThis, "VeLivePushHelper");
|
|
15118
|
-
(function () {
|
|
15119
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
15120
|
-
_static_setVeLivePusher_decorators = [NativeStaticMethodSync('setVeLivePusher:forKey:')];
|
|
15121
|
-
_static_removeVeLivePusher_decorators = [NativeStaticMethodSync('removeVeLivePusher:')];
|
|
15122
|
-
__esDecorate(_classThis, null, _static_setVeLivePusher_decorators, { kind: "method", name: "setVeLivePusher", static: true, private: false, access: { has: function (obj) { return "setVeLivePusher" in obj; }, get: function (obj) { return obj.setVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
15123
|
-
__esDecorate(_classThis, null, _static_removeVeLivePusher_decorators, { kind: "method", name: "removeVeLivePusher", static: true, private: false, access: { has: function (obj) { return "removeVeLivePusher" in obj; }, get: function (obj) { return obj.removeVeLivePusher; } }, metadata: _metadata }, null, _staticExtraInitializers);
|
|
15124
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
15125
|
-
VeLivePushHelper = _classThis = _classDescriptor.value;
|
|
15126
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
15127
|
-
})();
|
|
15128
|
-
_classThis.pusherMap = (__runInitializers(_classThis, _staticExtraInitializers), new WeakMap());
|
|
15129
|
-
(function () {
|
|
15130
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
15131
|
-
})();
|
|
15132
|
-
return VeLivePushHelper = _classThis;
|
|
15133
|
-
}();
|
|
15134
|
-
|
|
15135
15205
|
/** {zh}
|
|
15136
15206
|
* @detail keytype
|
|
15137
15207
|
* @brief 推流本地文件录制配置。
|
|
@@ -25736,33 +25806,185 @@ var VeLiveAudioDevice = function () {
|
|
|
25736
25806
|
return _classThis;
|
|
25737
25807
|
}();
|
|
25738
25808
|
|
|
25739
|
-
|
|
25740
|
-
|
|
25741
|
-
|
|
25742
|
-
|
|
25743
|
-
|
|
25744
|
-
|
|
25745
|
-
|
|
25746
|
-
|
|
25747
|
-
|
|
25748
|
-
|
|
25749
|
-
|
|
25750
|
-
|
|
25751
|
-
|
|
25752
|
-
|
|
25753
|
-
|
|
25754
|
-
|
|
25755
|
-
|
|
25756
|
-
|
|
25757
|
-
|
|
25758
|
-
|
|
25759
|
-
|
|
25760
|
-
|
|
25761
|
-
|
|
25762
|
-
|
|
25763
|
-
|
|
25764
|
-
|
|
25765
|
-
|
|
25809
|
+
/** {zh}
|
|
25810
|
+
* @detail errorcode
|
|
25811
|
+
* @brief 推流过程错误码定义。
|
|
25812
|
+
*
|
|
25813
|
+
*/
|
|
25814
|
+
exports.VeLivePusherErrorCode = void 0;
|
|
25815
|
+
(function (VeLivePusherErrorCode) {
|
|
25816
|
+
/** {zh}
|
|
25817
|
+
* @brief 无错误。
|
|
25818
|
+
*
|
|
25819
|
+
*/
|
|
25820
|
+
/** {en}
|
|
25821
|
+
* @brief No error.
|
|
25822
|
+
*
|
|
25823
|
+
*/
|
|
25824
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherSuccess"] = 0] = "VeLivePusherSuccess";
|
|
25825
|
+
/** {zh}
|
|
25826
|
+
* @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
25827
|
+
*
|
|
25828
|
+
*/
|
|
25829
|
+
/** {en}
|
|
25830
|
+
* @brief SDK license error, possibly caused by an invalid or expired certificate.
|
|
25831
|
+
*
|
|
25832
|
+
*/
|
|
25833
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherInvalidLicense"] = -1] = "VeLivePusherInvalidLicense";
|
|
25834
|
+
/** {zh}
|
|
25835
|
+
* @brief 参数错误,请检查入参,并重新调用。
|
|
25836
|
+
*
|
|
25837
|
+
*/
|
|
25838
|
+
/** {en}
|
|
25839
|
+
* @brief Parameter error, possibly caused by an invalid parameter value or parameter type.
|
|
25840
|
+
*
|
|
25841
|
+
*/
|
|
25842
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherInvalidParameter"] = -2] = "VeLivePusherInvalidParameter";
|
|
25843
|
+
/** {zh}
|
|
25844
|
+
* @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
|
|
25845
|
+
*
|
|
25846
|
+
*/
|
|
25847
|
+
/** {en}
|
|
25848
|
+
* @brief Video capture error, possibly caused by the lack of access to the video device.
|
|
25849
|
+
*
|
|
25850
|
+
*/
|
|
25851
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoCaptureError"] = -3] = "VeLivePusherVideoCaptureError";
|
|
25852
|
+
/** {zh}
|
|
25853
|
+
* @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
|
|
25854
|
+
*
|
|
25855
|
+
*/
|
|
25856
|
+
/** {en}
|
|
25857
|
+
* @brief Audio capture error, possibly caused by the lack of access to the audio device.
|
|
25858
|
+
*
|
|
25859
|
+
*/
|
|
25860
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioCaptureError"] = -4] = "VeLivePusherAudioCaptureError";
|
|
25861
|
+
/** {zh}
|
|
25862
|
+
* @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25863
|
+
*
|
|
25864
|
+
*/
|
|
25865
|
+
/** {en}
|
|
25866
|
+
* @brief Video encoding error, possibly caused by a configuration issue with the video encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25867
|
+
*
|
|
25868
|
+
*/
|
|
25869
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoEncoderError"] = -5] = "VeLivePusherVideoEncoderError";
|
|
25870
|
+
/** {zh}
|
|
25871
|
+
* @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25872
|
+
*
|
|
25873
|
+
*/
|
|
25874
|
+
/** {en}
|
|
25875
|
+
* @brief Audio encoding error, possibly caused by a configuration issue with the audio encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25876
|
+
*
|
|
25877
|
+
*/
|
|
25878
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioEncoderError"] = -6] = "VeLivePusherAudioEncoderError";
|
|
25879
|
+
/** {zh}
|
|
25880
|
+
* @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25881
|
+
*
|
|
25882
|
+
*/
|
|
25883
|
+
/** {en}
|
|
25884
|
+
* @brief Network error, which might be caused by network connection issues such as network instability or high latency. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25885
|
+
*
|
|
25886
|
+
*/
|
|
25887
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherTransportError"] = -7] = "VeLivePusherTransportError";
|
|
25888
|
+
/** {zh}
|
|
25889
|
+
* @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25890
|
+
*
|
|
25891
|
+
*/
|
|
25892
|
+
/** {en}
|
|
25893
|
+
* @brief Special effects error. Please check if the Effects SDK has been integrated and initialized, and if the path of the effects resources is correctly set. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25894
|
+
*
|
|
25895
|
+
*/
|
|
25896
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoEffectError"] = -8] = "VeLivePusherVideoEffectError";
|
|
25897
|
+
/** {zh}
|
|
25898
|
+
* @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25899
|
+
*
|
|
25900
|
+
*/
|
|
25901
|
+
/** {en}
|
|
25902
|
+
* @brief Audio device error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25903
|
+
*
|
|
25904
|
+
*/
|
|
25905
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioDeviceError"] = -9] = "VeLivePusherAudioDeviceError";
|
|
25906
|
+
/** {zh}
|
|
25907
|
+
* @platform android
|
|
25908
|
+
* @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
|
|
25909
|
+
*
|
|
25910
|
+
*/
|
|
25911
|
+
/** {en}
|
|
25912
|
+
* @platform android
|
|
25913
|
+
* @brief The license does not support H265.
|
|
25914
|
+
*
|
|
25915
|
+
*/
|
|
25916
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherLicenseUnsupportedH265"] = -10] = "VeLivePusherLicenseUnsupportedH265";
|
|
25917
|
+
/** {zh}
|
|
25918
|
+
* @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25919
|
+
*
|
|
25920
|
+
*/
|
|
25921
|
+
/** {en}
|
|
25922
|
+
* @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
25923
|
+
*
|
|
25924
|
+
*/
|
|
25925
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherError"] = -100] = "VeLivePusherError";
|
|
25926
|
+
/** {zh}
|
|
25927
|
+
* @platform android
|
|
25928
|
+
* @brief 当前系统版本不支持屏幕采集功能
|
|
25929
|
+
*
|
|
25930
|
+
*/
|
|
25931
|
+
/** {en}
|
|
25932
|
+
* @platform android
|
|
25933
|
+
* @brief
|
|
25934
|
+
*
|
|
25935
|
+
*/
|
|
25936
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureNotSupportError"] = -99] = "VeLivePusherScreenCaptureNotSupportError";
|
|
25937
|
+
/** {zh}
|
|
25938
|
+
* @platform android
|
|
25939
|
+
* @brief 屏幕采集权限的获取被用户拒绝
|
|
25940
|
+
*
|
|
25941
|
+
*/
|
|
25942
|
+
/** {en}
|
|
25943
|
+
* @platform android
|
|
25944
|
+
* @brief
|
|
25945
|
+
*
|
|
25946
|
+
*/
|
|
25947
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureStartError"] = -98] = "VeLivePusherScreenCaptureStartError";
|
|
25948
|
+
/** {zh}
|
|
25949
|
+
* @platform android
|
|
25950
|
+
* @brief 屏幕采集被系统中断,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
25951
|
+
*
|
|
25952
|
+
*/
|
|
25953
|
+
/** {en}
|
|
25954
|
+
* @platform android
|
|
25955
|
+
* @brief
|
|
25956
|
+
*
|
|
25957
|
+
*/
|
|
25958
|
+
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureInterruptedError"] = -97] = "VeLivePusherScreenCaptureInterruptedError";
|
|
25959
|
+
})(exports.VeLivePusherErrorCode || (exports.VeLivePusherErrorCode = {}));
|
|
25960
|
+
|
|
25961
|
+
var VeLiveMixerManager$2 = function () {
|
|
25962
|
+
var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.mixer.MixerManager')];
|
|
25963
|
+
var _classDescriptor;
|
|
25964
|
+
var _classExtraInitializers = [];
|
|
25965
|
+
var _classThis;
|
|
25966
|
+
var _instanceExtraInitializers = [];
|
|
25967
|
+
var _setPusher_decorators;
|
|
25968
|
+
var _addView_decorators;
|
|
25969
|
+
var _updateView_decorators;
|
|
25970
|
+
var _removeView_decorators;
|
|
25971
|
+
_classThis = /** @class */ (function () {
|
|
25972
|
+
function VeLiveMixerManager_1() {
|
|
25973
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
25974
|
+
}
|
|
25975
|
+
VeLiveMixerManager_1.prototype.setPusher = function (pusher) {
|
|
25976
|
+
throw new Error('');
|
|
25977
|
+
};
|
|
25978
|
+
VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
|
|
25979
|
+
throw new Error('');
|
|
25980
|
+
};
|
|
25981
|
+
VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
|
|
25982
|
+
throw new Error('');
|
|
25983
|
+
};
|
|
25984
|
+
VeLiveMixerManager_1.prototype.removeView = function (viewId) {
|
|
25985
|
+
throw new Error('');
|
|
25986
|
+
};
|
|
25987
|
+
return VeLiveMixerManager_1;
|
|
25766
25988
|
}());
|
|
25767
25989
|
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
25768
25990
|
(function () {
|
|
@@ -25964,6 +26186,7 @@ function runImpl(context, androidImpl, iosImpl) {
|
|
|
25964
26186
|
throw new Error("not support: ".concat(env.getOS()));
|
|
25965
26187
|
}
|
|
25966
26188
|
}
|
|
26189
|
+
|
|
25967
26190
|
extendsClassMethod(VeLivePusher, 'getMixerManager', function (origin) {
|
|
25968
26191
|
return function getMixerManager() {
|
|
25969
26192
|
if (Reflect.get(this, '__mixerManager')) {
|
|
@@ -26057,158 +26280,6 @@ extendsClassMethod(VeLivePusher, 'destroy', function (superFn) {
|
|
|
26057
26280
|
};
|
|
26058
26281
|
});
|
|
26059
26282
|
|
|
26060
|
-
/** {zh}
|
|
26061
|
-
* @detail errorcode
|
|
26062
|
-
* @brief 推流过程错误码定义。
|
|
26063
|
-
*
|
|
26064
|
-
*/
|
|
26065
|
-
exports.VeLivePusherErrorCode = void 0;
|
|
26066
|
-
(function (VeLivePusherErrorCode) {
|
|
26067
|
-
/** {zh}
|
|
26068
|
-
* @brief 无错误。
|
|
26069
|
-
*
|
|
26070
|
-
*/
|
|
26071
|
-
/** {en}
|
|
26072
|
-
* @brief No error.
|
|
26073
|
-
*
|
|
26074
|
-
*/
|
|
26075
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherSuccess"] = 0] = "VeLivePusherSuccess";
|
|
26076
|
-
/** {zh}
|
|
26077
|
-
* @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
|
|
26078
|
-
*
|
|
26079
|
-
*/
|
|
26080
|
-
/** {en}
|
|
26081
|
-
* @brief SDK license error, possibly caused by an invalid or expired certificate.
|
|
26082
|
-
*
|
|
26083
|
-
*/
|
|
26084
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherInvalidLicense"] = -1] = "VeLivePusherInvalidLicense";
|
|
26085
|
-
/** {zh}
|
|
26086
|
-
* @brief 参数错误,请检查入参,并重新调用。
|
|
26087
|
-
*
|
|
26088
|
-
*/
|
|
26089
|
-
/** {en}
|
|
26090
|
-
* @brief Parameter error, possibly caused by an invalid parameter value or parameter type.
|
|
26091
|
-
*
|
|
26092
|
-
*/
|
|
26093
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherInvalidParameter"] = -2] = "VeLivePusherInvalidParameter";
|
|
26094
|
-
/** {zh}
|
|
26095
|
-
* @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
|
|
26096
|
-
*
|
|
26097
|
-
*/
|
|
26098
|
-
/** {en}
|
|
26099
|
-
* @brief Video capture error, possibly caused by the lack of access to the video device.
|
|
26100
|
-
*
|
|
26101
|
-
*/
|
|
26102
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoCaptureError"] = -3] = "VeLivePusherVideoCaptureError";
|
|
26103
|
-
/** {zh}
|
|
26104
|
-
* @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
|
|
26105
|
-
*
|
|
26106
|
-
*/
|
|
26107
|
-
/** {en}
|
|
26108
|
-
* @brief Audio capture error, possibly caused by the lack of access to the audio device.
|
|
26109
|
-
*
|
|
26110
|
-
*/
|
|
26111
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioCaptureError"] = -4] = "VeLivePusherAudioCaptureError";
|
|
26112
|
-
/** {zh}
|
|
26113
|
-
* @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26114
|
-
*
|
|
26115
|
-
*/
|
|
26116
|
-
/** {en}
|
|
26117
|
-
* @brief Video encoding error, possibly caused by a configuration issue with the video encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26118
|
-
*
|
|
26119
|
-
*/
|
|
26120
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoEncoderError"] = -5] = "VeLivePusherVideoEncoderError";
|
|
26121
|
-
/** {zh}
|
|
26122
|
-
* @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26123
|
-
*
|
|
26124
|
-
*/
|
|
26125
|
-
/** {en}
|
|
26126
|
-
* @brief Audio encoding error, possibly caused by a configuration issue with the audio encoder. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26127
|
-
*
|
|
26128
|
-
*/
|
|
26129
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioEncoderError"] = -6] = "VeLivePusherAudioEncoderError";
|
|
26130
|
-
/** {zh}
|
|
26131
|
-
* @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26132
|
-
*
|
|
26133
|
-
*/
|
|
26134
|
-
/** {en}
|
|
26135
|
-
* @brief Network error, which might be caused by network connection issues such as network instability or high latency. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26136
|
-
*
|
|
26137
|
-
*/
|
|
26138
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherTransportError"] = -7] = "VeLivePusherTransportError";
|
|
26139
|
-
/** {zh}
|
|
26140
|
-
* @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26141
|
-
*
|
|
26142
|
-
*/
|
|
26143
|
-
/** {en}
|
|
26144
|
-
* @brief Special effects error. Please check if the Effects SDK has been integrated and initialized, and if the path of the effects resources is correctly set. If the error is not eliminated, please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26145
|
-
*
|
|
26146
|
-
*/
|
|
26147
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherVideoEffectError"] = -8] = "VeLivePusherVideoEffectError";
|
|
26148
|
-
/** {zh}
|
|
26149
|
-
* @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26150
|
-
*
|
|
26151
|
-
*/
|
|
26152
|
-
/** {en}
|
|
26153
|
-
* @brief Audio device error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26154
|
-
*
|
|
26155
|
-
*/
|
|
26156
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherAudioDeviceError"] = -9] = "VeLivePusherAudioDeviceError";
|
|
26157
|
-
/** {zh}
|
|
26158
|
-
* @platform android
|
|
26159
|
-
* @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
|
|
26160
|
-
*
|
|
26161
|
-
*/
|
|
26162
|
-
/** {en}
|
|
26163
|
-
* @platform android
|
|
26164
|
-
* @brief The license does not support H265.
|
|
26165
|
-
*
|
|
26166
|
-
*/
|
|
26167
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherLicenseUnsupportedH265"] = -10] = "VeLivePusherLicenseUnsupportedH265";
|
|
26168
|
-
/** {zh}
|
|
26169
|
-
* @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26170
|
-
*
|
|
26171
|
-
*/
|
|
26172
|
-
/** {en}
|
|
26173
|
-
* @brief Internal error. Please [create a ticket](https://console.byteplus.com/workorder/create?step=2&SubProductID=P00000980) to contact BytePlus technical support for assistance when using this callback method.
|
|
26174
|
-
*
|
|
26175
|
-
*/
|
|
26176
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherError"] = -100] = "VeLivePusherError";
|
|
26177
|
-
/** {zh}
|
|
26178
|
-
* @platform android
|
|
26179
|
-
* @brief 当前系统版本不支持屏幕采集功能
|
|
26180
|
-
*
|
|
26181
|
-
*/
|
|
26182
|
-
/** {en}
|
|
26183
|
-
* @platform android
|
|
26184
|
-
* @brief
|
|
26185
|
-
*
|
|
26186
|
-
*/
|
|
26187
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureNotSupportError"] = -99] = "VeLivePusherScreenCaptureNotSupportError";
|
|
26188
|
-
/** {zh}
|
|
26189
|
-
* @platform android
|
|
26190
|
-
* @brief 屏幕采集权限的获取被用户拒绝
|
|
26191
|
-
*
|
|
26192
|
-
*/
|
|
26193
|
-
/** {en}
|
|
26194
|
-
* @platform android
|
|
26195
|
-
* @brief
|
|
26196
|
-
*
|
|
26197
|
-
*/
|
|
26198
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureStartError"] = -98] = "VeLivePusherScreenCaptureStartError";
|
|
26199
|
-
/** {zh}
|
|
26200
|
-
* @platform android
|
|
26201
|
-
* @brief 屏幕采集被系统中断,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
|
|
26202
|
-
*
|
|
26203
|
-
*/
|
|
26204
|
-
/** {en}
|
|
26205
|
-
* @platform android
|
|
26206
|
-
* @brief
|
|
26207
|
-
*
|
|
26208
|
-
*/
|
|
26209
|
-
VeLivePusherErrorCode[VeLivePusherErrorCode["VeLivePusherScreenCaptureInterruptedError"] = -97] = "VeLivePusherScreenCaptureInterruptedError";
|
|
26210
|
-
})(exports.VeLivePusherErrorCode || (exports.VeLivePusherErrorCode = {}));
|
|
26211
|
-
|
|
26212
26283
|
var AndroidSurfaceView = function () {
|
|
26213
26284
|
var _a;
|
|
26214
26285
|
var _classSuper = NativeView;
|
|
@@ -26951,6 +27022,142 @@ function relaunchPusher(options) {
|
|
|
26951
27022
|
});
|
|
26952
27023
|
}
|
|
26953
27024
|
|
|
27025
|
+
/**
|
|
27026
|
+
* @detail api
|
|
27027
|
+
* @brief 设置美颜SDK资源,需要在app初识化时设置
|
|
27028
|
+
*/
|
|
27029
|
+
function initVideoEffectResource() {
|
|
27030
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27031
|
+
return __generator(this, function (_a) {
|
|
27032
|
+
switch (env.getOS()) {
|
|
27033
|
+
case 'android':
|
|
27034
|
+
return [2 /*return*/, VeLiveEffectHelper.initVideoEffectResource()];
|
|
27035
|
+
case 'ios':
|
|
27036
|
+
return [2 /*return*/, Promise.resolve()];
|
|
27037
|
+
default:
|
|
27038
|
+
throw new Error('Unsupported platform');
|
|
27039
|
+
}
|
|
27040
|
+
});
|
|
27041
|
+
});
|
|
27042
|
+
}
|
|
27043
|
+
extendsClassMethod(VeLivePusher, 'setupEffectManager', function () {
|
|
27044
|
+
return function setupEffectManager(licenseFileName) {
|
|
27045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27046
|
+
var a, i;
|
|
27047
|
+
var _this = this;
|
|
27048
|
+
return __generator(this, function (_a) {
|
|
27049
|
+
a = function () {
|
|
27050
|
+
var ins = _this._instance;
|
|
27051
|
+
var effectManager = ins.getVideoEffectManager();
|
|
27052
|
+
var licPath = VeLiveEffectHelper.getLicensePath(licenseFileName);
|
|
27053
|
+
var algoModePath = VeLiveEffectHelper.getModelPath();
|
|
27054
|
+
var licConfig = VeLiveVideoEffectLicenseConfiguration$2.create(licPath);
|
|
27055
|
+
effectManager.setupWithConfig(licConfig);
|
|
27056
|
+
effectManager.setAlgorithmModelPath(algoModePath);
|
|
27057
|
+
return packObject(effectManager, VeLiveVideoEffectManager);
|
|
27058
|
+
};
|
|
27059
|
+
i = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
27060
|
+
var ins, effectManager, licenseConfiguration, licensePath, modelPath;
|
|
27061
|
+
return __generator(this, function (_a) {
|
|
27062
|
+
ins = this._instance;
|
|
27063
|
+
effectManager = ins.getVideoEffectManager();
|
|
27064
|
+
licenseConfiguration = new VeLiveVideoEffectLicenseConfiguration$1();
|
|
27065
|
+
licensePath = VeLivePushHelper.getResourcePath("LicenseBag.bundle/".concat(licenseFileName));
|
|
27066
|
+
modelPath = VeLivePushHelper.getResourcePath('ModelResource.bundle');
|
|
27067
|
+
licenseConfiguration.initWithPath(licensePath);
|
|
27068
|
+
effectManager.setupWithConfig(licenseConfiguration);
|
|
27069
|
+
effectManager.setAlgoModelPath(modelPath);
|
|
27070
|
+
return [2 /*return*/, packObject(effectManager, VeLiveVideoEffectManager)];
|
|
27071
|
+
});
|
|
27072
|
+
}); };
|
|
27073
|
+
if (reactNative.Platform.OS === 'android') {
|
|
27074
|
+
return [2 /*return*/, a()];
|
|
27075
|
+
}
|
|
27076
|
+
else if (reactNative.Platform.OS === 'ios') {
|
|
27077
|
+
return [2 /*return*/, i()];
|
|
27078
|
+
}
|
|
27079
|
+
else {
|
|
27080
|
+
throw new Error('Not Support Platform ' + reactNative.Platform.OS);
|
|
27081
|
+
}
|
|
27082
|
+
});
|
|
27083
|
+
});
|
|
27084
|
+
};
|
|
27085
|
+
});
|
|
27086
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'setComposeNodes', function (origin) {
|
|
27087
|
+
return function setComposeNodes(nodes) {
|
|
27088
|
+
return runImpl(this, function (engine) {
|
|
27089
|
+
var composePaths = nodes.map(function (path) {
|
|
27090
|
+
return VeLiveEffectHelper.getBeautyPathByName(path);
|
|
27091
|
+
});
|
|
27092
|
+
origin(composePaths);
|
|
27093
|
+
}, function (engine) {
|
|
27094
|
+
var composePaths = nodes.map(function (path) {
|
|
27095
|
+
return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
|
|
27096
|
+
});
|
|
27097
|
+
origin(composePaths);
|
|
27098
|
+
});
|
|
27099
|
+
};
|
|
27100
|
+
});
|
|
27101
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'appendComposeNodes', function (origin) {
|
|
27102
|
+
return function appendComposeNodes(nodes) {
|
|
27103
|
+
return runImpl(this, function (engine) {
|
|
27104
|
+
var composePaths = nodes.map(function (path) {
|
|
27105
|
+
return VeLiveEffectHelper.getBeautyPathByName(path);
|
|
27106
|
+
});
|
|
27107
|
+
origin(composePaths);
|
|
27108
|
+
}, function (engine) {
|
|
27109
|
+
var composePaths = nodes.map(function (path) {
|
|
27110
|
+
return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
|
|
27111
|
+
});
|
|
27112
|
+
origin(composePaths);
|
|
27113
|
+
});
|
|
27114
|
+
};
|
|
27115
|
+
});
|
|
27116
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'removeComposeNodes', function (origin) {
|
|
27117
|
+
return function removeComposeNodes(resourcePaths) {
|
|
27118
|
+
return runImpl(this, function (engine) {
|
|
27119
|
+
var composePaths = resourcePaths.map(function (path) {
|
|
27120
|
+
return VeLiveEffectHelper.getBeautyPathByName(path);
|
|
27121
|
+
});
|
|
27122
|
+
origin(composePaths);
|
|
27123
|
+
}, function (engine) {
|
|
27124
|
+
var composePaths = resourcePaths.map(function (path) {
|
|
27125
|
+
return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
|
|
27126
|
+
});
|
|
27127
|
+
origin(composePaths);
|
|
27128
|
+
});
|
|
27129
|
+
};
|
|
27130
|
+
});
|
|
27131
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'updateComposerNodeIntensity', function (origin) {
|
|
27132
|
+
return function updateComposerNodeIntensity(path, key, intensity) {
|
|
27133
|
+
return runImpl(this, function (engine) {
|
|
27134
|
+
var fullPath = VeLiveEffectHelper.getBeautyPathByName(path);
|
|
27135
|
+
origin(fullPath, key, intensity);
|
|
27136
|
+
}, function (engine) {
|
|
27137
|
+
var fullPath = VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
|
|
27138
|
+
origin(fullPath, key, intensity);
|
|
27139
|
+
});
|
|
27140
|
+
};
|
|
27141
|
+
});
|
|
27142
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'setFilter', function (origin) {
|
|
27143
|
+
return function setFilter(path) {
|
|
27144
|
+
return runImpl(this, function (engine) {
|
|
27145
|
+
origin(VeLiveEffectHelper.getFilterPathByName(path));
|
|
27146
|
+
}, function (engine) {
|
|
27147
|
+
origin(VeLivePushHelper.getResourcePath("FilterResource.bundle/Filter/".concat(path)));
|
|
27148
|
+
});
|
|
27149
|
+
};
|
|
27150
|
+
});
|
|
27151
|
+
extendsClassMethod(VeLiveVideoEffectManager, 'setSticker', function (origin) {
|
|
27152
|
+
return function setSticker(path) {
|
|
27153
|
+
return runImpl(this, function (engine) {
|
|
27154
|
+
origin(VeLiveEffectHelper.getStickerPathByName(path));
|
|
27155
|
+
}, function (engine) {
|
|
27156
|
+
origin(VeLivePushHelper.getResourcePath("StickerResource.bundle/stickers/".concat(path)));
|
|
27157
|
+
});
|
|
27158
|
+
};
|
|
27159
|
+
});
|
|
27160
|
+
|
|
26954
27161
|
var NativeMixView = reactNative.requireNativeComponent('VeLiveMixView');
|
|
26955
27162
|
var index = 0;
|
|
26956
27163
|
var getId = function () {
|
|
@@ -27052,6 +27259,7 @@ exports.android_VeLiveVideoFrameFilter = android_VeLiveVideoFrameFilter;
|
|
|
27052
27259
|
exports.android_VeLiveVideoFrameListener = android_VeLiveVideoFrameListener;
|
|
27053
27260
|
exports.initEnv = initEnv;
|
|
27054
27261
|
exports.initPusher = initPusher;
|
|
27262
|
+
exports.initVideoEffectResource = initVideoEffectResource;
|
|
27055
27263
|
exports.ios_VeLiveAudioFrameFilter = ios_VeLiveAudioFrameFilter;
|
|
27056
27264
|
exports.ios_VeLiveAudioFrameListener = ios_VeLiveAudioFrameListener;
|
|
27057
27265
|
exports.ios_VeLiveFileRecordingListener = ios_VeLiveFileRecordingListener;
|