jaeger25 / Html5Video

A Phonegap plugin that allows playback of local video files using html 5 video tags
Apache License 2.0
99 stars 65 forks source link

Does it work with downloaded Videos? #38

Open kosmonowt opened 9 years ago

kosmonowt commented 9 years ago

Hi,

I did not find any comment on this topic yet, so here again. I am using cordova 5 with API22, having a working Video (played it successfully on my Galaxy S4 mini).

What I am doing now is creating an app that either streams the videos (that part works fine) or downloads them to the local filesystem i.e. file://data/data/com.kosmoskosmos.myproject/9999.mp4, once you klick a specific button. Download etc. works finde. iOS doesn't have any problem with it (also playing from this source).

I understood that the plugin is requiring to have the files kept in $PROJECT_ROOT/platforms/android/res/raw

Does anyone have a hint how to solve this issue?

odbol commented 9 years ago

You can also load videos from your data directory, however you need to make them WORLD_READABLE. Check the copyResourceFileToDataDir() function in the Java file to see how to do that.