腾讯云实时音视频废弃接口_音视频解决方案_同尘科技

实时音视频 2年前 (2023-12-06) 浏览 99

Copyright (c) 2022 Tencent. All rights reserved.
Module: DeprecatedTRTCCloud @ TXLiteAVSDK
Function: TRTC 废弃接口
废弃接口

DeprecatedTRTCCloud

函数列表 描述
setListener 设置 TRTC 事件回调
setBeautyStyle 设置美颜、美白以及红润效果级别
setEyeScaleLevel 设置大眼级别
setFaceSlimLevel 设置瘦脸级别
setFaceVLevel 设置 V 脸级别
setChinLevel 设置下巴拉伸或收缩幅度
setFaceShortLevel 设置短脸级别
setNoseSlimLevel 设置瘦鼻级别
selectMotionTmpl 设置动效贴纸
setMotionMute 设置动效静音
setFilter 设置色彩滤镜效果
setFilterConcentration 设置色彩滤镜浓度
setGreenScreenFile 设置绿幕背景视频
setReverbType 设置混响效果
setVoiceChangerType 设置变声类型
enableAudioEarMonitoring 开启(或关闭)耳返
enableAudioVolumeEvaluation 启用音量大小提示
enableAudioVolumeEvaluation 启用音量大小提示
switchCamera 切换摄像头
isCameraZoomSupported 查询当前摄像头是否支持缩放
setZoom 设置摄像头缩放倍数(焦距)
isCameraTorchSupported 查询是否支持开关闪光灯
enableTorch 开关/关闭闪光灯
isCameraFocusPositionInPreviewSupported 查询摄像头是否支持设置焦点
setFocusPosition 设置摄像头焦点坐标位置
isCameraAutoFocusFaceModeSupported 查询是否支持自动识别人脸位置
setSystemVolumeType 设置系统音量类型
checkAudioCapabilitySupport 查询是否支持音频某种能力(仅适用于Android)
startLocalAudio 设置音频质量
startRemoteView 开始显示远端视频画面
stopRemoteView 停止显示远端视频画面,同时不再拉取该远端用户的视频数据流
setLocalViewFillMode 设置本地图像的渲染模式
setLocalViewRotation 设置本地图像的顺时针旋转角度
setLocalViewMirror 设置本地摄像头预览画面的镜像模式
setRemoteViewFillMode 设置远端图像的渲染模式
setRemoteViewRotation 设置远端图像的顺时针旋转角度
startRemoteSubStreamView 开始显示远端用户的辅路画面
stopRemoteSubStreamView 停止显示远端用户的辅路画面
setRemoteSubStreamViewFillMode 设置辅路画面的填充模式
setRemoteSubStreamViewRotation 设置辅路画面的顺时针旋转角度
setAudioQuality 设置音频质量
setPriorRemoteVideoStreamType 设定优先观看大画面还是小画面
setMicVolumeOnMixing 设置麦克风音量大小
playBGM 启动播放背景音乐
stopBGM 停止播放背景音乐
pauseBGM 停止播放背景音乐
resumeBGM 停止播放背景音乐
getBGMDuration 获取背景音乐总时长(单位:毫秒)
setBGMPosition 设置背景音乐的播放进度
setBGMVolume 设置背景音乐的音量大小
setBGMPlayoutVolume 设置背景音乐的本地播放音量
setBGMPublishVolume 设置背景音乐的远端播放音量
playAudioEffect 播放音效
setAudioEffectVolume 设置音效音量
stopAudioEffect 停止播放音效
stopAllAudioEffects 停止所有音效
setAllAudioEffectsVolume 设置所有音效音量
pauseAudioEffect 暂停音效
resumeAudioEffect 暂停音效
enableCustomVideoCapture 启用视频自定义采集模式
sendCustomVideoData 投送自己采集的视频数据
muteLocalVideo 暂停/恢复发布本地的视频流
muteRemoteVideoStream 暂停 / 恢复订阅远端用户的视频流
snapshotVideo 视频画面截图
startSpeedTest 开始进行网络测速(进入房间前使用)
startScreenCapture 启动屏幕分享

