From cf144ea392b7645381843b727ec7b47684efbfcb Mon Sep 17 00:00:00 2001 From: Leo Ma Date: Fri, 16 Sep 2016 22:13:44 +0800 Subject: [PATCH] Supplement Signed-off-by: Leo Ma --- README.md | 3 +-- app/src/main/java/net/ossrs/yasea/SrsEncoder.java | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26fa570..2f68af8 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,7 @@ Test You may watch the live broadcasting at [srs.net](http://www.ossrs.net/players/srs_player.html). Remember to modify the URL by yourself. Have fun! -**NOTE** if you feel high latency, it might be the frame cache of the server or -player. So you need to open the player first and then publish to see the effect. +**NOTE** if you feel high latency, please check your bandwidth limits and player buffering. Other Branch ------------ diff --git a/app/src/main/java/net/ossrs/yasea/SrsEncoder.java b/app/src/main/java/net/ossrs/yasea/SrsEncoder.java index 0732262..2959f23 100644 --- a/app/src/main/java/net/ossrs/yasea/SrsEncoder.java +++ b/app/src/main/java/net/ossrs/yasea/SrsEncoder.java @@ -228,6 +228,8 @@ public class SrsEncoder { vOutHeight = height; vPortraitWidth = width; vPortraitHeight = height; + vLandscapeWidth = height; + vLandscapeHeight = width; } public void setLandscapeResolution(int width, int height) { @@ -235,6 +237,8 @@ public class SrsEncoder { vOutHeight = height; vLandscapeWidth = width; vLandscapeHeight = height; + vPortraitWidth = height; + vPortraitHeight = width; } public void setVideoHDMode() {