You need to sign in to do that
Don't have an account?
ManishKSingh
how to use Html5 video tag in lightning component.
Can anyone tell me, how i use html5 'video' tag in my custom lightning component to play video file ?
Any help will be greatly appreciated.
Any help will be greatly appreciated.
its very easy
first upload your video file into static resource and select Cache Control = Public
in lightning component use this tag
for test it download sample video from https://vimeo.com/92403651 (https://vimeo.com/92403651)
upload video as static resource
give file name videoFile (or any you want) after upload it use these tag in your lightning component
i hop it helps you
Please Mark it best answer if it helps you so it make proper solution for other :)
All Answers
its very easy
first upload your video file into static resource and select Cache Control = Public
in lightning component use this tag
for test it download sample video from https://vimeo.com/92403651 (https://vimeo.com/92403651)
upload video as static resource
give file name videoFile (or any you want) after upload it use these tag in your lightning component
i hop it helps you
Please Mark it best answer if it helps you so it make proper solution for other :)
I am trying to use the iPhone camera and take a snap from aura component version 39 since the video tag not supported in the above 39 version.
Am able to stream the camera in the video tag, but the video always starts in full screen.
<video id="video" autoplay playsinline >Browser dont support Videos.</video>
Even though, I have added playsinline attribute in the video element. This tag works from desktop browsers, android phone camera in inline mode video streaming from camera. But, iPhone always launches in the full-screen mode and not able to use it as friendly.
Thanks,
Manoj T