HTML5, video playback from local storage

The problem is that...

Cross-platform app using either Cordivia or a corresponding webview from iOS and Android. This webview provides various tasks, in which one is to show a small range of videos to train the user using HTML5.

The problem is that this training is a preform, there is no access to the network. Thus, all films are included in the application.

So at this point I have a folder public_html/www

where all the pages are and a media folder where all the movies are.

All access to local media is "locked" on the phone, while everything works fine at the browser level. If I change any local media source src=http://..

then everything works fine, but when source src="localmedia.mp4"

- breaks everything.

I have searched and searched for a solution to this problem and I see that user interaction is mentioned for security ( Playing local (hard drive) video file using HTML5 video tag? ). I don't want the user to select the file, I just want to play the file defined on that particular page.

I have searched and searched without any perfect solution, but worked for me and got more desperate. I have all the movies where I got all the code working in HTML5 - everything looks good except for the tag video

on the phone.

If someone has an example of playing a local media file from the selected phone, choose share;)

+3


source to share





All Articles