fix(test): Make sure test doesn't error out.

This commit is contained in:
Jaya Allamsetty 2021-02-01 11:09:12 -05:00 committed by Jaya Allamsetty
parent 687106818a
commit c58657c759
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}