Inline playback of live photos on mobile browsers

This commit is contained in:
Manav Rathi
2025-03-26 09:30:41 +05:30
parent 0247d3f458
commit 33ee599f3c

View File

@@ -1159,8 +1159,10 @@ const hlsVideoControlsHTML = () => `
</media-control-bar>
`;
// playsinline will play the video inline on mobile browsers (where the default
// is to open a full screen player).
const livePhotoVideoHTML = (videoURL: string) => `
<video loop muted oncontextmenu="return false;">
<video loop muted playsinline oncontextmenu="return false;">
<source src="${videoURL}" />
</video>
`;