I want to open local mp4 movies in a webpage and play it just there.
No uploads to anywhere, nothing else.
I use my own buttons with below workaround which works with Safari 7.1.3 just fine.
<label for="fileToOpen">
<button type="file" id="loadMedia" class="loadMediabutton button">Load Movie</button>
</label>
<input type="File" name="loadMedia" id="fileToOpen" style="display:none">
Now my question, if someone can help to proceed:
- How to retrieve the movie's local url from the
<input>
tag ? - How to pass the url to the
<video>
tagsrc
attribute ? - How to avoid sandboxing problems ?