I am trying for 3 days to get a video playback for cordova-ios 5.1.1 on Cordova 9 with Framework 7 to work.
What is this app supposed do in short?
A video gets download to the device storage and should be playable from that device as an offline video player.
There were several problems I had to sort out first:
- Stuck at Cordova 9 due to ’ cordova-plugin-file-transfer ’ which is not yet compatible with Cordova 10
- Unable to go with Cordova 10 yet, because suggested ways to download huge files on Cordova 10 gets the memory exhausted on the device, as the data is loaded to memory completly first
- using cdvfile:// schema to open a local video for gives me a timeout, the video does not start
- using a local server plugin did not work for me either
I really tried a lot of configurations and code to get this to work and spent a lot of time at git trying to figure out what I might be missing.
These are the plugins I tried for a working concept of an offline video player:
This is my content security policy:
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' cdvfile: data: gap: content: blob:">
The documentation on this on the web is a bit confusing mixing old stuff that apperently does not work anymore.
Please keep in mind I am not asking you for working code, but a concept that does still works and you did successfully use to play huge video files from the device storage using an HTML5-video tag on Cordova 9 ios 5.1.1.
…but some helping codelines are still appreciated of course
Thank you for telling me what does definately work and what’s not anymore.
I know this is not a completly Framework7 topic, but I am really grateful about any thoughts on this, because I am stuck.