Open pathange-s opened 2 years ago
I'm not entirely sure if this has a direct connection to neutrailnojs. I found that the same problem occurs in the safari browser and represents a problem with video encoding.
1. Use handbrake to encode video with web optimization (screenshot).
Open Source
> Select your video. Web Optimized
checkbox.Save As
output location.Start
.2. After encoding, rename your encoded video from my-video.m4v
to my-video.mp4
.
3. Then you can use it with iframe:
<iframe src="./my-video.mp4" frameborder="0" allowfullscreen></iframe>
However (if you using this outside neutralinojs) some browsers might support this way of importing a video with <iframe>
but some will act towards the video as a file and attempt to download it (ref). The correct way to display a video is using the <video>
tag:
<video width="320" height="240" controls>
<source src="my-video.mp4" type="video/mp4">
</video>
Expected Behavior
Normal display / play of videos / images
Actual Behavior
When local videos are embedded in the .html file, the space is left blank and nothing is rendered
Steps to Reproduce the Problem
local-video.mp4
inresources/
For Video render :
Specifications