tencent cloud

实时音视频

动态与公告
产品动态
产品近期公告
关于 TRTC Live 正式上线的公告
关于TRTC Conference 正式版上线的公告
Conference 商业化版本即将推出
关于多人音视频 Conference 开启内测公告
关于音视频通话 Call 正式版上线的公告
关于腾讯云音视频终端 SDK 播放升级及新增授权校验的公告
关于 TRTC 应用订阅套餐服务上线的相关说明
产品简介
产品概述
基本概念
产品功能
产品优势
应用场景
性能数据
购买指南
计费概述
免费时长说明
月订阅
现收现付
TRTC 逾期与暂停政策
常见问题解答
退款说明
新手指引
Demo 体验
视频通话 SDK
组件介绍
开通服务
跑通 Demo
快速接入
离线唤醒
会话聊天
云端录制
AI 降噪
界面定制
Chat 集成通话能力
更多特性
无 UI 集成
服务端 API
客户端 API
解决方案
错误码表
发布日志
常见问题
视频会议 SDK
组件介绍(TUIRoomKit)
开通服务(TUIRoomKit)
跑通 Demo(TUIRoomKit)
快速接入(TUIRoomKit)
屏幕共享(TUIRoomKit)
预定会议(TUIRoomKit)
会中呼叫(TUIRoomKit)
界面定制(TUIRoomKit)
虚拟背景(TUIRoomKit)
会议控制(TUIRoomKit)
云端录制(TUIRoomKit)
AI 降噪(TUIRoomKit)
会中聊天(TUIRoomKit)
机器人推流(TUIRoomKit)
更多特性(TUIRoomKit)
客户端 API(TUIRoomKit)
服务端 API(TUIRoomKit)
常见问题(TUIRoomKit)
错误码 (TUIRoomKit)
SDK更新日志(TUIRoomKit)
直播与语聊 SDK
Live 视频直播计费说明
组件介绍
开通服务(TUILiveKit)
跑通 Demo
无 UI 集成
UI 自定义
直播监播
视频直播
语聊房
高级功能
客户端 API
服务端 API
错误码
发布日志
常见问题
RTC Engine
开通服务
SDK 下载
API-Example
接入指引
API-参考手册
高级功能
AI 集成
概述
MCP 配置
Skills 配置
集成指南
常见问题
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
控制台指南
应用管理
套餐包管理
用量统计
监控仪表盘
开发辅助
解决方案
实时合唱
常见问题
迁移指南
计费相关
功能相关
UserSig 相关
应对防火墙限制相关
缩减安装包体积相关
Andriod 与 iOS 相关
Web 端相关
Flutter 相关
Electron 相关
TRTCCalling Web 相关
音视频质量相关
其他问题
旧版文档
RTC RoomEngine SDK(旧)
集成 TUIRoom (Web)
集成 TUIRoom (Android)
集成 TUIRoom (iOS)
集成 TUIRoom (Flutter)
集成 TUIRoom (Electron)
TUIRoom API 查询
实现云端录制与回放(旧)
监控仪表盘计费(旧)
协议与策略
安全合规认证
安全白皮书
信息安全说明
服务等级协议
苹果隐私策略:PrivacyInfo.xcprivacy
TRTC 政策
隐私协议
数据处理和安全协议
词汇表

废弃接口

PDF
聚焦模式
字号
最后更新时间: 2025-12-31 17:31:26
Copyright (c) 2022 Tencent. All rights reserved.

Module: DeprecatedTRTCCloud @ TXLiteAVSDK

Function: TRTC 废弃接口

废弃接口

TRTCCloud

