Last active
March 23, 2021 07:48
-
-
Save mfp22/64c66e74b3baea1a2a6ca6e15350d3a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
audioPlaying$ = this.store.select('audioPlaying'); | |
videoPlaying$ = this.store.select('videoPlaying'); | |
mediaPlaying$ = combineLatest([ | |
this.audioPlaying$, | |
this.videoPlaying$, | |
]).pipe( | |
map(([audioPlaying, videoPlaying]) => audioPlaying || videoPlaying, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment