chore(*): upgrade dependencies (StreamPack 2.6.0)
This commit is contained in:
@@ -2,9 +2,20 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<!-- For play store -->
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
android:required="true" />
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera.autofocus"
|
||||
android:required="false" />
|
||||
|
||||
<!-- Required permissions -->
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<!-- Use internally. Not use with camera but it avoid a warning -->
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
||||
@@ -24,7 +24,6 @@ import io.github.thibaultbee.streampack.listeners.OnConnectionListener
|
||||
import io.github.thibaultbee.streampack.listeners.OnErrorListener
|
||||
import io.github.thibaultbee.streampack.streamers.StreamerLifeCycleObserver
|
||||
import io.github.thibaultbee.streampack.streamers.helpers.CameraStreamerConfigurationHelper
|
||||
import io.github.thibaultbee.streampack.utils.TAG
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
@@ -125,8 +124,10 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
streamer.stopStream()
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
|
||||
lifecycleScope.launch {
|
||||
streamer.stopStream()
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -147,6 +148,7 @@ class MainActivity : AppCompatActivity() {
|
||||
binding.preview.streamer = streamer // Bind the streamer to the preview
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
private fun configureStreamer() {
|
||||
/**
|
||||
* To check the parameters supported by the device, you can check parameter against:
|
||||
@@ -185,4 +187,8 @@ class MainActivity : AppCompatActivity() {
|
||||
private fun toast(message: String) {
|
||||
runOnUiThread { applicationContext.toast(message) }
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MainActivity"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user