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

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

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

IDeprecatedTRTCCloud

函数列表 描述
enableAudioVolumeEvaluation 启用音量大小提示
enableAudioVolumeEvaluation 启用音量大小提示
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 暂停 / 恢复订阅远端用户的视频流
startSpeedTest 开始进行网络测速(进入房间前使用)
startScreenCapture 启动屏幕分享
setLocalVideoProcessCallback 设置第三方美颜的视频数据回调
getCameraDevicesList 获取摄像头设备列表
setCurrentCameraDevice 选定当前要使用的摄像头
getCurrentCameraDevice 获取当前使用的摄像头
getMicDevicesList 获取麦克风设备列表
getCurrentMicDevice 获取当前的麦克风设备
setCurrentMicDevice 选定当前使用的麦克风
getCurrentMicDeviceVolume 获取当前麦克风的设备音量
setCurrentMicDeviceVolume 设置当前麦克风的设备音量
setCurrentMicDeviceMute 设置系统当前麦克风设备的静音状态
getCurrentMicDeviceMute 获取系统当前麦克风设备是否静音
getSpeakerDevicesList 获取扬声器设备列表
getCurrentSpeakerDevice 获取当前的扬声器设备
setCurrentSpeakerDevice 设置要使用的扬声器
getCurrentSpeakerVolume 获取当前扬声器的设备音量
setCurrentSpeakerVolume 设置当前扬声器的设备音量
getCurrentSpeakerDeviceMute 获取系统当前扬声器设备是否静音
setCurrentSpeakerDeviceMute 设置系统当前扬声器设备的静音状态
startCameraDeviceTest 开始进行摄像头测试
startCameraDeviceTest 开始进行摄像头测试
stopCameraDeviceTest 停止进行摄像头测试
startMicDeviceTest 开始进行麦克风测试
stopMicDeviceTest 开始进行麦克风测试
startSpeakerDeviceTest 开始进行扬声器测试
stopSpeakerDeviceTest 停止进行扬声器测试
selectScreenCaptureTarget 开始应用内的屏幕分享(iOS)

enableAudioVolumeEvaluation

enableAudioVolumeEvaluation

void enableAudioVolumeEvaluation (uint32_t interval)

启用音量大小提示

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

enableAudioVolumeEvaluation

enableAudioVolumeEvaluation

void enableAudioVolumeEvaluation (uint32_t interval
 bool enable_vad)

启用音量大小提示

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

startLocalAudio

startLocalAudio

设置音频质量

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

startRemoteView

startRemoteView

void startRemoteView (const char* userId
 TXView rendView)

开始显示远端视频画面

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

stopRemoteView

stopRemoteView

