Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work with downloaded Videos? #38

Open
kosmonowt opened this issue Jul 1, 2015 · 1 comment
Open

Does it work with downloaded Videos? #38

kosmonowt opened this issue Jul 1, 2015 · 1 comment

Comments

@kosmonowt
Copy link

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
Copy link
Contributor

odbol commented Jul 1, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants