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

Feature request: add Video (mp4) instructions into the doc #215

Open
badpenguin opened this issue Jun 26, 2017 · 4 comments
Open

Feature request: add Video (mp4) instructions into the doc #215

badpenguin opened this issue Jun 26, 2017 · 4 comments

Comments

@badpenguin
Copy link

It would be nice to have support for video tag and his src attribute for small (less then 10MB) mp4 videos.

@badpenguin
Copy link
Author

I did some preliminary tests and i got those 2 problems:

  1. this console log error: Refused to load the image 'android-webview-video-poster:default_video_poster/401735702592099287' because it violates the following Content Security Policy directive
  2. got the mp4 cached but the video tag using cdvfile:// url is not working

@badpenguin
Copy link
Author

About point 1 i tried adding allow-intent or allow origin in config.xml and didn't worked.

About point 2 maybe cvdfile have to be converted to another url as in the example on https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/ ?

@badpenguin
Copy link
Author

I tracked down the problem to the file transfer plugin only downloading a small part of the movie. Maybe there is a problem between it and the server? It seems unable to download the whole mp4 as a single file.
I tried to disable on the server the range requests but i had no luck. Any idea?

@badpenguin
Copy link
Author

badpenguin commented Jun 26, 2017

Ok problem 1 is related to a vimeo iframe i used, so its unrelated.
Ok problem 2 was lighttpd configuration on the server and the android emulator not working with the video tag.

Imgcache.js works out of the box with mp4 and Android 7 at least using the src attribute directly with the video tag.

So please add to the doc :)

@badpenguin badpenguin changed the title Feature request: is it possible to support mp4 video? Feature request: add Video (mp4) instructions into the doc Jun 26, 2017
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

1 participant