Don't crash if no stream on callfeed
This commit is contained in:
parent
c0bc52cdf2
commit
8284d0da60
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ function getCallFeedState(callFeed: CallFeed | undefined): CallFeedState {
|
||||||
videoMuted: callFeed ? callFeed.isVideoMuted() : true,
|
videoMuted: callFeed ? callFeed.isVideoMuted() : true,
|
||||||
audioMuted: callFeed ? callFeed.isAudioMuted() : true,
|
audioMuted: callFeed ? callFeed.isAudioMuted() : true,
|
||||||
localVolume: callFeed ? callFeed.getLocalVolume() : 0,
|
localVolume: callFeed ? callFeed.getLocalVolume() : 0,
|
||||||
hasAudio: callFeed ? callFeed.stream.getAudioTracks().length >= 1 : false,
|
hasAudio:
|
||||||
|
callFeed && callFeed.stream
|
||||||
|
? callFeed.stream.getAudioTracks().length >= 1
|
||||||
|
: false,
|
||||||
disposed: callFeed ? callFeed.disposed : undefined,
|
disposed: callFeed ? callFeed.disposed : undefined,
|
||||||
stream: callFeed ? callFeed.stream : undefined,
|
stream: callFeed ? callFeed.stream : undefined,
|
||||||
purpose: callFeed ? callFeed.purpose : undefined,
|
purpose: callFeed ? callFeed.purpose : undefined,
|
||||||
|
|
Loading…
Reference in a new issue