函数列表
描述
销毁 TRTCCloud 实例(单例模式)。
设置 TRTC 事件回调。
设置美颜、美白以及红润效果级别。
设置大眼级别。
设置瘦脸级别。
设置 V 脸级别。
设置下巴拉伸或收缩幅度。
设置短脸级别。
设置瘦鼻级别。
设置动效贴纸。
设置动效静音。
设置色彩滤镜效果。
设置色彩滤镜浓度。
设置绿幕背景视频。
设置混响效果。
设置变声类型。
开启(或关闭)耳返。
启用音量大小提示。
启用音量大小提示。
切换摄像头。
查询当前摄像头是否支持缩放。
设置摄像头缩放倍数(焦距)。
查询是否支持开关闪光灯。
开关/关闭闪光灯。
查询摄像头是否支持设置焦点。
设置摄像头焦点坐标位置。
查询是否支持自动识别人脸位置。
开启/关闭人脸跟踪对焦。
设置系统音量类型。
视频截图。
开始全系统的屏幕分享(iOS)。
设置音频质量。
开始显示远端视频画面。
停止显示远端视频画面,同时不再拉取该远端用户的视频数据流。
设置本地图像的渲染模式。
设置本地图像的顺时针旋转角度。
设置本地摄像头预览画面的镜像模式。
设置远端图像的渲染模式。
设置远端图像的顺时针旋转角度。
开始显示远端用户的辅路画面。
停止显示远端用户的辅路画面。
设置辅路画面的填充模式。
设置辅路画面的顺时针旋转角度。
设置音频质量。
设定优先观看大画面还是小画面。
设置麦克风音量大小。
启动播放背景音乐。
停止播放背景音乐。
停止播放背景音乐。
停止播放背景音乐。
获取背景音乐总时长(单位:毫秒)。
设置背景音乐的播放进度。
设置背景音乐的音量大小。
设置背景音乐的本地播放音量。
设置背景音乐的远端播放音量。
播放音效。
设置音效音量。
停止播放音效。
停止所有音效。
设置所有音效音量。
暂停音效。
暂停音效。
启用视频自定义采集模式。
投送自己采集的视频数据。
暂停/恢复发布本地的视频流。
暂停 / 恢复订阅远端用户的视频流。
开始进行网络测速(进入房间前使用)。
启动屏幕分享。
获取摄像头设备列表。
选定当前要使用的摄像头。
获取当前使用的摄像头。
获取麦克风设备列表。
获取当前的麦克风设备。
选定当前使用的麦克风。
获取当前麦克风的设备音量。
设置当前麦克风的设备音量。
设置系统当前麦克风设备的静音状态。
获取系统当前麦克风设备是否静音。
获取扬声器设备列表。
获取当前的扬声器设备。
设置要使用的扬声器。
获取当前扬声器的设备音量。
设置当前扬声器的设备音量。
获取系统当前扬声器设备是否静音。
设置系统当前扬声器设备的静音状态。
开始进行摄像头测试。
停止进行摄像头测试。
开始进行麦克风测试。
开始进行麦克风测试。
开始进行扬声器测试。
停止进行扬声器测试。
开始应用内的屏幕分享(iOS)。
设置视频编码器输出的画面方向。
设置编码器输出的画面镜像模式。
设置重力感应的适配模式。
开始向腾讯云直播 CDN 上发布音视频流。
停止向腾讯云直播 CDN 上发布音视频流。
开始向非腾讯云 CDN 上发布音视频流。
停止向非腾讯云 CDN 上发布音视频流。
设置云端混流的排版布局和转码参数。

destroySharedIntance

destroySharedIntance
销毁 TRTCCloud 实例(单例模式)。
@deprecated 11.5 版本不推荐使用 建议使用 destroySharedInstance

delegate

delegate
设置 TRTC 事件回调。
@deprecated v11.4 版本开始不推荐使用,建议使用 addDelegate 替代之。

setBeautyStyle:beautyLevel:whitenessLevel:ruddinessLevel:

setBeautyStyle:beautyLevel:whitenessLevel:ruddinessLevel:
- (void)setBeautyStyle:
(TRTCBeautyStyle)beautyStyle
beautyLevel:
(NSInteger)beautyLevel
whitenessLevel:
(NSInteger)whitenessLevel
ruddinessLevel:
(NSInteger)ruddinessLevel
设置美颜、美白以及红润效果级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setBeautyStyle, setBeautyLevel, setWhitenessLevel, setRuddyLevel 替代之。

