@rongcloud/plugin-rtc 5.6.8-enterprise.1 → 5.6.9
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/dist/index.d.ts +19 -9
- package/dist/index.esm.js +16 -28902
- package/dist/index.js +16 -28931
- package/dist/index.umd.js +16 -28935
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.6.9
|
|
3
|
+
* CommitId - 45e154cdd19e668fbab571c3c725758847ad35bd
|
|
4
|
+
* Mon Feb 13 2023 14:21:15 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
|
-
import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes,
|
|
7
|
+
import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, RCConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, EnableLogL, IPluginGenerator } from '@rongcloud/engine';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* 错误码,与移动端对齐
|
|
@@ -98,7 +98,9 @@ declare enum RCRTCCode {
|
|
|
98
98
|
/** 获取媒体资源时,无系统权限 */
|
|
99
99
|
SYSTEM_PERMISSION_DENIED = 53033,
|
|
100
100
|
/** 发布时无有效资源,如 track 已被销毁 */
|
|
101
|
-
PUBLISH_TRACKS_IS_INVALID = 53034
|
|
101
|
+
PUBLISH_TRACKS_IS_INVALID = 53034,
|
|
102
|
+
/** 流状态为 ended */
|
|
103
|
+
TRACK_READYSTATE_IS_ENDED = 53035
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
/**
|
|
@@ -1526,7 +1528,7 @@ declare class RTCContext {
|
|
|
1526
1528
|
};
|
|
1527
1529
|
getCurrentId(): string;
|
|
1528
1530
|
getNaviInfo(): IRTCNaviInfo | null;
|
|
1529
|
-
getConnectionStatus():
|
|
1531
|
+
getConnectionStatus(): RCConnectionStatus;
|
|
1530
1532
|
getAppkey(): string;
|
|
1531
1533
|
/** web 端发 rtcPing */
|
|
1532
1534
|
webRtcPing(roomId: string, roomMode: RTCMode, broadcastType?: number): Promise<{
|
|
@@ -1547,7 +1549,7 @@ declare class RTCContext {
|
|
|
1547
1549
|
}> | Promise<IAsyncRes<any>>;
|
|
1548
1550
|
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions): IPromiseResult<IReceivedMessage>;
|
|
1549
1551
|
registerRTCSignalListener(listener?: ((buffer: Uint8Array) => void) | undefined): void;
|
|
1550
|
-
registerConnectionStateChangeListener(listener: (status:
|
|
1552
|
+
registerConnectionStateChangeListener(listener: (status: RCConnectionStatus) => void): void;
|
|
1551
1553
|
registerDisconnectListener(listener: () => void): void;
|
|
1552
1554
|
registerDestroyListener(listener: () => void): void;
|
|
1553
1555
|
registerMessageListener(listener: (message: IReceivedMessage) => boolean): void;
|
|
@@ -4024,7 +4026,8 @@ interface IRCRTCInitOptions {
|
|
|
4024
4026
|
*/
|
|
4025
4027
|
pingGap?: number;
|
|
4026
4028
|
/**
|
|
4027
|
-
*
|
|
4029
|
+
* 目前该参数仅在 Chrome 浏览器 72 - 92 之间版本有效,其他浏览器或版本将优先尝试使用 `unified-plan`,
|
|
4030
|
+
* 在不支持 `unified-plan` 的情况下使用 `plan-b` 协议。
|
|
4028
4031
|
*/
|
|
4029
4032
|
sdpSemantics?: ISdpSemantics;
|
|
4030
4033
|
/**
|
|
@@ -4466,6 +4469,13 @@ declare class RCMCUConfigBuilder {
|
|
|
4466
4469
|
clearCustomizeInputAudio(): RCMCUConfigBuilder;
|
|
4467
4470
|
/**
|
|
4468
4471
|
* 给单道流添加水印
|
|
4472
|
+
* @param trackId 资源 Id
|
|
4473
|
+
* @param uri 水印图片的地址,需注意图片需要是 png 格式
|
|
4474
|
+
* @param x 相对于整体画布的起始位置 x 坐标(百分比),有效值 `0.0` - `1.0`
|
|
4475
|
+
* @param y 相对于整体画布的起始位置 y 坐标(百分比),有效值 `0.0` - `1.0`
|
|
4476
|
+
* @param width 相对于整体画布的宽(百分比),有效值 `0.0` - `1.0`
|
|
4477
|
+
* @param height 相对于整体画布的高(百分比),有效值 `0.0` - `1.0`
|
|
4478
|
+
* @description 注意,参数中 x + width 不得大于 1,y + height 不得大于 1,否则调用 flush() 时会提示 46020 错误
|
|
4469
4479
|
*/
|
|
4470
4480
|
addPictureWaterMark(trackId: string, uri: string, x: number, y: number, w: number, h: number): RCMCUConfigBuilder;
|
|
4471
4481
|
/**
|
|
@@ -5040,4 +5050,4 @@ declare const helper: {
|
|
|
5040
5050
|
ifSupportScreenShare: typeof ifSupportScreenShare;
|
|
5041
5051
|
};
|
|
5042
5052
|
|
|
5043
|
-
export { BackgroundPictureFillMode, IAudienceRoomEventListener, ICameraVideoProfile, ILiveAudioState, IMCUOutputConfig, IMCUOutputVideoConfig, IMicphoneAudioProfile, IPKEndInfo, IPKInviteAnswerInfo, IPKInviteInfo, IPubSuccessRes, IPublishAttrs, IPublishedResource, IRCCandidatePairStat, IRCRTCInitOptions, IRCRTCReportListener, IRCRTCStateReport, IRCTrackStat, IReqResPKOptions, IRoomEventListener, IRoomPKEventListener, ISubscribeAttr, IVideoProfile, MixLayoutMode, MixVideoRenderMode, RCAbstractRoom, RCAudienceClient, RCAudienceLivingRoom, RCAudioBitrate, RCCameraVideoTrack, RCFrameRate, RCInnerCDNPullIsHttps, RCInnerCDNPullKind, RCKickReason, RCLivingRoom, RCLivingType, RCLocalAudioTrack, RCLocalFileAudioTrack, RCLocalFileTrack, RCLocalFileVideoTrack, RCLocalTrack, RCLocalVideoTrack, RCMCUConfigBuilder, RCMediaStreamCapture, RCMediaType, RCMicphoneAudioTrack, RCRTCClient, RCRTCCode, RCRTCLiveRole, RCRTCPingResult, RCRTCRoom, RCRemoteAudioTrack, RCRemoteTrack, RCRemoteVideoTrack, RCResolution, RCScreenAudioTrack, RCScreenVideoTrack, RCTag, RCTrack, RCVideoBitrate, RTCJoinType, device, helper, installer };
|
|
5053
|
+
export { BackgroundPictureFillMode, IAudienceRoomEventListener, ICameraVideoProfile, ICreateLocalTrackOptions, IJoinResCDNInfo, ILiveAudioState, IMCUOutputConfig, IMCUOutputVideoConfig, IMicphoneAudioProfile, IPKEndInfo, IPKInviteAnswerInfo, IPKInviteInfo, IPubSuccessRes, IPublishAttrs, IPublishedResource, IRCCandidatePairStat, IRCRTCInitOptions, IRCRTCReportListener, IRCRTCStateReport, IRCTrackStat, IRTCUserData, IReqResPKOptions, IRoomEventListener, IRoomPKEventListener, ISubscribeAttr, IVideoProfile, MixLayoutMode, MixVideoRenderMode, RCAbstractRoom, RCAudienceClient, RCAudienceLivingRoom, RCAudioBitrate, RCCameraVideoTrack, RCFrameRate, RCInnerCDNPullIsHttps, RCInnerCDNPullKind, RCKickReason, RCLivingRoom, RCLivingType, RCLocalAudioTrack, RCLocalFileAudioTrack, RCLocalFileTrack, RCLocalFileVideoTrack, RCLocalTrack, RCLocalVideoTrack, RCMCUConfigBuilder, RCMediaStreamCapture, RCMediaType, RCMicphoneAudioTrack, RCRTCClient, RCRTCCode, RCRTCLiveRole, RCRTCPingResult, RCRTCRoom, RCRemoteAudioTrack, RCRemoteTrack, RCRemoteVideoTrack, RCResolution, RCScreenAudioTrack, RCScreenVideoTrack, RCTag, RCTrack, RCVideoBitrate, RTCJoinType, device, helper, installer };
|