trtc-sdk-v5 5.9.2-beta.16 → 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.
package/index.d.ts CHANGED
@@ -393,6 +393,7 @@ export declare interface RemoteVideoConfig {
393
393
  receiveWhenViewVisible?: boolean;
394
394
  viewRoot?: HTMLElement;
395
395
  canvasRender?: boolean;
396
+ poster?: string;
396
397
  };
397
398
  }
398
399
  export declare interface StopRemoteVideoConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.9.2-beta.16",
3
+ "version": "5.9.2-beta.17",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.9.2-beta.16",
3
+ "version": "5.9.2-beta.17",
4
4
  "description": "TRTC Web SDK 5.x CDN streaming plugin",
5
5
  "main": "./cdn-streaming.esm.js",
6
6
  "module": "./cdn-streaming.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.9.2-beta.16",
3
+ "version": "5.9.2-beta.17",
4
4
  "description": "TRTC Web SDK 5.x Cross Room plugin",
5
5
  "main": "./cross-room.esm.js",
6
6
  "module": "./cross-room.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/custom-encryption",
3
- "version": "5.9.2-beta.16",
3
+ "version": "5.9.2-beta.17",
4
4
  "main": "./custom-encryption.esm.js",
5
5
  "module": "./custom-encryption.esm.js",
6
6
  "types": "./custom-encryption.esm.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.9.2-beta.16",
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
6
  "module": "./device-detector.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-decoder",
3
- "version": "5.9.2-beta.16",
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 { };