setEyeScaleLevel:

setEyeScaleLevel:
- (void)setEyeScaleLevel:
(float)eyeScaleLevel
设置大眼级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setEyeScaleLevel 替代之。

setFaceScaleLevel:

setFaceScaleLevel:
- (void)setFaceScaleLevel:
(float)faceScaleLevel
设置瘦脸级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setFaceSlimLevel 替代之。

setFaceVLevel:

setFaceVLevel:
- (void)setFaceVLevel:
(float)faceVLevel
设置 V 脸级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setFaceVLevel 替代之。

setChinLevel:

setChinLevel:
- (void)setChinLevel:
(float)chinLevel
设置下巴拉伸或收缩幅度。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setChinLevel 替代之。

setFaceShortLevel:

setFaceShortLevel:
- (void)setFaceShortLevel:
(float)faceShortlevel
设置短脸级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setFaceShortLevel 替代之。

setNoseSlimLevel:

setNoseSlimLevel:
- (void)setNoseSlimLevel:
(float)noseSlimLevel
设置瘦鼻级别。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setNoseSlimLevel 替代之。

selectMotionTmpl:

selectMotionTmpl:
- (void)selectMotionTmpl:
(NSString *)tmplPath
设置动效贴纸。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setMotionTmpl 替代之。

setMotionMute:

setMotionMute:
- (void)setMotionMute:
(BOOL)motionMute
设置动效静音。
@deprecated v6.9 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setMotionMute 替代之。

setFilter:

setFilter:
- (void)setFilter:
(TXImage *)image
设置色彩滤镜效果。
@deprecated v7.2 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setFilter 替代之。

setFilterConcentration:

setFilterConcentration:
- (void)setFilterConcentration:
(float)concentration
设置色彩滤镜浓度。
@deprecated v7.2 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setFilterStrength 替代之。

setGreenScreenFile:

setGreenScreenFile:
- (void)setGreenScreenFile:
(NSURL *)file
设置绿幕背景视频。
@deprecated v7.2 版本开始不推荐使用,建议使用 TXBeautyManager 中的 setGreenScreenFile 替代之。

setReverbType:

setReverbType:
- (void)setReverbType:
(TRTCReverbType)reverbType
设置混响效果。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceReverbType 替代之。

setVoiceChangerType:

setVoiceChangerType:
- (void)setVoiceChangerType:
(TRTCVoiceChangerType)voiceChangerType
设置变声类型。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceChangerType 替代之。

enableAudioEarMonitoring:

enableAudioEarMonitoring:
- (void)enableAudioEarMonitoring:
(BOOL)enable
开启(或关闭)耳返。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceEarMonitor 替代之。

enableAudioVolumeEvaluation:

enableAudioVolumeEvaluation:
- (void)enableAudioVolumeEvaluation:
(NSUInteger)interval
启用音量大小提示。
@deprecated v10.1 版本开始不推荐使用,建议使用 enableAudioVolumeEvaluation(enable, params) 替代之。

enableAudioVolumeEvaluation:enable_vad:

enableAudioVolumeEvaluation:enable_vad:
- (void)enableAudioVolumeEvaluation:
(NSUInteger)interval
enable_vad:
(BOOL)enable_vad
启用音量大小提示。
@deprecated v11.2 版本开始不推荐使用,建议使用 enableAudioVolumeEvaluation(enable, params) 替代之。

switchCamera

switchCamera
切换摄像头。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 switchCamera 接口替代之。

isCameraZoomSupported

isCameraZoomSupported
查询当前摄像头是否支持缩放。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 isCameraZoomSupported 接口替代之。

setZoom:

setZoom:
- (void)setZoom:
(CGFloat)distance
设置摄像头缩放倍数(焦距)。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCameraZoomRatio 接口替代之。

isCameraTorchSupported

isCameraTorchSupported
查询是否支持开关闪光灯。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 isCameraTorchSupported 接口替代之。

enbaleTorch:

