MediaSession: handle null thumbnail
The exception thrown was causing the rest of `onInitPlay` to not run, e.g. "Tap to mute" not appearing, etc. Closes 1663
This commit is contained in:
parent
b12fe2192b
commit
4c804af02c
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ const VideoJsEvents = ({
|
|||
navigator.mediaSession.metadata = new window.MediaMetadata({
|
||||
title: claimValues.title,
|
||||
artist: channelTitle,
|
||||
artwork: [{ src: claimValues.thumbnail.url }],
|
||||
artwork: claimValues?.thumbnail?.url ? [{ src: claimValues.thumbnail.url }] : undefined,
|
||||
});
|
||||
|
||||
// $FlowFixMe
|
||||
|
|
Loading…
Reference in a new issue