trtc-sdk-v5 5.13.0-beta.20 → 5.13.0-beta.21

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
@@ -14,6 +14,8 @@ export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, U
14
14
  type TRTCPlugin = typeof CrossRoom | typeof CDNStreaming | typeof DeviceDetector | typeof VirtualBackground | typeof Watermark | typeof Beauty | typeof BasicBeauty | typeof CustomEncryption | typeof SmallStreamAutoSwitcher | typeof VideoMixer;
15
15
  export declare type ExperimentalAPIFunctionMap = {
16
16
  'enableAudioFrameEvent': EnableAudioFrameEventOptions;
17
+ 'resumeRemotePlayer': { userId: string, streamType: TRTCStreamType };
18
+ 'pauseRemotePlayer': { userId: string, streamType: TRTCStreamType };
17
19
  }
18
20
  export declare type PluginStartOptionsMap = {
19
21
  'AudioMixer': AudioMixerOptions;
@@ -487,15 +489,6 @@ export declare const enum TRTCDeviceAction {
487
489
  Add = 'add',
488
490
  Active = 'active'
489
491
  }
490
- export declare interface PermissionOption {
491
- request?: boolean;
492
- types?: ('camera' | 'microphone')[];
493
- }
494
-
495
- export declare interface PermissionResult {
496
- camera: PermissionState | null;
497
- microphone: PermissionState | null;
498
- }
499
492
  export declare interface RTCErrorParams {
500
493
  code: number;
501
494
  extraCode?: number;
@@ -1185,18 +1178,6 @@ export declare const TRTCEvent: {
1185
1178
  * })
1186
1179
  */
1187
1180
  readonly FIRST_VIDEO_FRAME: 'first-video-frame';
1188
-
1189
- /**
1190
- * @since v5.13.0
1191
- * @description Notification event for device permission changes.
1192
- * @default 'permission-state-change'
1193
- * @memberof module:EVENT
1194
- * @example
1195
- * trtc.on(TRTC.EVENT.PERMISSION_STATE_CHANGE, event => {
1196
- * console.log(event.camera, event.microphone); // 'granted' | 'denied' | 'prompt' | null. null means the permission is not supported query.
1197
- * });
1198
- */
1199
- readonly PERMISSION_STATE_CHANGE: 'permission-state-change';
1200
1181
  };
1201
1182
  export declare interface TRTCEventTypes {
1202
1183
  [TRTCEvent.ERROR]: [RtcError];
@@ -1283,10 +1264,6 @@ export declare interface TRTCEventTypes {
1283
1264
  sourceTrack: MediaStreamTrack;
1284
1265
  }];
1285
1266
  [TRTCEvent.CUSTOM_MESSAGE]: [CustomMessage];
1286
- [TRTCEvent.PERMISSION_STATE_CHANGE]: [{
1287
- camera: PermissionState;
1288
- microphone: PermissionState;
1289
- }];
1290
1267
  }
1291
1268
 
1292
1269
  export declare interface CustomMessageData {
@@ -2217,22 +2194,6 @@ export declare class TRTC {
2217
2194
  * | checkResult.detail.isVp8DecodeSupported | boolean | Whether the current browser supports VP8 decoding for downlink |
2218
2195
  */
2219
2196
  static isSupported(): Promise<any>;
2220
-
2221
- /**
2222
- * Get the permission state of the camera and microphone. Since v5.13.0+.
2223
- * @param {PermissionOption} option
2224
- * @param {boolean} [option.request=true] Whether to request permission to use the camera and microphone.
2225
- * @param {string[]} [option.types=['camera', 'microphone']] The types of permission to request.
2226
- * @returns {Promise<PermissionResult>} Promise returns the permission state of the camera and microphone
2227
- * @example
2228
- * const { camera, microphone } = await TRTC.getPermissions({
2229
- * request: true, // if true, will request permission to use the camera and microphone.
2230
- * types: ['camera', 'microphone']
2231
- * });
2232
- * console.log(camera, microphone); // 'granted' | 'denied' | 'prompt' | null. null means the permission is not supported query.
2233
- */
2234
- static getPermissions(option: PermissionOption): Promise<PermissionResult>;
2235
-
2236
2197
  /**
2237
2198
  * Returns the list of camera devices
2238
2199
  * <br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
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.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
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.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
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.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
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.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
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/small-stream-auto-switcher",
3
- "version": "5.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
4
4
  "description": "",
5
5
  "main": "./small-stream-auto-switcher.esm.js",
6
6
  "keywords": [],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-decoder",
3
- "version": "5.13.0-beta.20",
3
+ "version": "5.13.0-beta.21",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",