enbaleTorch:
- (BOOL)enbaleTorch:
(BOOL)enable
开关/关闭闪光灯。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 enableCameraTorch 接口替代之。

isCameraFocusPositionInPreviewSupported

isCameraFocusPositionInPreviewSupported
查询摄像头是否支持设置焦点。
@deprecated v8.0 版本开始不推荐使用。

setFocusPosition:

setFocusPosition:
- (void)setFocusPosition:
(CGPoint)touchPoint
设置摄像头焦点坐标位置。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCameraFocusPosition 接口替代之。

isCameraAutoFocusFaceModeSupported

isCameraAutoFocusFaceModeSupported
查询是否支持自动识别人脸位置。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 isAutoFocusEnabled 接口替代之。

enableAutoFaceFoucs:

enableAutoFaceFoucs:
- (void)enableAutoFaceFoucs:
(BOOL)enable
开启/关闭人脸跟踪对焦。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 enableCameraAutoFocus 接口替代之。

setSystemVolumeType:

setSystemVolumeType:
- (void)setSystemVolumeType:
设置系统音量类型。
@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio(quality) 替代之,通过 quality 参数来决策音质。

snapshotVideo:type:

snapshotVideo:type:
- (void)snapshotVideo:
(NSString *)userId
type:
(TRTCVideoStreamType)streamType
视频截图。
@deprecated v8.2 版本开始不推荐使用,建议使用 snapshotVideo 替代之。

startScreenCaptureByReplaykit:appGroup:

startScreenCaptureByReplaykit:appGroup:
- (void)startScreenCaptureByReplaykit:
(TRTCVideoEncParam *)encParams
appGroup:
(NSString *)appGroup
开始全系统的屏幕分享(iOS)。
@deprecated v8.6 版本开始不推荐使用,建议使用 startScreenCaptureByReplaykit 接口替代之。

startLocalAudio

startLocalAudio
设置音频质量。
@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio 替代之。

startRemoteView:view:

startRemoteView:view:
- (void)startRemoteView:
(NSString *)userId
view:
(TXView *)view
开始显示远端视频画面。
@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView 替代之。

stopRemoteView:

stopRemoteView:
- (void)stopRemoteView:
(NSString *)userId
停止显示远端视频画面,同时不再拉取该远端用户的视频数据流。
@deprecated v8.0 版本开始不推荐使用,建议使用 stopRemoteView 替代之。

setLocalViewFillMode:

setLocalViewFillMode:
- (void)setLocalViewFillMode:
(TRTCVideoFillMode)mode
设置本地图像的渲染模式。
@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setLocalViewRotation:

setLocalViewRotation:
- (void)setLocalViewRotation:
(TRTCVideoRotation)rotation
设置本地图像的顺时针旋转角度。
@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setLocalViewMirror:

setLocalViewMirror:
- (void)setLocalViewMirror:
(TRTCLocalVideoMirrorType)mirror
设置本地摄像头预览画面的镜像模式。
@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setRemoteViewFillMode:mode:

setRemoteViewFillMode:mode:
- (void)setRemoteViewFillMode:
(NSString*)userId
mode:
(TRTCVideoFillMode)mode
设置远端图像的渲染模式。
@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

setRemoteViewRotation:rotation:

setRemoteViewRotation:rotation:
- (void)setRemoteViewRotation:
(NSString*)userId
rotation:
(TRTCVideoRotation)rotation
设置远端图像的顺时针旋转角度。
@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

startRemoteSubStreamView:view:

startRemoteSubStreamView:view:
- (void)startRemoteSubStreamView:
(NSString *)userId
view:
(TXView *)view
开始显示远端用户的辅路画面。
@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView 替代之。

stopRemoteSubStreamView:

stopRemoteSubStreamView:
- (void)stopRemoteSubStreamView:
(NSString *)userId
停止显示远端用户的辅路画面。
@deprecated v8.0 版本开始不推荐使用,建议使用 stopRemoteView 替代之。

setRemoteSubStreamViewFillMode:mode:

