trtc-sdk-v5 5.9.2-beta.15 → 5.9.2-beta.17

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.
Files changed (59) hide show
  1. package/README-zh_CN.md +2 -1
  2. package/README.md +2 -1
  3. package/assets/debug-dialog.js +1 -0
  4. package/assets/selfie_segmentation/package.json +27 -0
  5. package/assets/selfie_segmentation/selfie_segmentation.binarypb +0 -0
  6. package/assets/selfie_segmentation/selfie_segmentation.tflite +0 -0
  7. package/assets/selfie_segmentation/selfie_segmentation_landscape.tflite +0 -0
  8. package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.data +0 -0
  9. package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.wasm +0 -0
  10. package/assets/selfie_segmentation/selfie_segmentation_solution_wasm_bin.wasm +0 -0
  11. package/assets/videodec.wasm +0 -0
  12. package/assets/videodec_simd.wasm +0 -0
  13. package/index.d.ts +1795 -1791
  14. package/package.json +1 -1
  15. package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
  16. package/plugins/cdn-streaming/cdn-streaming.umd.js +1 -0
  17. package/plugins/cdn-streaming/package.json +1 -2
  18. package/plugins/cross-room/cross-room.esm.js +1 -1
  19. package/plugins/cross-room/cross-room.umd.js +1 -0
  20. package/plugins/cross-room/package.json +1 -2
  21. package/plugins/custom-encryption/custom-encryption.esm.d.ts +31 -0
  22. package/plugins/custom-encryption/custom-encryption.esm.js +1 -0
  23. package/plugins/custom-encryption/custom-encryption.umd.js +1 -0
  24. package/plugins/custom-encryption/package.json +7 -0
  25. package/plugins/device-detector/device-detector.esm.js +93 -1234
  26. package/plugins/device-detector/device-detector.umd.js +39 -0
  27. package/plugins/device-detector/package.json +1 -2
  28. package/plugins/video-decoder/package.json +1 -1
  29. package/plugins/video-decoder/video-decoder.esm.d.ts +20 -20
  30. package/plugins/video-decoder/video-decoder.esm.js +1 -43
  31. package/plugins/video-decoder/video-decoder.umd.js +1 -0
  32. package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +1 -2
  33. package/plugins/video-effect/basic-beauty/basic-beauty.umd.js +1 -0
  34. package/plugins/video-effect/basic-beauty/package.json +1 -2
  35. package/plugins/video-effect/beauty/beauty.esm.js +1 -2954
  36. package/plugins/video-effect/beauty/beauty.umd.js +1 -0
  37. package/plugins/video-effect/beauty/package.json +1 -2
  38. package/plugins/video-effect/virtual-background/package.json +1 -2
  39. package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -60
  40. package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -0
  41. package/plugins/video-effect/watermark/package.json +1 -2
  42. package/plugins/video-effect/watermark/watermark.esm.d.ts +10 -2
  43. package/plugins/video-effect/watermark/watermark.esm.js +1 -1
  44. package/plugins/video-effect/watermark/watermark.umd.js +1 -0
  45. package/plugins/voice-changer/package.json +9 -0
  46. package/plugins/voice-changer/voice-changer.esm.d.ts +20 -0
  47. package/plugins/voice-changer/voice-changer.esm.js +1 -0
  48. package/plugins/voice-changer/voice-changer.umd.js +1 -0
  49. package/trtc.esm.js +29 -29
  50. package/trtc.js +1 -1
  51. package/plugins/cdn-streaming/cdn-streaming.iife.js +0 -1
  52. package/plugins/cross-room/cross-room.iife.js +0 -1
  53. package/plugins/device-detector/device-detector.iife.js +0 -1472
  54. package/plugins/video-decoder/video-decoder.iife.js +0 -43
  55. package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +0 -2
  56. package/plugins/video-effect/beauty/beauty.iife.js +0 -2954
  57. package/plugins/video-effect/virtual-background/virtual-background.iife.js +0 -60
  58. package/plugins/video-effect/watermark/watermark.iife.js +0 -1
  59. /package/{plugins/ai-denoiser → assets}/denoiser-wasm.js +0 -0
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.9.2-beta.15",
3
+ "version": "5.9.2-beta.17",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-decoder",
3
- "version": "5.9.2-beta.15",
3
+ "version": "5.9.2-beta.17",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",
@@ -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
- codec: string;
9
- hardwareAcceleration?: HardwareAcceleration;
8
+ codec: string;
9
+ hardwareAcceleration?: HardwareAcceleration;
10
10
  }
11
11
  type StartOption = Omit<DecodeContextOption, 'createDecoder'>;
12
12
  interface UpdateOption extends Omit<StartOption, 'type'> {
13
- type: 'webCodecs' | 'wasm' | 'mse' | 'auto' | 'mock';
13
+ type: 'webCodecs' | 'wasm' | 'mse' | 'auto' | 'mock';
14
14
  }
15
15
  interface StopOption {
16
- track: RemoteVideoTrack;
16
+ track: RemoteVideoTrack;
17
17
  }
18
- export declare class VideoDecoderPlugin 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;
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 { };