Skip to content

Commit a1002ea

Browse files
committed
调整rtmp推流帧率
调整rtmp推流帧率
1 parent 18c948a commit a1002ea

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private void initPusher() {
7171
int width = 640;//分辨率设置
7272
int height = 480;
7373
int videoBitRate = 400;//kb/s
74-
int videoFrameRate = 20;//fps
74+
int videoFrameRate = 10;//fps
7575
VideoParam videoParam = new VideoParam(width, height,
7676
Integer.valueOf(Camera2Helper.CAMERA_ID_BACK), videoBitRate, videoFrameRate);
7777
int sampleRate = 44100;//采样率:Hz
@@ -82,7 +82,6 @@ private void initPusher() {
8282
livePusher = new LivePusher(textureView, videoParam, audioParam, this);
8383
//TODO:暂时去掉音频推流
8484
livePusher.setMute(true);
85-
findViewById(R.id.btn_mute).setVisibility(View.INVISIBLE);
8685
}
8786

8887
@Override

0 commit comments

Comments
 (0)