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"))