Commit 38bdaad
Added support for High fidelity (hi-fi) audio capture (#1564)
* Update to latest proto
* Send stereo = true in Audio track's TrackInfo if hifi is enabled in dashboard
* fix: microphone not getting enabled if we join with USAGE_MEDIA mode
* Provide a way to set the audio usage from app to call.speaker - it can be either VOICE_COMMUNICATION or MEDIA
* Provide a way on the debug option menu to switch between usage_media and usage_voice_communication
* Expose the audioDeviceModule from peerConnectionFactory
* Apply spotless
* Upgraded to webrtc version that supports switching audio usage mid call
* api dump
* Dont send stereo = true in trackInfo while publishing. This will be done when adding stereo capture to recording feature
* Added unit tests to test the audioUsage stateFlow of SpeakerManager
* refactor(demo-app): simplify onToggleAudioUsage by removing suspend modifier
* Fix: `setAudioUsage` of speakerManager does not work if called before any remote track has come in. Updated to webrtc which has the fix for this.
* Added : Enable Hifi audio recording
* Make setters for audio,video and screenshare tracks so that they dont come under breaking change
Make eglbase optional param while creating StreamPeerConnectionFctory so that it doesnt come under breaking change
* Fix: have a setter to peerConnectionFactory so that it can be accessed from uit tests
* Fix: unit test setup for StreamPeerConnectionFactoryTest
* Changed StreamPeerConnectionFactory to use a provider function for EglBase instead of a direct parameter. So that unit test can initiaze StreamPeerConnectionFactory without invoking EglBase.create() in the constructor
* Make adm private to StreamPeerConnectionFactory
* api dump
* Fix tests not running locally
* Fix: Publish unit tests need to mock the value of mediaManager.microphone.audioBitrateProfile
* 1. make setAudioBitrateProfile a suspend method so that it can fetch the call settings before setting the profile in the call
2. Lobby does not show the hifi toggle button if it is not enables in the call settings
* Making the methods internal which need not be public
* Making the methods internal which need not be public
---------
Co-authored-by: Aleksandar Apostolov <apostolov.alexandar@gmail.com>1 parent d37f7e3 commit 38bdaad
File tree
18 files changed
+655
-98
lines changed- demo-app/src/main/kotlin/io/getstream/video/android/ui/lobby
- stream-video-android-core
- api
- src
- main/kotlin/io/getstream/video/android/core
- call
- connection
- utils
- state
- utils
- test/kotlin/io/getstream/video/android/core
- call/connection
- stream-video-android-ui-compose
- api
- src/main/kotlin/io/getstream/video/android/compose/ui/components/call
- controls/actions
- lobby
18 files changed
+655
-98
lines changedLines changed: 44 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
226 | 235 | | |
227 | 236 | | |
228 | 237 | | |
| 238 | + | |
229 | 239 | | |
230 | 240 | | |
| 241 | + | |
231 | 242 | | |
232 | 243 | | |
233 | 244 | | |
| |||
238 | 249 | | |
239 | 250 | | |
240 | 251 | | |
| 252 | + | |
241 | 253 | | |
242 | 254 | | |
| 255 | + | |
243 | 256 | | |
244 | 257 | | |
245 | 258 | | |
| |||
248 | 261 | | |
249 | 262 | | |
250 | 263 | | |
| 264 | + | |
251 | 265 | | |
252 | 266 | | |
| 267 | + | |
253 | 268 | | |
254 | 269 | | |
255 | 270 | | |
| |||
262 | 277 | | |
263 | 278 | | |
264 | 279 | | |
| 280 | + | |
265 | 281 | | |
266 | 282 | | |
| 283 | + | |
267 | 284 | | |
268 | 285 | | |
269 | 286 | | |
| |||
290 | 307 | | |
291 | 308 | | |
292 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
293 | 318 | | |
294 | 319 | | |
295 | 320 | | |
| |||
317 | 342 | | |
318 | 343 | | |
319 | 344 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
326 | 358 | | |
327 | 359 | | |
328 | 360 | | |
| |||
343 | 375 | | |
344 | 376 | | |
345 | 377 | | |
| 378 | + | |
346 | 379 | | |
347 | 380 | | |
| 381 | + | |
348 | 382 | | |
349 | 383 | | |
350 | 384 | | |
| |||
360 | 394 | | |
361 | 395 | | |
362 | 396 | | |
| 397 | + | |
363 | 398 | | |
364 | 399 | | |
365 | 400 | | |
| |||
409 | 444 | | |
410 | 445 | | |
411 | 446 | | |
| 447 | + | |
412 | 448 | | |
413 | 449 | | |
414 | 450 | | |
| |||
576 | 612 | | |
577 | 613 | | |
578 | 614 | | |
| 615 | + | |
579 | 616 | | |
580 | 617 | | |
581 | 618 | | |
| |||
598 | 635 | | |
599 | 636 | | |
600 | 637 | | |
| 638 | + | |
601 | 639 | | |
602 | 640 | | |
603 | 641 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
173 | 199 | | |
174 | 200 | | |
175 | 201 | | |
| |||
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7702 | 7702 | | |
7703 | 7703 | | |
7704 | 7704 | | |
| 7705 | + | |
7705 | 7706 | | |
7706 | 7707 | | |
7707 | 7708 | | |
| |||
7715 | 7716 | | |
7716 | 7717 | | |
7717 | 7718 | | |
| 7719 | + | |
7718 | 7720 | | |
7719 | 7721 | | |
7720 | 7722 | | |
| |||
8300 | 8302 | | |
8301 | 8303 | | |
8302 | 8304 | | |
8303 | | - | |
8304 | | - | |
8305 | | - | |
| 8305 | + | |
| 8306 | + | |
8306 | 8307 | | |
8307 | 8308 | | |
8308 | 8309 | | |
| |||
8312 | 8313 | | |
8313 | 8314 | | |
8314 | 8315 | | |
8315 | | - | |
8316 | 8316 | | |
8317 | 8317 | | |
8318 | 8318 | | |
| |||
8452 | 8452 | | |
8453 | 8453 | | |
8454 | 8454 | | |
| 8455 | + | |
| 8456 | + | |
| 8457 | + | |
| 8458 | + | |
| 8459 | + | |
| 8460 | + | |
| 8461 | + | |
| 8462 | + | |
| 8463 | + | |
| 8464 | + | |
| 8465 | + | |
8455 | 8466 | | |
8456 | 8467 | | |
8457 | 8468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments