trtc-sdk-v5 5.9.0-wasm.1 → 5.9.0-wasm.11

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 (34) hide show
  1. package/index.d.ts +18 -1
  2. package/package.json +1 -1
  3. package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
  4. package/plugins/cdn-streaming/cdn-streaming.iife.js +1 -1
  5. package/plugins/cdn-streaming/package.json +1 -1
  6. package/plugins/cross-room/cross-room.esm.js +1 -1
  7. package/plugins/cross-room/cross-room.iife.js +1 -1
  8. package/plugins/cross-room/package.json +1 -1
  9. package/plugins/device-detector/device-detector.esm.js +5 -5
  10. package/plugins/device-detector/device-detector.iife.js +5 -5
  11. package/plugins/device-detector/package.json +1 -1
  12. package/plugins/video-decoder/package.json +2 -2
  13. package/plugins/video-decoder/video-decoder.esm.js +38 -38
  14. package/plugins/video-decoder/video-decoder.iife.js +38 -38
  15. package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +2 -2
  16. package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +2 -2
  17. package/plugins/video-effect/basic-beauty/package.json +1 -1
  18. package/plugins/video-effect/beauty/beauty.esm.js +35 -35
  19. package/plugins/video-effect/beauty/beauty.iife.js +35 -35
  20. package/plugins/video-effect/beauty/package.json +1 -1
  21. package/plugins/video-effect/virtual-background/package.json +1 -1
  22. package/plugins/video-effect/virtual-background/virtual-background.esm.js +10 -10
  23. package/plugins/video-effect/virtual-background/virtual-background.iife.js +12 -12
  24. package/plugins/video-effect/watermark/package.json +1 -1
  25. package/plugins/video-effect/watermark/watermark.esm.js +1 -1
  26. package/plugins/video-effect/watermark/watermark.iife.js +1 -1
  27. package/trtc.esm.js +41 -64
  28. package/trtc.js +1 -1
  29. package/av_processing.wasm +0 -0
  30. package/plugins/custom-encryption/custom-encryption.esm.d.ts +0 -34
  31. package/plugins/custom-encryption/custom-encryption.esm.js +0 -36
  32. package/plugins/custom-encryption/custom-encryption.iife.js +0 -36
  33. package/plugins/custom-encryption/package.json +0 -7
  34. package/worker.js +0 -17
Binary file
@@ -1,34 +0,0 @@
1
- interface CustomCryptors {
2
- encryptor: Cryptor;
3
- decryptor: Cryptor;
4
- }
5
-
6
- declare const enum TRTCEncryptionAlgorithm {
7
- Aes128Gcm = 'aes128gcm',
8
- Aes256Gcm = 'aes256gcm'
9
- }
10
-
11
- type Cryptor = (data: Uint8Array) => Uint8Array;
12
- interface BuiltinOptions {
13
- algorithm: TRTCEncryptionAlgorithm;
14
- secretKey: Uint8Array;
15
- salt?: Uint8Array;
16
- }
17
-
18
- interface EncryptionOptions {
19
- // 自定义:传 customCryptors;内置:传后三个参数
20
- customCryptors?: CustomCryptors;
21
- builtinOptions?: BuiltinOptions;
22
- mode: 'webrtc' | 'udt3';
23
- audio: boolean;
24
- video: boolean;
25
- }
26
-
27
- declare class CustomEncryption {
28
- start(options: EncryptionOptions): Promise<void>;
29
- update(options: EncryptionOptions): Promise<void>;
30
- stop(options: EncryptionOptions): Promise<void>;
31
- }
32
-
33
- export { CustomEncryption };
34
- export default CustomEncryption;