Behavior not emiting initial value

This commit is contained in:
Valere
2026-03-13 13:20:26 +01:00
parent 83b343c413
commit d501cb9aa1

View File

@@ -395,7 +395,7 @@ class ControlledAudioOutput implements MediaDevice<
public readonly selected$ = this.scope.behavior(
combineLatest(
[this.available$, this.deviceSelection$],
[this.available$, this.deviceSelection$.pipe(startWith(undefined))],
(available, preferredId) => {
this.logger.debug(
`selecting device: Preferred:${preferredId}: platform ${this.platform}, intent:${this.initialIntent}: Available: ${Array.from(available.keys()).join(",")}`,