void stopRemoteView (const char* 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 (bool mirror)

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

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

setRemoteViewFillMode

setRemoteViewFillMode

void setRemoteViewFillMode (const char* userId
 TRTCVideoFillMode mode)

设置远端图像的渲染模式

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

setRemoteViewRotation

setRemoteViewRotation

void setRemoteViewRotation (const char* userId
 TRTCVideoRotation rotation)

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

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

startRemoteSubStreamView

startRemoteSubStreamView

void startRemoteSubStreamView (const char* userId
 TXView rendView)

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

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

stopRemoteSubStreamView

stopRemoteSubStreamView

void stopRemoteSubStreamView (const char* userId)

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

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

setRemoteSubStreamViewFillMode

setRemoteSubStreamViewFillMode

void setRemoteSubStreamViewFillMode (const char* userId
 TRTCVideoFillMode mode)

设置辅路画面的填充模式

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

setRemoteSubStreamViewRotation

setRemoteSubStreamViewRotation

void setRemoteSubStreamViewRotation (const char* userId
 TRTCVideoRotation rotation)

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

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

setAudioQuality

setAudioQuality

void setAudioQuality (TRTCAudioQuality quality)

设置音频质量

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

setPriorRemoteVideoStreamType

setPriorRemoteVideoStreamType

void setPriorRemoteVideoStreamType (TRTCVideoStreamType type)

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

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

setMicVolumeOnMixing

setMicVolumeOnMixing

void setMicVolumeOnMixing (uint32_t volume)

设置麦克风音量大小

playBGM

playBGM

void playBGM (const char* path)

启动播放背景音乐

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

stopBGM

stopBGM

停止播放背景音乐

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

pauseBGM

pauseBGM

停止播放背景音乐

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

resumeBGM

resumeBGM

停止播放背景音乐

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

getBGMDuration

getBGMDuration

uint32_t getBGMDuration (const char* path)

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

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

setBGMPosition

setBGMPosition

void setBGMPosition (uint32_t pos)

设置背景音乐的播放进度

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

setBGMVolume

setBGMVolume

void setBGMVolume (uint32_t volume)

设置背景音乐的音量大小

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

setBGMPlayoutVolume

setBGMPlayoutVolume

void setBGMPlayoutVolume (uint32_t volume)

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

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

setBGMPublishVolume

setBGMPublishVolume

void setBGMPublishVolume (uint32_t volume)

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

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

playAudioEffect

playAudioEffect

void playAudioEffect (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 (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

muteRemoteVideoStream

void muteRemoteVideoStream (const char* userId
 bool mute)

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

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

startSpeedTest

startSpeedTest

void startSpeedTest (uint32_t sdkAppId
 const char* userId
 const char* userSig)

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

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

startScreenCapture

startScreenCapture

void startScreenCapture (TXView rendView)

启动屏幕分享

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

setLocalVideoProcessCallback

setLocalVideoProcessCallback

int setLocalVideoProcessCallback (TRTCVideoPixelFormat pixelFormat
 TRTCVideoBufferType bufferType
 ITRTCVideoFrameCallback* callback)

设置第三方美颜的视频数据回调

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

getCameraDevicesList

getCameraDevicesList

获取摄像头设备列表

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

setCurrentCameraDevice

setCurrentCameraDevice

void setCurrentCameraDevice (const char* 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

void setCurrentMicDevice (const char* micId)

选定当前使用的麦克风

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

getCurrentMicDeviceVolume

getCurrentMicDeviceVolume

获取当前麦克风的设备音量

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

setCurrentMicDeviceVolume

setCurrentMicDeviceVolume

void setCurrentMicDeviceVolume (uint32_t 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

void setCurrentSpeakerDevice (const char* speakerId)

设置要使用的扬声器

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

getCurrentSpeakerVolume

getCurrentSpeakerVolume

获取当前扬声器的设备音量

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

setCurrentSpeakerVolume

setCurrentSpeakerVolume

void setCurrentSpeakerVolume (uint32_t volume)

设置当前扬声器的设备音量

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

getCurrentSpeakerDeviceMute

getCurrentSpeakerDeviceMute

获取系统当前扬声器设备是否静音

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

setCurrentSpeakerDeviceMute

setCurrentSpeakerDeviceMute

void setCurrentSpeakerDeviceMute (bool mute)

设置系统当前扬声器设备的静音状态

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

startCameraDeviceTest

startCameraDeviceTest

void startCameraDeviceTest (TXView renderView)

开始进行摄像头测试

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

startCameraDeviceTest

startCameraDeviceTest

void startCameraDeviceTest (ITRTCVideoRenderCallback* callback)

开始进行摄像头测试

stopCameraDeviceTest

stopCameraDeviceTest

停止进行摄像头测试

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

startMicDeviceTest

startMicDeviceTest

void startMicDeviceTest (uint32_t interval)

开始进行麦克风测试

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

stopMicDeviceTest

stopMicDeviceTest

开始进行麦克风测试

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

startSpeakerDeviceTest

startSpeakerDeviceTest

void startSpeakerDeviceTest (const char* testAudioFilePath)

开始进行扬声器测试

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

stopSpeakerDeviceTest

stopSpeakerDeviceTest

停止进行扬声器测试

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

selectScreenCaptureTarget

selectScreenCaptureTarget

void selectScreenCaptureTarget (const TRTCScreenCaptureSourceInfo& source
 const RECT& captureRect
 bool captureMouse = true
 bool highlightWindow = true)

开始应用内的屏幕分享(iOS)

@deprecated v8.6 版本开始不推荐使用,建议使用 startScreenCaptureInApp 接口替代之。

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

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

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

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

- 0人点赞 -

发表点评 (0条)

not found

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