File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
= 金山云直播推流Android SDK使用说明
2
2
:numbered:
3
- :toc: left
3
+ // :toc: left
4
4
:icons: font
5
5
:source-highlighter: pygments
6
6
@@ -165,12 +165,12 @@ mStreamer.setTargetResolution(480, 0);
165
165
mStreamer.setPreviewFps(15);
166
166
// 设置推流帧率,当预览帧率大于推流帧率时,编码模块会自动丢帧以适应设定的推流帧率
167
167
mStreamer.setTargetFps(15);
168
- // 设置视频码率,分别为初始平均码率、最高平均码率、最低平均码率,单位为bps
169
- mStreamer.setVideoBitrate (600 * 1000 , 800 * 1000 , 400 * 1000 );
168
+ // 设置视频码率,分别为初始平均码率、最高平均码率、最低平均码率,单位为kbps,另有setVideoBitrate接口, 单位为bps
169
+ mStreamer.setVideoKBitrate (600, 800, 400);
170
170
// 设置音频采样率
171
171
mStreamer.setAudioSampleRate(44100);
172
- // 设置音频码率,单位为bps
173
- mStreamer.setAudioBitrate (48 * 1000 );
172
+ // 设置音频码率,单位为kbps,另有setAudioBitrate接口, 单位为bps
173
+ mStreamer.setAudioKBitrate (48);
174
174
/**
175
175
* 设置编码模式(软编、硬编):
176
176
* StreamerConstants.ENCODE_METHOD_SOFTWARE
You can’t perform that action at this time.
0 commit comments