I'm playing a video in ReactPlayer that generates an HTML5 video in a <video>
tag. It's not working on mobile (tested on Safari, Chrome, and Firefox on iPhone 8 iOS 13.5.1)
I saw this question which let me know to disable autoplay
and add playsinline
for mobile, but it's still not working for me. The file I'm pulling, if it's relevant, is hosted on Google Cloud Storage
<div id="ReactPlayer" style="margin: auto; border-radius: 10px; min-height: 360px; min-width: 640px; display: block; width: 80%; height: 80%;">
<video src="link_to_my_video" preload="auto" controls="" playsinline="" webkit-playsinline="" x5-playsinline="" style="width: 100%; height: 100%;">
</video>
</div>
Does anyone know how to make it play on mobile? Thanks
EDIT
If helpful my links look like
"https://firebasestorage.googleapis.com/v0/b/my-mvp.appspot.com/o/videos%sub-folder?alt=media&token=my_token"
and the video it's pulling in is a .webm
file