vidfix
v2.0.1
Published
##### This library was created to troubleshoot video rendering on IOS and ANDROID devices where autoplay of <video> does not work.
Downloads
23
Readme
VidFix
This library was created to troubleshoot video rendering on IOS and ANDROID devices where autoplay of does not work.
Installation
npm i vidfix
or
yarn add vidfix
Atributes
- videoPath => insert the absolute path of your video file (mp4), do not use an external link, only files that are in your code/server
<VidFix videoPath="/videos/myvideo.mp4" />
Or you can use the ugly solution
<div dangerouslySetInnerHTML={{
__html: `
<video
loop
muted
autoplay
playsinline
>
<source src="${videoPath}" type="video/mp4"/>
</video>
`
}}/>