- sampleProcess(int, Bitmap) - Method in interface com.tencent.ugc.TXVideoInfoReader.OnSampleProgrocess
-
- seek(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
6.2 直播时移跳转
直播流则会时移到该时间点。
- seek(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- seek(int) - Method in class com.tencent.rtmp.TXVodPlayer
-
跳转到视频流指定时间点.
- seek(float) - Method in class com.tencent.rtmp.TXVodPlayer
-
跳转到视频流指定时间点.
- seekBGM(int, int) - Method in class com.tencent.ugc.TXUGCRecord
-
定位BGM开始结束时间 [精简版不支持]
- sendCustomPCMData(byte[]) - Method in class com.tencent.rtmp.TXLivePusher
-
8.3 自定义音频采集,向 SDK 发送自己采集的音频 PCM 数据。
在自定义音频采集模式下,SDK 不再继续从麦克风采集声音,只保留编码和发送能力,您需要定时地发送自己采集的声音数据(PCM 格式)
要开启自定义音频采集,需要完成如下两个步骤:
- 开启自定义采集:给 TXLivePushConfig 中的 customModeType 属性增加 CUSTOM_MODE_AUDIO_CAPTURE 选项,代表开启自定义音频采集。
- 设定音频采样率:将 TXLivePushConfig 中的 audioSampleRate 属性设置为您期望的音频采样率,audioChannels 设置为期望的声道数,默认值:1(单声道)。
- sendCustomPCMData(byte[]) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- sendCustomVideoData(byte[], int, int, int) - Method in class com.tencent.rtmp.TXLivePusher
-
8.2 自定义视频采集,向 SDK 发送自己采集的 YUV 视频数据
在自定义视频采集模式下,SDK 不再继续从摄像头采集图像,只保留编码和发送能力,您需要定时地发送自己采集的视频数据。
要开启自定义视频采集,需要完成如下两个步骤:
- 开启自定义采集:给 TXLivePushConfig 中的 customModeType 属性增加 CUSTOM_MODE_VIDEO_CAPTURE 选项,代表开启自定义视频采集。
- 设定视频分辨率:将 TXLivePushConfig 中的 videoResolution 属性设置为您发送 YUV 数据的 width、height。
- sendCustomVideoData(byte[], int, int, int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- sendCustomVideoTexture(int, int, int) - Method in class com.tencent.rtmp.TXLivePusher
-
8.1 自定义视频采集,向 SDK 发送自己采集的 texture 视频数据。
在自定义视频采集模式下,SDK 不再继续从摄像头采集图像,只保留编码和发送能力,您需要定时地发送自己采集的视频数据。
要开启自定义视频采集,需要完成如下两个步骤:
- 开启自定义采集:给 TXLivePushConfig 中的 customModeType 属性增加 CUSTOM_MODE_VIDEO_CAPTURE 选项,代表开启自定义视频采集。
- 设定视频分辨率:将 TXLivePushConfig 中的 videoResolution 属性设置为您发送 YUV 数据的 width、height。
- sendCustomVideoTexture(int, int, int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- sendMessageEx(byte[]) - Method in class com.tencent.rtmp.TXLivePusher
-
9.1 发送 SEI 消息,播放端
TXLivePlayer
通过 onPlayEvent(EVT_PLAY_GET_MESSAGE) 来接收该消息。
本接口是将数据直接塞入视频数据头中,因此不能太大(几个字节比较合适),一般常用于塞入自定义时间戳等信息。
- sendMessageEx(byte[]) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setAnimatedPasterList(List<TXVideoEditConstants.TXAnimatedPaster>) - Method in class com.tencent.ugc.TXVideoEditer
-
设置动态贴纸列表 [精简版不支持]
- setAppID(String) - Static method in class com.tencent.rtmp.TXLiveBase
-
设置appID.
- setAppId(int) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
应用appId。必填
- setAppVersion(String) - Static method in class com.tencent.rtmp.TXLiveBase
-
- setAspectRatio(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置宽高比
- setAudioBitrate(int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置生成的音频码率
- setAudioChannels(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.10 设置声道数
接口说明:
- 默认值:1。
- 其他值:1、2、4。
- setAudioProcessListener(TXLivePusher.AudioCustomProcessListener) - Method in class com.tencent.rtmp.TXLivePusher
-
8.5 自定义音频处理回调
自定义音频采集和自定义音频处理不能同时开启,与自定义音频采集不同,自定义音频处理依然是由 SDK 采集麦克风的声音,
但 SDK 会通过 AudioCustomProcessListener 回调将数据回调给您的 App 进行二次加工。
如果要开启自定义音频处理,需要给 TXLivePushConfig 中的 customModeType 属性增加 CUSTOM_MODE_AUDIO_PREPROCESS 选项。
- setAudioProcessListener(TXLivePusher.AudioCustomProcessListener) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setAudioRawDataListener(TXLivePlayer.ITXAudioRawDataListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
5.3 设置音频数据回调
- setAudioRawDataListener(TXLivePlayer.ITXAudioRawDataListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setAudioRoute(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.6 设置声音播放模式
播放模式有两种:
- 听筒:声音将从听筒播出
- 扬声器:声音将从扬声器播出
- setAudioRoute(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setAudioSampleRate(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.9 设置声音采样率
接口说明:
- 默认值:48000。
- 其他值:8000、16000、32000、44100、48000。
- setAudioVolumeEvaluationListener(TXLivePlayer.ITXAudioVolumeEvaluationListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.8 设置音量大小回调接口
- setAudioVolumeEvaluationListener(TXLivePlayer.ITXAudioVolumeEvaluationListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setAutoAdjustBitrate(boolean) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.7 设置是否开启码率自适应
接口说明:
- 默认值:false。
- 开启后,SDK 会根据网络情况自动调节视频码率,调节范围在 (videoBitrateMin - videoBitrateMax)。
- setAutoAdjustCacheTime(boolean) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
- setAutoAdjustStrategy(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setAutoPlay(boolean) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置点播是否startPlay后自动开始播放。默认自动播放
- setAutoRotate(boolean) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
播放mp4文件时,若设为YES则根据文件中的旋转角度自动旋转。旋转角度可在PLAY_EVT_CHANGE_ROTATION事件中获得。默认YES
- setBeautyDepth(int, int, int, int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置美颜 和 美白 效果级别
- setBeautyFilter(int, int, int, int) - Method in class com.tencent.rtmp.TXLivePusher
-
4.1 设置美颜级别和美白级别
- setBeautyFilter(int, int, int, int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setBeautyFilter(int, int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置美颜,美白级别 [精简版不支持]
- setBeautyStyle(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置美颜类型
- setBGM(String) - Method in class com.tencent.ugc.TXUGCRecord
-
设置背景音乐文件 [精简版不支持]
- setBGM(String) - Method in class com.tencent.ugc.TXVideoEditer
-
设置背景音乐路径 [精简版不支持]
- setBGMAtVideoTime(long) - Method in class com.tencent.ugc.TXVideoEditer
-
设置背景音乐从视频的某个位置起开始添加 [精简版不支持]
- setBGMFadeInOutDuration(long, long) - Method in class com.tencent.ugc.TXVideoEditer
-
设置背景音乐淡入淡出 [精简版不支持]
- setBGMLoop(boolean) - Method in class com.tencent.ugc.TXVideoEditer
-
设置背景音乐是否重复 [精简版不支持]
- setBGMNofify(TXLivePusher.OnBGMNotify) - Method in class com.tencent.rtmp.TXLivePusher
-
6.2 设置背景音乐的回调接口
- setBGMNofify(TXLivePusher.OnBGMNotify) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setBGMNofify(TXRecordCommon.ITXBGMNotify) - Method in class com.tencent.ugc.TXUGCRecord
-
设置背景音乐播放回调接口.
- setBGMPitch(float) - Method in class com.tencent.rtmp.TXLivePusher
-
6.10 调整背景音乐的音调高低
- setBGMPitch(float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setBGMPosition(int) - Method in class com.tencent.rtmp.TXLivePusher
-
6.13 指定背景音乐的播放位置
- setBGMPosition(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setBGMStartTime(long, long) - Method in class com.tencent.ugc.TXVideoEditer
-
可以选取音乐的起始时间和结束时间 [精简版不支持]
- setBGMVolume(float) - Method in class com.tencent.rtmp.TXLivePusher
-
6.8 设置混音时背景音乐的音量大小,仅在播放背景音乐混音时使用
- setBGMVolume(float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setBGMVolume(float) - Method in class com.tencent.ugc.TXUGCRecord
-
设置背景音乐的音量大小.
- setBGMVolume(float) - Method in class com.tencent.ugc.TXVideoEditer
-
设置背景音乐声音大小 [精简版不支持]
- setBitrateIndex(int) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置当前正在播放的码率索引,无缝切换清晰度
清晰度切换可能需要等待一小段时间。腾讯云支持多码率HLS分片对齐,保证最佳体验。
- setByteBuffer(ByteBuffer) - Method in class com.tencent.ugc.TXAudioFrame
-
- setCacheFolderPath(String) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置点播缓存目录。点播MP4、HLS有效
- setCacheMp4ExtName(String) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
缓存mp4文件扩展名
- setCacheTime(float) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
1.2 设置播放器缓存时间
接口说明:
- 设置播放器缓存时间,单位为秒;默认值为5秒。
- 不建议设置过大,会影响秒开以及直播流播放的实时性。
- setChinLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.4 设置下巴拉伸或收缩(商用企业版有效,其它版本设置此参数无效)
- setChinLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setChinLevel(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置下巴长度 [仅支持商业版Pro]
- setConfig(TXLivePlayConfig) - Method in class com.tencent.rtmp.TXLivePlayer
-
1.2 设置 TXLivePlayer 播放配置项
- setConfig(TXLivePlayConfig) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setConfig(TXLivePushConfig) - Method in class com.tencent.rtmp.TXLivePusher
-
1.2 设置 TXLivePusher 推流配置项
- setConfig(TXLivePushConfig) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setConfig(TXVodPlayConfig) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置播放器配置信息.
- setConnectRetryCount(int) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
1.6 设置播放器重连次数
接口说明:
- 默认值:3;取值范围:1 - 10。
- 当 SDK 与服务器异常断开连接时, SDK 会尝试与服务器重连;您可通过此接口设置重连次数。
- setConnectRetryCount(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
4.1 设置推流端重连次数
当 SDK 与服务器异常断开连接时,SDK 会尝试与服务器重连。通过此函数设置 SDK 重连次数。
接口说明:
- 默认值:3。
- 取值范围:1 - 10
- setConnectRetryCount(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置播放器重连次数.
- setConnectRetryInterval(int) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
1.7 设置播放器重连间隔。
接口说明:
- 默认值:3,单位为秒;取值范围:3 - 30。
- 当 SDK 与服务器异常断开连接时, SDK 会尝试与服务器重连;您可通过此接口设置连续两次重连的时间间隔。
- setConnectRetryInterval(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
4.2 设置推流端重连间隔
当 SDK 与服务器异常断开连接时,SDK 会尝试与服务器重连。通过此函数来设置两次重连间隔时间。
接口说明:
- 默认值:3秒
- 取值范围:3 - 30 秒
- setConnectRetryInterval(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置播放器重连间隔.
- setConsoleEnabled(boolean) - Static method in class com.tencent.rtmp.TXLiveBase
-
setConsoleEnabled 启用或禁用控制台日志打印
enabled:指定是否启用
- setCustomAudioPreProcessLibrary(String, String) - Method in class com.tencent.rtmp.TXLivePushConfig
-
7.8 设置用户自定义的音频预处理库
- setCustomModeType(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
5.1 自定义采集和自定义处理开关
接口说明:
- 该字段需要使用与运算符进行级联操作(自定义采集和自定义处理不能同时开启):
开启自定义视频采集:_config.customModeType |= CUSTOM_MODE_VIDEO_CAPTURE;
开启自定义音频采集:_config.customModeType |= CUSTOM_MODE_AUDIO_CAPTURE。
- 其他值:详情见
TXLiveConstants
中 CUSTOM_MODE_XXX 。
- setCustomVideoPreProcessLibrary(String, String) - Method in class com.tencent.rtmp.TXLivePushConfig
-
7.7 设置用户自定义的视频预处理库
- setCustomVideoProcessListener(TXVideoEditer.TXVideoCustomProcessListener) - Method in class com.tencent.ugc.TXVideoEditer
-
自定义图像处理 [精简版不支持]
- setCutFromTime(long, long) - Method in class com.tencent.ugc.TXVideoEditer
-
设置视频剪切范围
- setDuration(long) - Method in class com.tencent.ugc.PartInfo
-
设置片段时长,单位毫秒
- setEnableAccurateSeek(boolean) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置是否精确seek,默认true
- setEnableMessage(boolean) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
- setEnableMetaData(boolean) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
2.3 开启 MetaData 数据回调
标准直播流都会在最开始的阶段有一个 MetaData 数据头,该数据头支持定制。
您可以通过 TXLivePushConfig 中的 setMetaData 接口设置一些自定义数据,再通过 ITXLivePlayListener 中的
onPlayEvent(TXLiteAVCode.EVT_PLAY_GET_METADATA) 消息接收到这些数据。
- setEnableZoom(boolean) - Method in class com.tencent.rtmp.TXLivePushConfig
-
1.3 设置是否允许双指手势放大预览画面
接口说明:
- 默认值:false。
- setExper(int) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
试看时长,单位:秒。可选
- setExposureCompensation(float) - Method in class com.tencent.rtmp.TXLivePusher
-
3.8 调整曝光比例
- setExposureCompensation(float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setEyeScaleLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.1 设置大眼级别(商用企业版有效,其它版本设置此参数无效)
- setEyeScaleLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setEyeScaleLevel(float) - Method in class com.tencent.ugc.TXUGCRecord
-
设置大眼效果 [仅支持商业版Pro]
- setFaceScaleLevel(float) - Method in class com.tencent.ugc.TXUGCRecord
-
设置瘦脸效果 [仅支持商业版Pro]
- setFaceShortLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.5 设置短脸级别(商用企业版有效,其它版本设置此参数无效)
- setFaceShortLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setFaceShortLevel(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置短脸 [仅支持商业版Pro]
- setFaceSlimLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.2 设置瘦脸级别(商用企业版有效,其它版本设置此参数无效)
- setFaceSlimLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setFaceVLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.3 设置 V 脸级别(商用企业版有效,其它版本设置此参数无效
- setFaceVLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setFaceVLevel(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置V脸 [仅支持商业版Pro]
- setFileId(String) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
文件id。必填
- setFilter(Bitmap) - Method in class com.tencent.rtmp.TXLivePusher
-
4.2 设置指定素材滤镜特效
- setFilter(Bitmap) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setFilter(Bitmap) - Method in class com.tencent.ugc.TXUGCRecord
-
setFilter 设置指定素材滤镜特效
- setFilter(Bitmap, float, Bitmap, float, float) - Method in class com.tencent.ugc.TXUGCRecord
-
setFilter 设置组合滤镜特效
- setFilter(Bitmap) - Method in class com.tencent.ugc.TXVideoEditer
-
设置滤镜 [精简版不支持]
- setFilter(Bitmap, float, Bitmap, float, float) - Method in class com.tencent.ugc.TXVideoEditer
-
setFilter 设置组合滤镜特效 [精简版不支持]
- setFocusPosition(float, float) - Method in class com.tencent.rtmp.TXLivePusher
-
8.8 在 Surface 模式下,设置摄像机的对焦位置
- setFocusPosition(float, float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setFocusPosition(float, float) - Method in class com.tencent.ugc.TXUGCRecord
-
设置手动聚焦
- setGreenScreenFile(String) - Method in class com.tencent.rtmp.TXLivePusher
-
5.7 设置绿幕背景视频(商用企业版有效,其它版本设置此参数无效)
此处的绿幕功能并非智能抠背,它需要被拍摄者的背后有一块绿色的幕布来辅助产生特效。
- setGreenScreenFile(String) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setGreenScreenFile(String, boolean) - Method in class com.tencent.ugc.TXUGCRecord
-
设置绿幕文件 [仅支持商业版Pro]
- setHardwareAcceleration(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setHeaders(Map<String, String>) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置自定义http headers
- setHomeOrientation(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
1.1 设置采集的视频的旋转角度
接口说明:
- 默认值:HOME_ORIENTATION_DOWN(竖屏推流)
- 常用的还有 HOME_ORIENTATION_RIGHT 和 HOME_ORIENTATION_LEFT,也就是横屏推流。
- 改变该字段的设置以后,本地摄像头的预览画面方向也会发生改变,请调用 TXLivePush 的 setRenderRotation 进行矫正。
- setHomeOrientation(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置home键方向
- setHttps(boolean) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
是否用https请求。默认false
- setLength(int) - Method in class com.tencent.ugc.TXAudioFrame
-
- setLibraryPath(String) - Static method in class com.tencent.rtmp.TXLiveBase
-
设置sdk的library加载路径.
- setLicence(Context, String, String) - Method in class com.tencent.rtmp.TXLiveBase
-
设置licence
- setLicence(Context, String, String) - Method in class com.tencent.ugc.TXUGCBase
-
- setListener(ITXLiveBaseListener) - Static method in class com.tencent.rtmp.TXLiveBase
-
设置日志回调listener
- setLogLevel(int) - Static method in class com.tencent.rtmp.TXLiveBase
-
设置SDK将
NULL级别 至 logLevel 级别以内的log存入文件.
- setLoop(boolean) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置是否循环播放
- setMaxAutoAdjustCacheTime(float) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
1.3 设置最大的缓存时间
接口说明:
- 默认值:5,单位为秒。
- 仅在启用自动调用缓存时间接口时,有效。
- setMaxBufferSize(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
最大预加载大小,单位 MB
- setMaxCacheItems(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置缓存文件个数
- setMaxVideoBitrate(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setMetaData(HashMap<String, String>) - Method in class com.tencent.rtmp.TXLivePushConfig
-
6.4 设置自定义 MetaData
- setMicVolume(float) - Method in class com.tencent.rtmp.TXLivePusher
-
6.9 设置混音时麦克风音量大小,仅在播放背景音乐混音时使用。
- setMicVolume(float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setMicVolume(float) - Method in class com.tencent.ugc.TXUGCRecord
-
设置麦克风的音量大小.
- setMinAutoAdjustCacheTime(float) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
1.4 设置最小的缓存时间
接口说明:
- 默认值:1,单位为秒。
- 仅在启用自动调用缓存时间接口时,有效。
- setMinVideoBitrate(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setMirror(boolean) - Method in class com.tencent.rtmp.TXLivePusher
-
3.3 设置视频镜像效果
由于前置摄像头采集的画面是取自手机的观察视角,如果将采集到的画面直接展示给观众,是完全没有问题的。
但如果将采集到的画面也直接显示给主播,则会跟主播照镜子时的体验完全相反,会让主播感觉到很奇怪。
因此,SDK 会默认开启本地摄像头预览画面的镜像效果,让主播直播时跟照镜子时保持一个体验效果。
setMirror 所影响的则是观众端看到的视频效果,如果想要保持观众端看到的效果跟主播端保持一致,需要开启镜像;
如果想要让观众端看到正常的未经处理过的画面(比如主播弹吉他的时候有类似需求),则可以关闭镜像。
- setMirror(boolean) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setMirror(boolean) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置镜像
- setMotionMute(boolean) - Method in class com.tencent.rtmp.TXLivePusher
-
5.9 设置动效静音(商用企业版有效,其它版本设置此参数无效)
有些挂件本身会有声音特效,通过此 API 可以关闭这些特效播放时所带的声音效果。
- setMotionMute(boolean) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setMotionMute(boolean) - Method in class com.tencent.ugc.TXUGCRecord
-
设置动效是否静音 [仅支持商业版和商业版Pro]
- setMotionTmpl(String) - Method in class com.tencent.rtmp.TXLivePusher
-
5.8 选择使用哪一款 AI 动效挂件(商用企业版有效,其它版本设置此参数无效)
- setMotionTmpl(String) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setMotionTmpl(String) - Method in class com.tencent.ugc.TXUGCRecord
-
setMotionTmpl 设置动效文件 [仅支持商业版和商业版Pro]
- setMute(boolean) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.4 设置是否静音播放
- setMute(boolean) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setMute(boolean) - Method in class com.tencent.rtmp.TXLivePusher
-
6.1 开启静音
开启静音后,SDK 并不会继续采集麦克风的声音,但是会用非常低(5kbps 左右)的码率推送伪静音数据,
这样做的目的是为了兼容 H5 上的 video 标签,并让录制出来的 mp4 文件有更好的兼容性。
- setMute(boolean) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setMute(boolean) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置是否静音播放.
- setMute(boolean) - Method in class com.tencent.ugc.TXUGCRecord
-
- setNoseSlimLevel(int) - Method in class com.tencent.rtmp.TXLivePusher
-
5.6 设置瘦鼻级别(商用企业版有效,其它版本设置此参数无效)
- setNoseSlimLevel(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setNoseSlimLevel(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置小鼻效果 [仅支持商业版Pro]
- setPartsManagerObserver(TXUGCPartsManager.IPartsManagerListener) - Method in class com.tencent.ugc.TXUGCPartsManager
-
- setPasterList(List<TXVideoEditConstants.TXPaster>) - Method in class com.tencent.ugc.TXVideoEditer
-
设置静态贴纸列表 [精简版不支持]
- setPath(String) - Method in class com.tencent.ugc.PartInfo
-
设置视频片段路径
- setPauseFlag(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setPauseImg(Bitmap) - Method in class com.tencent.rtmp.TXLivePushConfig
-
2.1 设置垫片推流的图片素材
接口说明:
- 图片最大尺寸不能超过1920 × 1920
- setPauseImg(int, int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
2.2 设置垫片的帧率与最长持续时间
接口说明:
- 默认值:最大持续时间为300秒,帧率为10。
- 调用 TXLivePusher 的 pausePush() 接口,会暂停摄像头采集并进入垫片推流状态,如果该状态一直保持,
可能会消耗主播过多的手机流量,本字段用于指定垫片推流的最大持续时间,超过后即断开与云服务器的连接。
- setPictureList(List<Bitmap>, int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置图片转视频参数 [精简版不支持]
- setPictureTransition(int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置图片转场类型 [精简版不支持]
- setPituLicencePath(String) - Static method in class com.tencent.rtmp.TXLiveBase
-
设置企业版动效Licence文件路径
- setPlayerType(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置播放器类型
- setPlayerView(TXCloudVideoView) - Method in class com.tencent.rtmp.TXLivePlayer
-
2.1 设置播放器的视频渲染 View
- setPlayerView(TXCloudVideoView) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setPlayerView(TXCloudVideoView) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置播放器的视频渲染View.
- setPlayerView(TextureRenderView) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置播放器视频渲染TextureRenderView, 推荐使用TXCloudVideoView
- setPlayListener(ITXLivePlayListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
1.3 设置推流回调接口
- setPlayListener(ITXLivePlayListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setProgressInterval(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置进度回调间隔
- setPushListener(ITXLivePushListener) - Method in class com.tencent.rtmp.TXLivePusher
-
1.4 设置推流回调接口
- setPushListener(ITXLivePushListener) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setRate(float) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置点播的播放速率。默认1.0
- setRecordSpeed(int) - Method in class com.tencent.ugc.TXUGCRecord
-
录制速度 [精简版不支持]
- setRenderMode(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.1 设置播放渲染模式
渲染模式有两种:
- 平铺模式:视频画面将会按照比例铺满屏幕,多余部分会被裁减掉,此模式下不会有黑边。
- 自适应模式:视频画面将等比例缩放,会居中显示,此模式可能会有黑边。
- setRenderMode(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setRenderMode(int) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置图像平铺模式.
- setRenderRotation(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.2 设置图像渲染角度
渲染角度有两种:
- 竖屏:播放是竖屏播放的时候使用
- 横屏:播放是横屏播放的时候使用
- setRenderRotation(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setRenderRotation(int) - Method in class com.tencent.rtmp.TXLivePusher
-
3.4 设置本地摄像头预览画面的旋转方向
该接口仅能够改变主播本地预览画面的方向,而不会改变观众端的画面效果。
如果希望改变观众端看到的视频画面的方向,比如原来是 540x960,希望变成 960x540,则可以通过设置 TXLivePushConfig 中的 homeOrientation 来实现。
- setRenderRotation(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setRenderRotation(int) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置图像渲染角度.
- setRenderRotation(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置渲染方向
- setRenderRotation(int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置画面渲染角度 [精简版不支持]
- setRepeatPlay(List<TXVideoEditConstants.TXRepeat>) - Method in class com.tencent.ugc.TXVideoEditer
-
设置多段重复片段 [精简版不支持]
- setReverb(int) - Method in class com.tencent.rtmp.TXLivePusher
-
6.11 设置混响效果
- setReverb(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setReverb(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置混响 [精简版不支持]
- setReverse(boolean) - Method in class com.tencent.ugc.TXVideoEditer
-
视频倒放处理 [精简版不支持]
- setSign(String) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
无防盗链不填。
普通防盗链签名:
sign = md5(KEY+appId+fileId+t+us)
带试看的防盗链签名:
sign = md5(KEY+appId+fileId+t+exper+us)
播放器API使用的防盗链参数(t, us, exper) 与CDN防盗链参数一致,只是sign计算方式不同
参考防盗链产品文档: https://cloud.tencent.com/document/product/266/11243
- setSmoothSwitchBitrate(boolean) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
平滑切换多码率HLS,默认false
- setSpecialRatio(float) - Method in class com.tencent.rtmp.TXLivePusher
-
4.3 设置滤镜浓度
在美女秀场等应用场景里,滤镜浓度的要求会比较高,以便更加突显主播的差异。
我们默认的滤镜浓度是0.5,如果您觉得滤镜效果不明显,可以使用下面的接口进行调节。
- setSpecialRatio(float) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setSpecialRatio(float) - Method in class com.tencent.ugc.TXUGCRecord
-
setSpecialRatio 设置滤镜效果程度
- setSpecialRatio(float) - Method in class com.tencent.ugc.TXVideoEditer
-
设置滤镜程度值 [精简版不支持]
- setSpeedList(List<TXVideoEditConstants.TXSpeed>) - Method in class com.tencent.ugc.TXVideoEditer
-
设置多段倍速播放 [精简版不支持]
- setSplitScreenList(List<TXVideoEditConstants.TXAbsoluteRect>, int, int) - Method in class com.tencent.ugc.TXVideoJoiner
-
设置画面合成列表
- setStartTime(float) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置播放开始时间.
- setSubtitleList(List<TXVideoEditConstants.TXSubtitle>) - Method in class com.tencent.ugc.TXVideoEditer
-
设置字幕列表 [精简版不支持]
- setSurface(Surface) - Method in class com.tencent.rtmp.TXLivePlayer
-
2.6 使用 Surface 模式用于本地渲染
- setSurface(Surface) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setSurface(Surface) - Method in class com.tencent.rtmp.TXLivePusher
-
8.6 指定 SDK 渲染所使用的 Surface(仅供微信 App 使用)。
该接口是为了支持微信小程序最新版本中的同层渲染能力而增加的,目的是让微信小程序通知设置渲染用的 Surface,
我们推荐您不要使用此接口,建议直接使用 TXCloudVideoView。
- setSurface(Surface) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setSurface(Surface) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置Surface,目前只支持硬解
播放器只能在Surface有效的情况下才能正常工作,使用此接口播放时,需要由用户手动调用 resume() 或 pause()
- setSurfaceSize(int, int) - Method in class com.tencent.rtmp.TXLivePlayer
-
2.7 设置渲染 Surface 的大小
- setSurfaceSize(int, int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setSurfaceSize(int, int) - Method in class com.tencent.rtmp.TXLivePusher
-
8.7 设置渲染 Surface 的大小(仅供微信 App 使用)。
该接口是为了支持微信小程序最新版本中的同层渲染能力而增加的,目的是让微信小程序通知设置渲染用的 Surface,
我们推荐您不要使用此接口,建议直接使用 TXCloudVideoView。
- setSurfaceSize(int, int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setTailWaterMark(Bitmap, TXVideoEditConstants.TXRect, int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置片尾水印 [精简版不支持]
- setThumbnail(TXVideoEditConstants.TXThumbnail) - Method in class com.tencent.ugc.TXVideoEditer
-
设置预处理输出的缩略图
- setThumbnailListener(TXVideoEditer.TXThumbnailListener) - Method in class com.tencent.ugc.TXVideoEditer
-
设置预处理输出缩略图回调
- setTimeout(String) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
加密链接超时时间戳,转换为16进制小写字符串,腾讯云 CDN 服务器会根据该时间判断该链接是否有效。可选
- setTimeout(int) - Method in class com.tencent.rtmp.TXVodPlayConfig
-
设置播放器连接超时时间.
- setToken(String) - Method in class com.tencent.rtmp.TXVodPlayer
-
加密HLS的token。设置此值后,播放器自动在URL中的文件名之前增加voddrm.token.
- setTouchFocus(boolean) - Method in class com.tencent.rtmp.TXLivePushConfig
-
1.2 设置是否开启手动对焦
接口说明:
- 默认值:true。
- 因为硬件的限制,API 14以上的版本以及后置摄像头才会支持。
- setTXVideoPreviewListener(TXVideoEditer.TXVideoPreviewListener) - Method in class com.tencent.ugc.TXVideoEditer
-
设置视频预览监听
- setTXVideoPreviewListener(TXVideoJoiner.TXVideoPreviewListener) - Method in class com.tencent.ugc.TXVideoJoiner
-
设置视频合成预览进度回调
- setUs(String) - Method in class com.tencent.rtmp.TXPlayerAuthBuilder
-
唯一标识请求,增加链接唯一性
- setVideoBitrate(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.4 设置视频编码码率
接口说明:
- 默认值:1200。
- 不开启码率自适应时,视频以此码率编码。
- setVideoBitrate(int) - Method in class com.tencent.ugc.TXUGCRecord
-
- setVideoBitrate(int) - Method in class com.tencent.ugc.TXVideoEditer
-
设置生成视频码率
- setVideoBlockThreshold(int) - Method in class com.tencent.rtmp.TXLivePlayConfig
-
- setVideoEncodeGop(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.3 设置视频编码 GOP
接口说明:
- 默认值:3,单位为秒。
- setVideoEncoderXMirror(boolean) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.14 设置观众端水平镜像
接口说明:
- 默认值:false
- setVideoFPS(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
3.2 设置视频帧率
接口说明:
- 默认值:20。
- setVideoGenerateListener(TXVideoEditer.TXVideoGenerateListener) - Method in class com.tencent.ugc.TXVideoEditer
-
设置编辑器生成视频监听
- setVideoJoinerListener(TXVideoJoiner.TXVideoJoinerListener) - Method in class com.tencent.ugc.TXVideoJoiner
-
设置合成回调
- setVideoPath(String) - Method in class com.tencent.ugc.TXVideoEditer
-
设置视频路径
- setVideoPathList(List<String>) - Method in class com.tencent.ugc.TXVideoJoiner
-
设置合成的视频列表
- setVideoProcessListener(TXLivePusher.VideoCustomProcessListener) - Method in class com.tencent.rtmp.TXLivePusher
-
8.4 自定义视频处理回调
自定义视频采集和自定义视频处理不能同时开启,与自定义视频采集不同,自定义视频处理依然是由 SDK 采集摄像头的画面,
但 SDK 会通过 VideoCustomProcessListener 回调将数据回调给您的 App 进行二次加工。
如果要开启自定义视频处理,需要给 TXLivePushConfig 中的 customModeType 属性增加 CUSTOM_MODE_VIDEO_PREPROCESS 选项。
- setVideoProcessListener(TXLivePusher.VideoCustomProcessListener) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setVideoProcessListener(TXUGCRecord.VideoCustomProcessListener) - Method in class com.tencent.ugc.TXUGCRecord
-
设置自定义图像处理回调 [精简版不支持]
- setVideoProcessListener(TXVideoEditer.TXVideoProcessListener) - Method in class com.tencent.ugc.TXVideoEditer
-
设置视频预处理回调
- setVideoQuality(int, boolean, boolean) - Method in class com.tencent.rtmp.TXLivePusher
-
3.1 设置视频编码质量
推荐设置:秀场直播 quality:HIGH_DEFINITION;adjustBitrate:NO;adjustResolution:NO。
参考文档:[设定清晰度](https://cloud.tencent.com/document/product/454/7879#step-4.3A-.E8.AE.BE.E5.AE.9A.E6.B8.85.E6.99.B0.E5.BA.A6)。
- setVideoQuality(int, boolean, boolean) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setVideoRawDataListener(TXLivePlayer.ITXVideoRawDataListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
5.2 设置软解码视频数据回调
- setVideoRawDataListener(TXLivePlayer.ITXVideoRawDataListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
4.1 设置录制回调接口
- setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener) - Method in class com.tencent.rtmp.TXLivePusher
-
7.1 设置录制回调接口
- setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener) - Method in class com.tencent.ugc.TXUGCRecord
-
设置录制回调接口
- setVideoRenderMode(int) - Method in class com.tencent.ugc.TXUGCRecord
-
渲染模式TXRecordCommon:RENDER_MODE_FULL_FILL_SCREEN / RENDER_MODE_ADJUST_RESOLUTION
- setVideoResolution(int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
- setVideoResolution(int) - Method in class com.tencent.ugc.TXUGCRecord
-
单独设置分辨率
- setVideoVolume(float) - Method in class com.tencent.ugc.TXVideoEditer
-
设置视频声音大小
- setVodListener(ITXVodPlayListener) - Method in class com.tencent.rtmp.TXVodPlayer
-
设置播放器的回调.
- setVoiceChangerType(int) - Method in class com.tencent.rtmp.TXLivePusher
-
6.12 设置变声类型
- setVoiceChangerType(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setVoiceChangerType(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置变声 [精简版不支持]
- setVolume(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.5 设置音量
- setVolume(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- setVTTUrlAndImageUrls(String, List<String>) - Method in class com.tencent.rtmp.TXImageSprite
-
设置雪碧图地址
- setWatermark(Bitmap, int, int) - Method in class com.tencent.rtmp.TXLivePushConfig
-
1.4 设置水印图片及水印图片位置
接口说明:
- 水印位置坐标系与系统保持一致。
- 设置为 null 关闭水印。
- setWatermark(Bitmap, float, float, float) - Method in class com.tencent.rtmp.TXLivePushConfig
-
1.5 设置水印图片及水印图片位置。
接口说明:
- 使用归一化坐标。
- 假设推流分辨率为:540 × 960,x,y,width 分别设置为:(0.1, 0.1, 0.1),那么水印的实际像素坐标为:(540 × 0.1, 960 × 0.1, 水印宽度*0.1,水印高度会被自动计算)。
- setWatermark(Bitmap, TXVideoEditConstants.TXRect) - Method in class com.tencent.ugc.TXUGCRecord
-
设置全局水印 [精简版不支持]
- setWaterMark(Bitmap, TXVideoEditConstants.TXRect) - Method in class com.tencent.ugc.TXVideoEditer
-
设置水印
- setZoom(int) - Method in class com.tencent.rtmp.TXLivePusher
-
3.7 调整摄像头的焦距
- setZoom(int) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- setZoom(int) - Method in class com.tencent.ugc.TXUGCRecord
-
设置焦距
- snapshot(TXLivePlayer.ITXSnapshotListener) - Method in class com.tencent.rtmp.TXLivePlayer
-
4.4 播放过程中本地截图
- snapshot(TXLivePlayer.ITXSnapshotListener) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- snapshot(TXLivePusher.ITXSnapshotListener) - Method in class com.tencent.rtmp.TXLivePusher
-
7.4 推流过程中本地截图
- snapshot(TXLivePusher.ITXSnapshotListener) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- snapshot(TXLivePlayer.ITXSnapshotListener) - Method in class com.tencent.rtmp.TXVodPlayer
-
获取当前视频帧图像
注意:由于获取当前帧图像是比较耗时的操作,所以截图会通过异步回调出来
- snapshot(TXRecordCommon.ITXSnapshotListener) - Method in class com.tencent.ugc.TXUGCRecord
-
截图
- SPEED_LEVEL_FAST - Static variable in class com.tencent.ugc.TXVideoEditConstants
-
- SPEED_LEVEL_FASTEST - Static variable in class com.tencent.ugc.TXVideoEditConstants
-
- SPEED_LEVEL_NORMAL - Static variable in class com.tencent.ugc.TXVideoEditConstants
-
- SPEED_LEVEL_SLOW - Static variable in class com.tencent.ugc.TXVideoEditConstants
-
- SPEED_LEVEL_SLOWEST - Static variable in class com.tencent.ugc.TXVideoEditConstants
-
变速速度
- speedLevel - Variable in class com.tencent.ugc.TXVideoEditConstants.TXSpeed
-
- splitJoinVideo(int, String) - Method in class com.tencent.ugc.TXVideoJoiner
-
合演
- START_RECORD_ERR_API_IS_LOWER_THAN_18 - Static variable in class com.tencent.ugc.TXRecordCommon
-
- START_RECORD_ERR_IS_IN_RECORDING - Static variable in class com.tencent.ugc.TXRecordCommon
-
- START_RECORD_ERR_LICENCE_VERIFICATION_FAILED - Static variable in class com.tencent.ugc.TXRecordCommon
-
- START_RECORD_ERR_NOT_INIT - Static variable in class com.tencent.ugc.TXRecordCommon
-
- START_RECORD_ERR_VIDEO_PATH_IS_EMPTY - Static variable in class com.tencent.ugc.TXRecordCommon
-
- START_RECORD_OK - Static variable in class com.tencent.ugc.TXRecordCommon
-
开始录制的返回错误码
- startCameraCustomPreview(TXRecordCommon.TXUGCCustomConfig, TXCloudVideoView) - Method in class com.tencent.ugc.TXUGCRecord
-
启动摄像头预览
- startCameraPreview(TXCloudVideoView) - Method in class com.tencent.rtmp.TXLivePusher
-
- startCameraPreview(TXCloudVideoView) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- startCameraSimplePreview(TXRecordCommon.TXUGCSimpleConfig, TXCloudVideoView) - Method in class com.tencent.ugc.TXUGCRecord
-
启动摄像头预览
- startEffect(int, long) - Method in class com.tencent.ugc.TXVideoEditer
-
设置滤镜特效开始时间 [精简版不支持]
- startPlay(String, int) - Method in class com.tencent.rtmp.TXLivePlayer
-
- startPlay(String, int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- startPlay(String) - Method in class com.tencent.rtmp.TXVodPlayer
-
启动播放.
- startPlay(TXPlayerAuthBuilder) - Method in class com.tencent.rtmp.TXVodPlayer
-
以fileid形式播放
- startPlay() - Method in class com.tencent.ugc.TXVideoJoiner
-
开启视频播放,从视频起始位置开始播放,(需要在setVideoPathList之后调用)
- startPlayFromTime(long, long) - Method in class com.tencent.ugc.TXVideoEditer
-
播放某一时间段的视频
- startPusher(String) - Method in class com.tencent.rtmp.TXLivePusher
-
2.3 启动 RTMP 推流
针对腾讯云的推流地址,会采用 QUIC 协议进行加速,配合改进后的 BBR2 带宽测算方案,可以最大限度的利用主播的上行带宽,降低直播卡顿率。
- startPusher(String) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- startRecord(int) - Method in class com.tencent.rtmp.TXLivePlayer
-
- startRecord(int) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- startRecord(String) - Method in class com.tencent.rtmp.TXLivePusher
-
7.2 开始录制短视频
- startRecord(String) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- startRecord() - Method in class com.tencent.ugc.TXUGCRecord
-
开始视频录制,SDK内部会自动生成视频路经和视频封面,在TXVideoRecordListener里面返回
- startRecord(String, String) - Method in class com.tencent.ugc.TXUGCRecord
-
开始视频录制
- startRecord(String, String, String) - Method in class com.tencent.ugc.TXUGCRecord
-
开始视频录制
- startScreenCapture() - Method in class com.tencent.rtmp.TXLivePusher
-
- startScreenCapture() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- startTime - Variable in class com.tencent.ugc.TXVideoEditConstants.TXAnimatedPaster
-
- startTime - Variable in class com.tencent.ugc.TXVideoEditConstants.TXPaster
-
- startTime - Variable in class com.tencent.ugc.TXVideoEditConstants.TXRepeat
-
- startTime - Variable in class com.tencent.ugc.TXVideoEditConstants.TXSpeed
-
- startTime - Variable in class com.tencent.ugc.TXVideoEditConstants.TXSubtitle
-
- stopBGM() - Method in class com.tencent.rtmp.TXLivePusher
-
6.4 停止播放背景音乐
- stopBGM() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- stopBGM() - Method in class com.tencent.ugc.TXUGCRecord
-
停止播放背景音乐.
- stopCameraPreview(boolean) - Method in class com.tencent.rtmp.TXLivePusher
-
2.2 停止摄像头预览。
- stopCameraPreview(boolean) - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- stopCameraPreview() - Method in class com.tencent.ugc.TXUGCRecord
-
停止摄像头预览
- stopEffect(int, long) - Method in class com.tencent.ugc.TXVideoEditer
-
设置滤镜特效结束时间 [精简版不支持]
- stopPlay(boolean) - Method in class com.tencent.rtmp.TXLivePlayer
-
2.3 停止播放
isNeedClearLastImg 提供是否清除最后一帧画面的逻辑:
- 推荐在正常停止播放时,进行清除
- 异常播放,如网络异常等,而您希望等待重连服务器,继续播放时,推荐保留
- stopPlay(boolean) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- stopPlay(boolean) - Method in class com.tencent.rtmp.TXVodPlayer
-
停止播放.
- stopPlay() - Method in class com.tencent.ugc.TXVideoEditer
-
停止播放(释放资源)
- stopPlay() - Method in class com.tencent.ugc.TXVideoJoiner
-
停止播放(释放资源)
- stopPusher() - Method in class com.tencent.rtmp.TXLivePusher
-
2.4 停止 RTMP 推流
- stopPusher() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
2.4 停止 RTMP 推流
- stopRecord() - Method in class com.tencent.rtmp.TXLivePlayer
-
4.3 停止视频录制
- stopRecord() - Method in class com.tencent.rtmp.TXLivePlayerImpl
-
- stopRecord() - Method in class com.tencent.rtmp.TXLivePusher
-
7.3 结束录制短视频,当停止推流后,如果视频还在录制中,SDK 内部会自动结束录制。
- stopRecord() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- stopRecord() - Method in class com.tencent.ugc.TXUGCRecord
-
停止视频录制
- stopScreenCapture() - Method in class com.tencent.rtmp.TXLivePusher
-
2.6 结束录屏推流
- stopScreenCapture() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- switchCamera() - Method in class com.tencent.rtmp.TXLivePusher
-
3.2 切换前后摄像头
- switchCamera() - Method in class com.tencent.rtmp.TXLivePusherImpl
-
- switchCamera(boolean) - Method in class com.tencent.ugc.TXUGCRecord
-
切换前后摄像头
- switchStream(String) - Method in class com.tencent.rtmp.TXLivePlayer
-
3.7 多清晰度切换
使用说明:
- 必须是腾讯云的直播地址。
- 必须是当前播放直播流的不同清晰度,切换到无关流地址可能会失败。
- switchStream(String) - Method in class com.tencent.rtmp.TXLivePlayerImpl
-