setRemoteSubStreamViewFillMode:mode:
- (void)setRemoteSubStreamViewFillMode:
(NSString *)userId
mode:
(TRTCVideoFillMode)mode
设置辅路画面的填充模式。
@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

setRemoteSubStreamViewRotation:rotation:

setRemoteSubStreamViewRotation:rotation:
- (void)setRemoteSubStreamViewRotation:
(NSString*)userId
rotation:
(TRTCVideoRotation)rotation
设置辅路画面的顺时针旋转角度。
@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams:streamType:params: 替代之。

setAudioQuality:

setAudioQuality:
- (void)setAudioQuality:
(TRTCAudioQuality)quality
设置音频质量。
@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio 替代之。

setPriorRemoteVideoStreamType:

setPriorRemoteVideoStreamType:
- (void)setPriorRemoteVideoStreamType:
(TRTCVideoStreamType)streamType
设定优先观看大画面还是小画面。
@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView:streamType:view: 替代之。

setMicVolumeOnMixing:

setMicVolumeOnMixing:
- (void)setMicVolumeOnMixing:
(NSInteger)volume
设置麦克风音量大小。

playBGM:

playBGM:
- (void) playBGM:
(NSString *)path
启动播放背景音乐。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 startPlayMusic 替代之。

stopBGM

stopBGM
停止播放背景音乐。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 stopPlayMusic 替代之。

pauseBGM

pauseBGM
停止播放背景音乐。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 pausePlayMusic 替代之。

resumeBGM

resumeBGM
停止播放背景音乐。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 resumePlayMusic 替代之。

getBGMDuration:

getBGMDuration:
- (NSInteger)getBGMDuration:
(NSString *)path
获取背景音乐总时长(单位:毫秒)。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 getMusicDurationInMS 替代之。

setBGMPosition:

setBGMPosition:
- (int)setBGMPosition:
(NSInteger)pos
设置背景音乐的播放进度。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 seekMusicToPosInMS 替代之。

setBGMVolume:

setBGMVolume:
- (void)setBGMVolume:
(NSInteger)volume
设置背景音乐的音量大小。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicVolume 替代之。

setBGMPlayoutVolume:

setBGMPlayoutVolume:
- (void)setBGMPlayoutVolume:
(NSInteger)volume
设置背景音乐的本地播放音量。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicPlayoutVolume 替代之。

setBGMPublishVolume:

setBGMPublishVolume:
- (void)setBGMPublishVolume:
(NSInteger)volume
设置背景音乐的远端播放音量。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setBGMPublishVolume 替代之。

playAudioEffect:

playAudioEffect:
- (void)playAudioEffect:
(TRTCAudioEffectParam*)effect
播放音效。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 startPlayMusic 替代之。

setAudioEffectVolume:volume:

setAudioEffectVolume:volume:
- (void)setAudioEffectVolume:
(int)effectId
volume:
(int) volume
设置音效音量。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicPublishVolumesetMusicPlayoutVolume 替代之。

stopAudioEffect:

stopAudioEffect:
- (void)stopAudioEffect:
(int)effectId
停止播放音效。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 stopPlayMusic 替代之。

stopAllAudioEffects

stopAllAudioEffects
停止所有音效。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 stopPlayMusic 替代之。

setAllAudioEffectsVolume:

setAllAudioEffectsVolume:
- (void)setAllAudioEffectsVolume:
(int)volume
设置所有音效音量。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicPublishVolumesetMusicPlayoutVolume 替代之。

pauseAudioEffect:

pauseAudioEffect:
- (void)pauseAudioEffect:
(int)effectId
暂停音效。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 pauseAudioEffect 替代之。

resumeAudioEffect:

resumeAudioEffect:
- (void)resumeAudioEffect:
(int)effectId
暂停音效。
@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 resumePlayMusic 替代之。

enableCustomVideoCapture:

enableCustomVideoCapture:
- (void)enableCustomVideoCapture:
(BOOL)enable
启用视频自定义采集模式。
@deprecated v8.5 版本开始不推荐使用,建议使用 enableCustomVideoCapture(streamType, enable) 接口替代之。

