trtc-sdk-v5 5.0.2-beta.1 → 5.0.2-beta.2
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 +25 -8
- package/package.json +1 -1
- package/trtc.esm.js +28 -28
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -71,9 +71,6 @@
|
|
|
71
71
|
small?: boolean;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
declare interface UpdateRemoteVideoConfig extends Omit<RemoteVideoConfig, 'view'> {
|
|
75
|
-
view?: string | HTMLElement | HTMLElement[] | null;
|
|
76
|
-
}
|
|
77
74
|
declare interface StopRemoteVideoConfig {
|
|
78
75
|
userId: string;
|
|
79
76
|
streamType?: TRTCStreamType;
|
|
@@ -1091,10 +1088,30 @@
|
|
|
1091
1088
|
* await trtc.stopScreenShare();
|
|
1092
1089
|
* */
|
|
1093
1090
|
stopScreenShare(): Promise<void>;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1091
|
+
/**
|
|
1092
|
+
* 用于使用插件能力,详情见文档。
|
|
1093
|
+
* @throws
|
|
1094
|
+
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1095
|
+
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1096
|
+
*
|
|
1097
|
+
* */
|
|
1098
|
+
startPlugin(name: PLUGIN_NAME, options: AudioSourceOptions | DenoiserOptions): Promise<void>;
|
|
1099
|
+
/**
|
|
1100
|
+
* 用于使用插件能力,详情见文档。
|
|
1101
|
+
* @throws
|
|
1102
|
+
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1103
|
+
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1104
|
+
*
|
|
1105
|
+
* */
|
|
1106
|
+
updatePlugin(name: PLUGIN_NAME, options: UpdateAudioSourceOptions): Promise<void>;
|
|
1107
|
+
/**
|
|
1108
|
+
* 用于使用插件能力,详情见文档。
|
|
1109
|
+
* @throws
|
|
1110
|
+
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1111
|
+
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1112
|
+
*
|
|
1113
|
+
* */
|
|
1114
|
+
stopPlugin(name: PLUGIN_NAME, options?: UpdateAudioSourceOptions): Promise<void>;
|
|
1098
1115
|
/**
|
|
1099
1116
|
* 播放远端视频
|
|
1100
1117
|
*
|
|
@@ -1151,7 +1168,7 @@
|
|
|
1151
1168
|
* await trtc.updateRemoteVideo(config);
|
|
1152
1169
|
* @memberof TRTC
|
|
1153
1170
|
*/
|
|
1154
|
-
updateRemoteVideo(config:
|
|
1171
|
+
updateRemoteVideo(config: RemoteVideoConfig): Promise<void>;
|
|
1155
1172
|
/**
|
|
1156
1173
|
* 用于停止远端视频播放。<br>
|
|
1157
1174
|
* @param {object} config - 远端视频配置
|