0
votes

I am using Ionic3 with videogular2.

App that i developed is a e-learning app that provides video tutorials to the users. It has feature to download videos so that user can use the app offline. I used fileTransfer plugin to download files and file plugin to provide paths and checking files.

Files are getting downloaded correctly without any problems, the problem is after download i am unable to access the file through my app's player(videogular2) while in android it works fine without any problems.

tried different solutions but nothing worked. 1.trial1 2.trial2 3.trial3.Thanks in advance

1
could you show your file transfer method code - Karnan Muthukumar
@KarnanMuthukumar here's the code this.fileTransfer.download(cur_down["url"],this.file.dataDirectory+cur_down["name"]).then( (entry) =>{ --my code--}, (err) =>{ } ); - NRaghavendra

1 Answers

-1
votes

Try once this.file.externalRootDirectory instead of this.file.dataDirectory

For storage related details please visit here

https://github.com/apache/cordova-plugin-file#where-to-store-files