sendCustomVideoData:

sendCustomVideoData:
- (void)sendCustomVideoData:
(TRTCVideoFrame *)frame
投送自己采集的视频数据。
@deprecated v8.5 版本开始不推荐使用,建议使用 sendCustomVideoData(streamType, TRTCVideoFrame) 接口替代之。

muteLocalVideo:

muteLocalVideo:
- (void)muteLocalVideo:
(BOOL)mute
暂停/恢复发布本地的视频流。
@deprecated v8.9 版本开始不推荐使用,建议使用 muteLocalVideo(streamType, mute) 接口替代之。

muteRemoteVideoStream:mute:

muteRemoteVideoStream:mute:
- (void)muteRemoteVideoStream:
(NSString*)userId
mute:
(BOOL)mute
暂停 / 恢复订阅远端用户的视频流。
@deprecated v8.9 版本开始不推荐使用,建议使用 muteRemoteVideoStream(userId, streamType, mute) 接口替代之。

startSpeedTest:userId:userSig:

startSpeedTest:userId:userSig:
- (void)startSpeedTest:
(uint32_t)sdkAppId
userId:
(NSString *)userId
userSig:
(NSString *)userSig
开始进行网络测速(进入房间前使用)。
@deprecated v9.2 版本开始不推荐使用,建议使用 startSpeedTest(params) 接口替代之。

startScreenCapture:

startScreenCapture:
- (void)startScreenCapture:
(nullable NSView *)view
启动屏幕分享。
@deprecated v7.2 版本开始不推荐使用,建议使用 startScreenCapture 替代之。

getCameraDevicesList

getCameraDevicesList
获取摄像头设备列表。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getDevicesList 接口替代之。

setCurrentCameraDevice:

setCurrentCameraDevice:
- (int)setCurrentCameraDevice:
(NSString *)deviceId
选定当前要使用的摄像头。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDevice 接口替代之。

getCurrentCameraDevice

getCurrentCameraDevice
获取当前使用的摄像头。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDevice 接口替代之。

getMicDevicesList

getMicDevicesList
获取麦克风设备列表。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getDevicesList 接口替代之。

getCurrentMicDevice

getCurrentMicDevice
获取当前的麦克风设备。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDevice 接口替代之。

setCurrentMicDevice:

setCurrentMicDevice:
- (int)setCurrentMicDevice:
(NSString*)deviceId
选定当前使用的麦克风。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDevice 接口替代之。

getCurrentMicDeviceVolume

getCurrentMicDeviceVolume
获取当前麦克风的设备音量。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDeviceVolume 接口替代之。

setCurrentMicDeviceVolume:

setCurrentMicDeviceVolume:
- (void)setCurrentMicDeviceVolume:
(NSInteger)volume
设置当前麦克风的设备音量。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDeviceVolume 接口替代之。

setCurrentMicDeviceMute:

setCurrentMicDeviceMute:
- (void)setCurrentMicDeviceMute:
(BOOL)mute
设置系统当前麦克风设备的静音状态。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDeviceMute 接口替代之。

getCurrentMicDeviceMute

getCurrentMicDeviceMute
获取系统当前麦克风设备是否静音。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDeviceMute 接口替代之。

getSpeakerDevicesList

getSpeakerDevicesList
获取扬声器设备列表。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getDevicesList 接口替代之。

getCurrentSpeakerDevice

getCurrentSpeakerDevice
获取当前的扬声器设备。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDevice 接口替代之。

setCurrentSpeakerDevice:

setCurrentSpeakerDevice:
- (int)setCurrentSpeakerDevice:
(NSString*)deviceId
设置要使用的扬声器。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDevice 接口替代之。

getCurrentSpeakerDeviceVolume

getCurrentSpeakerDeviceVolume
获取当前扬声器的设备音量。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDeviceVolume 接口替代之。

setCurrentSpeakerDeviceVolume:

setCurrentSpeakerDeviceVolume:
- (int)setCurrentSpeakerDeviceVolume:
(NSInteger)volume
设置当前扬声器的设备音量。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDeviceVolume 接口替代之。

