From a1002eac6985d702260146eed71cee290f82cb86 Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Fri, 31 Jan 2020 16:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4rtmp=E6=8E=A8=E6=B5=81?= =?UTF-8?q?=E5=B8=A7=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整rtmp推流帧率 --- app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java b/app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java index 5f422ab..a83b2b8 100644 --- a/app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java +++ b/app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java @@ -71,7 +71,7 @@ public class LiveActivity extends BaseActivity implements CompoundButton.OnCheck int width = 640;//分辨率设置 int height = 480; int videoBitRate = 400;//kb/s - int videoFrameRate = 20;//fps + int videoFrameRate = 10;//fps VideoParam videoParam = new VideoParam(width, height, Integer.valueOf(Camera2Helper.CAMERA_ID_BACK), videoBitRate, videoFrameRate); int sampleRate = 44100;//采样率:Hz @@ -82,7 +82,6 @@ public class LiveActivity extends BaseActivity implements CompoundButton.OnCheck livePusher = new LivePusher(textureView, videoParam, audioParam, this); //TODO:暂时去掉音频推流 livePusher.setMute(true); - findViewById(R.id.btn_mute).setVisibility(View.INVISIBLE); } @Override