Skip to content

Commit af00ca9

Browse files
committed
Update baseline profiles
1 parent c0393d4 commit af00ca9

File tree

5 files changed

+2297
-374
lines changed

5 files changed

+2297
-374
lines changed

app/src/main/kotlin/io/getstream/webrtc/sample/compose/MainActivity.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import androidx.compose.runtime.mutableStateOf
3030
import androidx.compose.runtime.remember
3131
import androidx.compose.runtime.setValue
3232
import androidx.compose.ui.Modifier
33+
import io.getstream.webrtc.sample.compose.ui.screens.stage.StageScreen
3334
import io.getstream.webrtc.sample.compose.ui.screens.video.VideoCallScreen
3435
import io.getstream.webrtc.sample.compose.ui.theme.WebrtcSampleComposeTheme
3536
import io.getstream.webrtc.sample.compose.webrtc.SignalingClient
@@ -64,7 +65,11 @@ class MainActivity : ComponentActivity() {
6465
var onCallScreen by remember { mutableStateOf(BuildConfig.BUILD_TYPE == "benchmark") }
6566
val state by sessionManager.signalingClient.sessionStateFlow.collectAsState()
6667

67-
VideoCallScreen()
68+
if (!onCallScreen) {
69+
StageScreen(state = state) { onCallScreen = true }
70+
} else {
71+
VideoCallScreen()
72+
}
6873
}
6974
}
7075
}

0 commit comments

Comments
 (0)