getCurrentSpeakerDeviceMute

getCurrentSpeakerDeviceMute
获取系统当前扬声器设备是否静音。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 getCurrentDeviceMute 接口替代之。

setCurrentSpeakerDeviceMute:

setCurrentSpeakerDeviceMute:
- (void)setCurrentSpeakerDeviceMute:
(BOOL)mute
设置系统当前扬声器设备的静音状态。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCurrentDeviceMute 接口替代之。

startCameraDeviceTestInView:

startCameraDeviceTestInView:
- (void)startCameraDeviceTestInView:
(NSView *)view
开始进行摄像头测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 startCameraDeviceTest 接口替代之。

stopCameraDeviceTest

stopCameraDeviceTest
停止进行摄像头测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 stopCameraDeviceTest 接口替代之。

startMicDeviceTest:

startMicDeviceTest:
- (void)startMicDeviceTest:
(NSInteger)interval
开始进行麦克风测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 startMicDeviceTest 接口替代之。

stopMicDeviceTest

stopMicDeviceTest
开始进行麦克风测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 stopMicDeviceTest 接口替代之。

startSpeakerDeviceTest:

startSpeakerDeviceTest:
- (void)startSpeakerDeviceTest:
(NSString*)audioFilePath
开始进行扬声器测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 startSpeakerDeviceTest 接口替代之。

stopSpeakerDeviceTest

stopSpeakerDeviceTest
停止进行扬声器测试。
@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 stopSpeakerDeviceTest 接口替代之。

startScreenCaptureInApp:

startScreenCaptureInApp:
- (void)startScreenCaptureInApp:
(TRTCVideoEncParam *)encParams
开始应用内的屏幕分享(iOS)。
@deprecated v8.6 版本开始不推荐使用,建议使用 startScreenCaptureInApp 接口替代之。

setVideoEncoderRotation:

setVideoEncoderRotation:
- (void)setVideoEncoderRotation:
(TRTCVideoRotation)rotation
设置视频编码器输出的画面方向。
@deprecated v11.7 版本开始不推荐使用。

setVideoEncoderMirror:

setVideoEncoderMirror:
- (void)setVideoEncoderMirror:
(BOOL)mirror
设置编码器输出的画面镜像模式。
@deprecated v11.7 版本开始不推荐使用。

setGSensorMode:

setGSensorMode:
- (void)setGSensorMode:
(TRTCGSensorMode) mode
设置重力感应的适配模式。
@deprecated v11.7 版本开始不推荐使用。建议使用 setGravitySensorAdaptiveMode 接口替代之。

startPublishing:type:

startPublishing:type:
- (void)startPublishing:
(NSString *)streamId
type:
(TRTCVideoStreamType)streamType
开始向腾讯云直播 CDN 上发布音视频流。
@deprecated v12.0 版本开始不推荐使用。建议使用 startPublishMediaStream 接口替代之。

stopPublishing

stopPublishing
停止向腾讯云直播 CDN 上发布音视频流。
@deprecated v12.0 版本开始不推荐使用。建议使用 stopPublishMediaStream 接口替代之。

startPublishCDNStream:

startPublishCDNStream:
- (void)startPublishCDNStream:
(TRTCPublishCDNParam*)param
开始向非腾讯云 CDN 上发布音视频流。
@deprecated v12.0 版本开始不推荐使用。建议使用 startPublishMediaStream 接口替代之。

stopPublishCDNStream

stopPublishCDNStream
停止向非腾讯云 CDN 上发布音视频流。
@deprecated v12.0 版本开始不推荐使用。建议使用 stopPublishMediaStream 接口替代之。

setMixTranscodingConfig:

setMixTranscodingConfig:
- (void)setMixTranscodingConfig:
(nullable TRTCTranscodingConfig*)config
设置云端混流的排版布局和转码参数。
@deprecated v12.0 版本开始不推荐使用。建议使用 startPublishMediaStreamupdatePublishMediaStreamstopPublishMediaStream 接口替代之。

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