I am building an app to organaize, manage and play a family film collection of about 700 films with Laravel5 that should be capable to play the films in format MP4.
In my HTML code I have the following code:
<video width="100%" height="360" controls>
<source src="http://my-domain.com/films/xanadu.mp4" type="video/mp4">
</video>
However, I can't upload 700 films to a hosting space (not to mention the copyright problems). So I decided to store locally and play films from my hard drive. So, I have created a directory under public and add there a film, like this:
my-app
public
films
xanadu.mp4
and changed the code to
<video width="100%" height="360" controls>
<source src="" type="video/mp4">
</video>
Inspecting the element I get the right address:
http://family-film.test/films/xanadu.mp4
But I get the error:
No video with supported format and MIME type found.
So, I wonder if there is any error in my code or it is just technically ipossible to stream a video from the own hard drive using the HTML5 video tag
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Gcbo9U
via IFTTT
Aucun commentaire:
Enregistrer un commentaire