fix(test): Make sure test doesn't error out.
This commit is contained in:
parent
687106818a
commit
c58657c759
|
@ -52,7 +52,7 @@ export function isLargeVideoReceived({ getState }: Object): boolean {
|
|||
*/
|
||||
export function isRemoteVideoReceived({ getState }: Object, id: String): boolean {
|
||||
const videoTrack = getTrackByMediaTypeAndParticipant(getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, id);
|
||||
const lastMediaEvent = videoTrack.lastMediaEvent;
|
||||
const lastMediaEvent = videoTrack?.lastMediaEvent;
|
||||
|
||||
return !videoTrack.muted && (lastMediaEvent === 'playing' || lastMediaEvent === 'canplaythrough');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue