trtc-sdk-v5 5.10.1-beta.5 → 5.10.1-beta.7
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/README-zh_CN.md +2 -1
- package/README.md +2 -1
- package/assets/debug-dialog.js +1 -0
- package/{plugins/ai-denoiser → assets}/denoiser-wasm.js +1 -1
- package/assets/selfie_segmentation/package.json +27 -0
- package/assets/selfie_segmentation/selfie_segmentation.binarypb +0 -0
- package/assets/selfie_segmentation/selfie_segmentation.tflite +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_landscape.tflite +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.data +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.wasm +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_wasm_bin.wasm +0 -0
- package/assets/videodec.wasm +0 -0
- package/assets/videodec_simd.wasm +0 -0
- package/index.d.ts +1824 -1796
- package/package.json +1 -1
- package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.umd.js +1 -0
- package/plugins/cdn-streaming/package.json +1 -2
- package/plugins/cross-room/cross-room.esm.js +1 -1
- package/plugins/cross-room/cross-room.umd.js +1 -0
- package/plugins/cross-room/package.json +1 -2
- package/plugins/custom-encryption/custom-encryption.esm.d.ts +31 -0
- package/plugins/custom-encryption/custom-encryption.esm.js +1 -0
- package/plugins/custom-encryption/custom-encryption.umd.js +1 -0
- package/plugins/custom-encryption/package.json +7 -0
- package/plugins/device-detector/device-detector.esm.js +93 -1234
- package/plugins/device-detector/device-detector.umd.js +39 -0
- package/plugins/device-detector/package.json +1 -2
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-decoder/video-decoder.esm.d.ts +20 -20
- package/plugins/video-decoder/video-decoder.esm.js +1 -43
- package/plugins/video-decoder/video-decoder.umd.js +1 -0
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +1 -2
- package/plugins/video-effect/basic-beauty/basic-beauty.umd.js +1 -0
- package/plugins/video-effect/basic-beauty/package.json +1 -2
- package/plugins/video-effect/beauty/beauty.esm.js +1 -2954
- package/plugins/video-effect/beauty/beauty.umd.js +1 -0
- package/plugins/video-effect/beauty/package.json +1 -2
- package/plugins/video-effect/virtual-background/package.json +1 -2
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -60
- package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -0
- package/plugins/video-effect/watermark/package.json +1 -2
- package/plugins/video-effect/watermark/watermark.esm.d.ts +10 -2
- package/plugins/video-effect/watermark/watermark.esm.js +1 -1
- package/plugins/video-effect/watermark/watermark.umd.js +1 -0
- package/plugins/voice-changer/package.json +9 -0
- package/plugins/voice-changer/voice-changer.esm.d.ts +20 -0
- package/plugins/voice-changer/voice-changer.esm.js +1 -0
- package/plugins/voice-changer/voice-changer.umd.js +1 -0
- package/trtc.es5.js +1 -0
- package/trtc.esm.js +30 -30
- package/trtc.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.iife.js +0 -1
- package/plugins/cross-room/cross-room.iife.js +0 -1
- package/plugins/device-detector/device-detector.iife.js +0 -1472
- package/plugins/video-decoder/video-decoder.iife.js +0 -43
- package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +0 -2
- package/plugins/video-effect/beauty/beauty.iife.js +0 -2954
- package/plugins/video-effect/virtual-background/virtual-background.iife.js +0 -60
- package/plugins/video-effect/watermark/watermark.iife.js +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rtc-plugin/device-detector",
|
|
3
|
-
"version": "5.10.1-beta.
|
|
3
|
+
"version": "5.10.1-beta.7",
|
|
4
4
|
"description": "TRTC Web SDK 5.x device detector plugin",
|
|
5
5
|
"main": "./device-detector.esm.js",
|
|
6
|
-
"author": "edwards <edwards@tencent.com>",
|
|
7
6
|
"module": "./device-detector.esm.js",
|
|
8
7
|
"repository": {
|
|
9
8
|
"type": "git",
|
|
@@ -5,30 +5,30 @@ import { type DecodeContextOption, type DecodeContext } from 'trtc-js-sdk-core/s
|
|
|
5
5
|
import type { Core, IPlugin } from 'trtc-js-sdk-core/src/plugin';
|
|
6
6
|
export type HardwareAcceleration = 'prefer-hardware' | 'prefer-software' | 'no-preference';
|
|
7
7
|
export interface VideoDecoderConfig {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
codec: string;
|
|
9
|
+
hardwareAcceleration?: HardwareAcceleration;
|
|
10
10
|
}
|
|
11
11
|
type StartOption = Omit<DecodeContextOption, 'createDecoder'>;
|
|
12
12
|
interface UpdateOption extends Omit<StartOption, 'type'> {
|
|
13
|
-
|
|
13
|
+
type: 'webCodecs' | 'wasm' | 'mse' | 'auto' | 'mock';
|
|
14
14
|
}
|
|
15
15
|
interface StopOption {
|
|
16
|
-
|
|
16
|
+
track: RemoteVideoTrack;
|
|
17
17
|
}
|
|
18
|
-
export declare class
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
export declare class TRTCVideoDecoder implements IPlugin {
|
|
19
|
+
core: Core;
|
|
20
|
+
static Name: string;
|
|
21
|
+
contextMap: Map<RemoteVideoTrack, DecodeContext>;
|
|
22
|
+
decodeProcessorMap: WeakMap<RemoteVideoTrack, VideoDecodeProcessor>;
|
|
23
|
+
constructor(core: Core);
|
|
24
|
+
getAlias(): string;
|
|
25
|
+
getGroup(option: StartOption): string;
|
|
26
|
+
getName(): string;
|
|
27
|
+
getValidateRule(method: 'start' | 'update' | 'stop'): ValidateRule | ValidateRule[];
|
|
28
|
+
private createDecoder;
|
|
29
|
+
start(option: StartOption): void;
|
|
30
|
+
decode(option: StartOption): ({ frame, track }: VideoDecodeProcessorParam) => RTCEncodedVideoFrame | undefined;
|
|
31
|
+
stop(option: StopOption): void;
|
|
32
|
+
update(option: UpdateOption): void;
|
|
33
33
|
}
|
|
34
|
-
export {};
|
|
34
|
+
export { };
|