fix(app): remove useless startStream call

This commit is contained in:
ThibaultBee
2022-11-12 15:39:51 +01:00
parent 544b648c91
commit ea2b8056cb

View File

@@ -109,17 +109,16 @@ class MainActivity : AppCompatActivity() {
* with coroutines. * with coroutines.
*/ */
lifecycleScope.launch { lifecycleScope.launch {
/**
* For SRT, use srt://my.server.url:9998?streamid=myStreamId&passphrase=myPassphrase
*/
try { try {
/** /**
* Always lock the device orientation during a live streaming to avoid * Always lock the device orientation during a live streaming to avoid
* to recreate the Activity. * to recreate the Activity.
*/ */
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED
streamer.startStream("rtmp://192.168.1.12/app/streamKey") /**
//streamer.startStream("rtmp://my.server.url:1234/app/streamKey") * For SRT, use srt://my.server.url:9998?streamid=myStreamId&passphrase=myPassphrase
*/
streamer.startStream("rtmp://my.server.url:1234/app/streamKey")
} catch (e: Exception) { } catch (e: Exception) {
binding.liveButton.isChecked = false binding.liveButton.isChecked = false
Log.e(TAG, "Failed to connect", e) Log.e(TAG, "Failed to connect", e)