setListener

setListener

void setListener (TRTCCloudListener listener)

设置 TRTC 事件回调

@deprecated v11.4 版本开始不推荐使用,建议使用 addListener 替代之。

setBeautyStyle

setBeautyStyle

void setBeautyStyle (int beautyStyle
 int beautyLevel
 int whitenessLevel
 int ruddinessLevel)

设置美颜、美白以及红润效果级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setEyeScaleLevel

setEyeScaleLevel

void setEyeScaleLevel (int eyeScaleLevel)

设置大眼级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setFaceSlimLevel

setFaceSlimLevel

void setFaceSlimLevel (int faceScaleLevel)

设置瘦脸级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setFaceVLevel

setFaceVLevel

void setFaceVLevel (int faceVLevel)

设置 V 脸级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setChinLevel

setChinLevel

void setChinLevel (int chinLevel)

设置下巴拉伸或收缩幅度

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setFaceShortLevel

setFaceShortLevel

void setFaceShortLevel (int faceShortlevel)

设置短脸级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setNoseSlimLevel

setNoseSlimLevel

void setNoseSlimLevel (int noseSlimLevel)

设置瘦鼻级别

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

selectMotionTmpl

selectMotionTmpl

void selectMotionTmpl (String motionPath)

设置动效贴纸

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setMotionMute

setMotionMute

void setMotionMute (boolean motionMute)

设置动效静音

@deprecated v6.9 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setFilter

setFilter

void setFilter (Bitmap image)

设置色彩滤镜效果

@deprecated v7.2 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setFilterConcentration

setFilterConcentration

void setFilterConcentration (float concentration)

设置色彩滤镜浓度

@deprecated v7.2 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setGreenScreenFile

setGreenScreenFile

boolean setGreenScreenFile (String file)

设置绿幕背景视频

@deprecated v7.2 版本开始不推荐使用,建议使用 getBeautyManager 替代之。

setReverbType

setReverbType

void setReverbType (int reverbType)

设置混响效果

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceReverbType 替代之。

setVoiceChangerType

setVoiceChangerType

boolean setVoiceChangerType (int voiceChangerType)

设置变声类型

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceChangerType 替代之。

enableAudioEarMonitoring

enableAudioEarMonitoring

void enableAudioEarMonitoring (boolean enable)

开启(或关闭)耳返

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setVoiceEarMonitor 替代之。

enableAudioVolumeEvaluation

enableAudioVolumeEvaluation

void enableAudioVolumeEvaluation (int interval)

启用音量大小提示

@deprecated v10.1 版本开始不推荐使用,建议使用 enableAudioVolumeEvaluation(enable, params) 替代之。

enableAudioVolumeEvaluation

enableAudioVolumeEvaluation

