Skip to content

Commit 5428fcc

Browse files
committed
Merge branch 'develop'
2 parents 06aaf50 + 06b0ce5 commit 5428fcc

File tree

11 files changed

+32
-21
lines changed

11 files changed

+32
-21
lines changed

docusaurus/docs/Android/07-playground/01-demo.mdx renamed to docusaurus/docs/Android/07-playground/01-demo-credentials.mdx

File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Stream API Key
3+
description: How to get your Stream API Key
4+
---
5+
6+
The Stream API Key is a critical credential that empowers you to construct your own Chat/Video features for your services. To obtain the Stream API Key, you can follow the steps outlined below:
7+
8+
1. Go to the **[Stream login page](https://getstream.io/try-for-free)**.
9+
10+
2. If you have a GitHub account, **simply click the "Continue with GitHub" button**, and you'll be able to complete the registration in just a matter of seconds. This process takes around 30 seconds and doesn't require you to complete any forms.
11+
12+
![Registration](../assets/stream-registration.png)
13+
14+
3. **Go to the [Dashboard](https://dashboard.getstream.io) and click the Create App** button like the below.
15+
16+
4. Fill in the blanks like the below and click the **Create App** button.
17+
18+
![Create New App](../assets/dashboard-create-new-app.png)
19+
20+
5. You will find the **Key** displayed as shown in the image below; make sure to take note of it for future reference.
21+
22+
![API Key](../assets/dashboard-api-key.png)
23+
24+
Your Stream account setup is completed! Now, build your own video calling, audio room, and livestream application 🚀
14.4 KB
Loading
51 KB
Loading
7.07 KB
Loading

dogfooding/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ android {
9494
buildConfigField("Boolean", "BENCHMARK", "false")
9595
}
9696
getByName("release") {
97-
isMinifyEnabled = false
97+
isMinifyEnabled = true
9898
proguardFiles(
9999
getDefaultProguardFile("proguard-android-optimize.txt"),
100100
"proguard-rules.pro"
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
## Stream Video Android Core Proguard Rules
22

3+
# Wire protocol buffer model classes
34
-keep class stream.video.sfu.** { *; }
5+
46
-keep class com.squareup.moshi.JsonReader
57
-keep class com.squareup.moshi.JsonAdapter
6-
-keep class kotlin.reflect.jvm.internal.* { *; }
8+
-keep class kotlin.reflect.jvm.internal.* { *; }
9+
10+
## Moshi model classes
11+
-keep class org.openapitools.client.** { *; }

stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/MediaManager.kt

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ import io.getstream.video.android.core.utils.mapState
3333
import kotlinx.coroutines.CoroutineScope
3434
import kotlinx.coroutines.flow.MutableStateFlow
3535
import kotlinx.coroutines.flow.StateFlow
36-
import kotlinx.coroutines.launch
3736
import kotlinx.coroutines.runBlocking
38-
import org.openapitools.client.models.AudioSettings
3937
import org.openapitools.client.models.VideoSettings
4038
import org.webrtc.Camera2Capturer
4139
import org.webrtc.Camera2Enumerator
@@ -81,7 +79,7 @@ class SpeakerManager(
8179

8280
val devices: StateFlow<List<StreamAudioDevice>> = microphoneManager.devices
8381

84-
private val _speakerPhoneEnabled = MutableStateFlow(false)
82+
private val _speakerPhoneEnabled = MutableStateFlow(true)
8583
val speakerPhoneEnabled: StateFlow<Boolean> = _speakerPhoneEnabled
8684

8785
internal var selectedBeforeSpeaker: StreamAudioDevice? = null
@@ -620,22 +618,6 @@ class MediaManagerImpl(
620618
internal val microphone = MicrophoneManager(this, preferSpeakerphone = true)
621619
internal val speaker = SpeakerManager(this, microphone)
622620

623-
init {
624-
// listen to audio configuration changes
625-
scope.launch {
626-
call.state.settings.collect { settingsResponse ->
627-
settingsResponse?.let {
628-
// The default is Speaker - so we only switch if Earpiece is set in Settings
629-
if (it.audio.defaultDevice == AudioSettings.DefaultDevice.Earpiece &&
630-
!speaker.speakerPhoneEnabled.value
631-
) {
632-
speaker.setSpeakerPhone(false)
633-
}
634-
}
635-
}
636-
}
637-
}
638-
639621
fun cleanup() {
640622
videoSource.dispose()
641623
videoTrack.dispose()
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)