We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3db0ae commit 9d3a9a9Copy full SHA for 9d3a9a9
apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx
@@ -171,7 +171,7 @@ const ThumbnailImage = ({
171
const isPlaying = audioState === "playing"
172
const isLoading = audioState === "loading"
173
174
- const video = entry?.media?.find((media) => media.type === "video")
+ const video = mediaModel?.type === "video" ? mediaModel : null
175
const videoViewRef = useRef<null | VideoView>(null)
176
const videoPlayer = useVideoPlayer(video?.url ?? "")
177
const [showVideoNativeControlsForAndroid, setShowVideoNativeControlsForAndroid] = useState(false)
0 commit comments