void enableAudioVolumeEvaluation (int interval
 boolean 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 (int distance)

设置摄像头缩放倍数(焦距)

@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCameraZoomRatio 接口替代之。

isCameraTorchSupported

isCameraTorchSupported

查询是否支持开关闪光灯

@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 isCameraTorchSupported 接口替代之。

enableTorch

enableTorch

boolean enableTorch (boolean enable)

开关/关闭闪光灯

@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 enableCameraTorch 接口替代之。

isCameraFocusPositionInPreviewSupported

isCameraFocusPositionInPreviewSupported

查询摄像头是否支持设置焦点

@deprecated v8.0 版本开始不推荐使用。

setFocusPosition

setFocusPosition

void setFocusPosition (int x
 int y)

设置摄像头焦点坐标位置

@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 setCameraFocusPosition 接口替代之。

isCameraAutoFocusFaceModeSupported

isCameraAutoFocusFaceModeSupported

查询是否支持自动识别人脸位置

@deprecated v8.0 版本开始不推荐使用,建议使用 TXDeviceManager 中的 isAutoFocusEnabled 接口替代之。

setSystemVolumeType

setSystemVolumeType

void setSystemVolumeType (int type)

设置系统音量类型

@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio(quality) 替代之,通过 quality 参数来决策音质。

checkAudioCapabilitySupport

checkAudioCapabilitySupport

int checkAudioCapabilitySupport (int capabilityType)

查询是否支持音频某种能力(仅适用于Android)

@deprecated v10.1 版本开始不推荐使用 TRTCAudioCapabilityLowLatencyChorus,低延时合唱能力。 TRTCAudioCapabilityLowLatencyEarMonitor,低延时耳返能力。

参数 描述
capabilityType 音频能力类型.

返回值说明:

0:不支持此能力;1:支持此能力。

startLocalAudio

startLocalAudio

设置音频质量

@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio 替代之。

startRemoteView

startRemoteView

void startRemoteView (String userId
 TXCloudVideoView view)

开始显示远端视频画面

@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView 替代之。

stopRemoteView

stopRemoteView

void stopRemoteView (String userId)

停止显示远端视频画面,同时不再拉取该远端用户的视频数据流

@deprecated v8.0 版本开始不推荐使用,建议使用 stopRemoteView 替代之。

setLocalViewFillMode

setLocalViewFillMode

void setLocalViewFillMode (int mode)

设置本地图像的渲染模式

@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setLocalViewRotation

setLocalViewRotation

void setLocalViewRotation (int rotation)

设置本地图像的顺时针旋转角度

@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setLocalViewMirror

setLocalViewMirror

void setLocalViewMirror (int mirrorType)

设置本地摄像头预览画面的镜像模式

@deprecated v8.0 版本开始不推荐使用,建议使用 setLocalRenderParams 替代之。

setRemoteViewFillMode

setRemoteViewFillMode

void setRemoteViewFillMode (String userId
 int mode)

设置远端图像的渲染模式

@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

setRemoteViewRotation

setRemoteViewRotation

void setRemoteViewRotation (String userId
 int rotation)

设置远端图像的顺时针旋转角度

@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

startRemoteSubStreamView

startRemoteSubStreamView

void startRemoteSubStreamView (String userId
 TXCloudVideoView view)

开始显示远端用户的辅路画面

@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView 替代之。

stopRemoteSubStreamView

stopRemoteSubStreamView

void stopRemoteSubStreamView (String userId)

停止显示远端用户的辅路画面

@deprecated v8.0 版本开始不推荐使用,建议使用 stopRemoteView 替代之。

setRemoteSubStreamViewFillMode

setRemoteSubStreamViewFillMode

void setRemoteSubStreamViewFillMode (String userId
 int mode)

设置辅路画面的填充模式

@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams 替代之。

setRemoteSubStreamViewRotation

setRemoteSubStreamViewRotation

void setRemoteSubStreamViewRotation (final String userId
 final int rotation)

设置辅路画面的顺时针旋转角度

@deprecated v8.0 版本开始不推荐使用,建议使用 setRemoteRenderParams:streamType:params: 替代之。

setAudioQuality

setAudioQuality

void setAudioQuality (int quality)

设置音频质量

@deprecated v8.0 版本开始不推荐使用,建议使用 startLocalAudio 替代之。

setPriorRemoteVideoStreamType

setPriorRemoteVideoStreamType

int setPriorRemoteVideoStreamType (int streamType)

设定优先观看大画面还是小画面

@deprecated v8.0 版本开始不推荐使用,建议使用 startRemoteView:streamType:view: 替代之。

setMicVolumeOnMixing

setMicVolumeOnMixing

void setMicVolumeOnMixing (int volume)

设置麦克风音量大小

playBGM

playBGM

void playBGM (String path
 TRTCCloud.BGMNotify notify)

启动播放背景音乐

@deprecated v7.3 版本开始不推荐使用,建议使用 getAudioEffectManager 替代之。

stopBGM

stopBGM

停止播放背景音乐

@deprecated v7.3 版本开始不推荐使用,建议使用 getAudioEffectManager 替代之。

pauseBGM

pauseBGM

停止播放背景音乐

@deprecated v7.3 版本开始不推荐使用,建议使用 getAudioEffectManager 替代之。

resumeBGM

resumeBGM

停止播放背景音乐

@deprecated v7.3 版本开始不推荐使用,建议使用 getAudioEffectManager 替代之。

getBGMDuration

getBGMDuration

int getBGMDuration (String path)

获取背景音乐总时长(单位:毫秒)

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 getMusicDurationInMS 替代之。

setBGMPosition

setBGMPosition

int setBGMPosition (int pos)

设置背景音乐的播放进度

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 seekMusicToPosInMS 替代之。

setBGMVolume

setBGMVolume

void setBGMVolume (int volume)

设置背景音乐的音量大小

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicVolume 替代之。

setBGMPlayoutVolume

setBGMPlayoutVolume

void setBGMPlayoutVolume (int volume)

设置背景音乐的本地播放音量

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicPlayoutVolume 替代之。

setBGMPublishVolume

setBGMPublishVolume

void setBGMPublishVolume (int volume)

设置背景音乐的远端播放音量

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setBGMPublishVolume 替代之。

playAudioEffect

playAudioEffect

void playAudioEffect (TRTCCloudDef.TRTCAudioEffectParam effect)

播放音效

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 startPlayMusic 替代之。

setAudioEffectVolume

setAudioEffectVolume

void setAudioEffectVolume (int effectId
 int volume)

设置音效音量

@deprecated v7.3 版本开始不推荐使用,建议使用 TXAudioEffectManager 中的 setMusicPublishVolume 和 setMusicPlayoutVolume 替代之。

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 中的 setMusicPublishVolume 和 setMusicPlayoutVolume 替代之。

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 (boolean enable)

启用视频自定义采集模式

@deprecated v8.5 版本开始不推荐使用,建议使用 enableCustomVideoCapture(streamType, enable) 接口替代之。

sendCustomVideoData

sendCustomVideoData

void sendCustomVideoData (TRTCCloudDef.TRTCVideoFrame frame)

投送自己采集的视频数据

@deprecated v8.5 版本开始不推荐使用,建议使用 sendCustomVideoData(streamType, TRTCVideoFrame) 接口替代之。

muteLocalVideo

muteLocalVideo

void muteLocalVideo (boolean mute)

暂停/恢复发布本地的视频流

@deprecated v8.9 版本开始不推荐使用,建议使用 muteLocalVideo(streamType, mute) 接口替代之。

muteRemoteVideoStream

muteRemoteVideoStream

void muteRemoteVideoStream (String userId
 boolean mute)

暂停 / 恢复订阅远端用户的视频流

@deprecated v8.9 版本开始不推荐使用,建议使用 muteRemoteVideoStream(userId, streamType, mute) 接口替代之。

snapshotVideo

snapshotVideo

void snapshotVideo (String userId
 int streamType
 TRTCCloudListener.TRTCSnapshotListener listener)

视频画面截图

@deprecated v11.0 版本开始不推荐使用,建议使用 snapshotVideo(userId, streamType, sourceType, listener) 接口替代之。

startSpeedTest

startSpeedTest

void startSpeedTest (int sdkAppId
 String userId
 String userSig)

开始进行网络测速(进入房间前使用)

@deprecated v9.2 版本开始不推荐使用,建议使用 startSpeedTest(params) 接口替代之。

startScreenCapture

startScreenCapture

void startScreenCapture (TRTCCloudDef.TRTCVideoEncParam encParams
 TRTCCloudDef.TRTCScreenShareParams shareParams)

启动屏幕分享

@deprecated v7.2 版本开始不推荐使用,建议使用 startScreenCapture 替代之。

对音视频的解决方案有疑惑?想了解解决方案收费? 联系解决方案专家

腾讯云限时活动1折起,即将结束: 马上收藏

同尘科技为腾讯云授权服务中心,购买腾讯云享受折上折,更有现金返利:同意关联,立享优惠

阿里云解决方案也看看?: 点击对比阿里云的解决方案

- 0人点赞 -

发表点评 (0条)

not found

暂无评论,你要说点什么吗?