From b9df039b0525baecdaf88a052aeefc5a939c8044 Mon Sep 17 00:00:00 2001 From: bustardcelly Date: Mon, 5 Nov 2018 15:31:14 +0100 Subject: [PATCH] changing order of ABR assignment due to SDK changes. --- .../tests/PublishABRTest/PublishABRTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/red5pro/org/testandroidproject/tests/PublishABRTest/PublishABRTest.java b/app/src/main/java/red5pro/org/testandroidproject/tests/PublishABRTest/PublishABRTest.java index e23fe21..b60724a 100644 --- a/app/src/main/java/red5pro/org/testandroidproject/tests/PublishABRTest/PublishABRTest.java +++ b/app/src/main/java/red5pro/org/testandroidproject/tests/PublishABRTest/PublishABRTest.java @@ -61,9 +61,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa camera.setOrientation(camOrientation); } - R5AdaptiveBitrateController adaptor = new R5AdaptiveBitrateController(); - adaptor.AttachStream(publish); - if(TestContent.GetPropertyBool("audio_on")) { //attach a microphone R5Microphone mic = new R5Microphone(); @@ -79,6 +76,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa preview.showDebugView(TestContent.GetPropertyBool("debug_view")); + R5AdaptiveBitrateController adaptor = new R5AdaptiveBitrateController(); + adaptor.AttachStream(publish); + publish.publish(TestContent.GetPropertyString("stream1"), R5Stream.RecordType.Live); if(TestContent.GetPropertyBool("video_on"))