Html5Video icon indicating copy to clipboard operation
Html5Video copied to clipboard

Does it work with downloaded Videos?

Open kosmonowt opened this issue 10 years ago • 1 comments

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?

kosmonowt avatar Jul 01 '15 12:07 kosmonowt

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.

odbol avatar Jul 01 '15 18:07 odbol