diff --git a/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt b/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt index d7ed34223..a8ead22f3 100644 --- a/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt +++ b/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt @@ -34,7 +34,7 @@ import com.pedro.encoder.input.sources.video.Camera1Source import com.pedro.encoder.input.sources.video.Camera2Source import com.pedro.extrasources.CameraXSource import com.pedro.library.base.recording.RecordController -import com.pedro.library.rtmp.RtmpStream +import com.pedro.library.generic.GenericStream import com.pedro.library.util.BitrateAdapter import com.pedro.streamer.R import com.pedro.streamer.utils.PathUtils @@ -74,8 +74,8 @@ class CameraFragment: Fragment(), ConnectChecker { fun getInstance(): CameraFragment = CameraFragment() } - val genericStream: RtmpStream by lazy { - RtmpStream(requireContext(), this).apply { + val genericStream: GenericStream by lazy { + GenericStream(requireContext(), this).apply { getGlInterface().autoHandleOrientation = true getStreamClient().setBitrateExponentialFactor(0.5f) }