Skip to content

Commit 9231a1b

Browse files
committed
revert app example
1 parent 7e23d24 commit 9231a1b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import com.pedro.library.base.StreamBase
3838
import com.pedro.library.base.recording.RecordController
3939
import com.pedro.library.generic.GenericStream
4040
import com.pedro.library.util.BitrateAdapter
41-
import com.pedro.library.whip.WhipStream
4241
import com.pedro.streamer.R
4342
import com.pedro.streamer.utils.PathUtils
4443
import com.pedro.streamer.utils.toast
@@ -78,7 +77,7 @@ class CameraFragment: Fragment(), ConnectChecker {
7877
}
7978

8079
val genericStream: StreamBase by lazy {
81-
WhipStream(requireContext(), this).apply {
80+
GenericStream(requireContext(), this).apply {
8281
getGlInterface().autoHandleOrientation = true
8382
}
8483
}
@@ -89,7 +88,7 @@ class CameraFragment: Fragment(), ConnectChecker {
8988
val height = 480
9089
val vBitrate = 1200 * 1000
9190
private var rotation = 0
92-
private val sampleRate = 48000
91+
private val sampleRate = 32000
9392
private val isStereo = true
9493
private val aBitrate = 128 * 1000
9594
private var recordPath = ""

0 commit comments

Comments
 (0)