检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
HRTC_ERR_CODE_EXT_MEDIA_CAPTURE_INPUT 90000037 当前为第三方采集模式,禁用该操作 开启第三方采集模式后,禁用部分操作。 HRTC_ERR_CODE_SET_EXTAUDIO_CAPTURE_FAIL 90000038 设置第三方音频采集失败
'signature expired' } 签名无效:{ errorCode: '90100031' errorMsg: 'signature invalid' } 监听到签名过期事件后可通过错误码区分是签名无效还是签名过期,签名过期后可通过renewSignature接口更新签名。
加入房间前调用,不支持房间内切换。 视频支持格式:默认为I420,format可选格式为yuv420p、rgba和texture2d,如果需要外部传入texture2d编码的数据,需要设置format为texture2d,否则传入yuv420p或者rgba。 如果使用外部输入视频数据,需要在加入房间后,按照
查询录制规则列表 功能介绍 调用此接口查询录制规则列表。 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI GET /v2/apps/{app_id}/record-rules
tring *_Nonnull)signature time:(long long)time; 【功能说明】 鉴权签名过期,收到onAuthorizationExpired签名鉴权过期回调后,更新鉴权签名。 【请求参数】 signature:鉴权签名字串。 time:过期时间。 【返回参数】
Windows端如何才能采集到被分享应用播放的声音? 通过调用setShareComputerSound接口,可打开系统声音采集。 父主题: SDK使用
自采集自渲染 setExternalVideoCapture virtual int setExternalVideoCapture(bool enable, HRTCVideoFrameFormat format) 【功能说明】 设置是否开启外部视频采集。 【请求参数】 ena
架构,您可以将XCode的“Build Setting < Build Active Architecture Only”设置为“YES”,并将Valid Architectures填写为arm64 ,则可以将SparkRTC SDK安装包压缩到一半的体积。 父主题: SDK使用
自定义音频采集和渲染 setExternalAudioCapture - (int)setExternalAudioCapture:(BOOL)enable sampleRate:(NSUInteger)sampleRate channels:(NSUInteger)channels;
xml中需添加如下约束。 <activity <activity android:name="com.huawei.allplatform.screencapture.HRTCScreenShareAssistantActivity" android:theme="@style/dialog" />
HRTCVideoFrame& videoFrame) { return true; } bool HRTCVideoFrameObserver::requireCaptureVideoFrame() { return true; } bool HRTCVideoFrameO
renewAuthorization(const char* signature, long long ctime) 【功能说明】 鉴权签名过期,收到onAuthorizationExpired签名鉴权过期回调后,更新鉴权签名。 【请求参数】 signature:鉴权签名字符串。 ctime:过期时间。 【返回参数】
enable Boolean 开启或关闭URL鉴权 expire Integer 接入RTC建链认证时的signature的有效期。单位:秒。默认300秒。signature由app_key生成 app_key String APP鉴权密钥 update_time String ap
onJoinRoomFailure:加入房间失败。 changeUserRole - (int)changeUserRole:(HWRtcRole)role signature:(NSString *)authorization ctime:(long long)ctime; 【功能说明】 设置用户在本房间内/指定房间的角色,角色切换时使用。
_Nonnull)videoFrame { return YES; } - (BOOL)requireCaptureVideoFrame { return YES; } - (BOOL)requireRenderVideoFrame { Return YES; } 加入房间
_Nonnull)videoFrame { return YES; } - (BOOL)requireCaptureVideoFrame { return YES; } - (BOOL)requireRenderVideoFrame { Return YES; } 加入房间
onVideoFrameCapture 原始视频回调(前处理) onVideoFrameRender 渲染后视频回调(后处理) requireCaptureVideoFrame 是否开启前处理 requireRenderVideoFrame 是否开启后处理 onVideoFrameCapture -
enable Boolean 开启或关闭URL鉴权 expire Integer 接入RTC建链认证时的signature的有效期。单位:秒。默认300秒。signature由app_key生成 app_key String APP鉴权密钥 update_time String ap
6 7 8 9 let option = { userId: userId, userName: userName, signature: signature, ctime: ctime, role: role } async joinRoom() { try{ await
同一个页面中,可以创建N个RTC对象,通过N个UserID,分别登录到N个房间吗? 可以。 父主题: SDK使用