Playing local video file

Hi,

I need to play a local video file in my Android and iOS app. I download it using $cordovaFileTransfer.download
to cordova.file.dataDirectory.
On a button click event I check if the file exists with
$cordovaFile.checkFile(cordova.file.dataDirectory, 'offlinecontent/test.mp4')
which returns success. Then I set the video source using
$scope.clipSrc = $sce.trustAsResourceUrl(cordova.file.dataDirectory+ 'offlinecontent/test.mp4');
Displaying a Modal with the following content does not play the video file:
video ng-src="{{clipSrc}}" class="videomodal" controls="controls" autoplay></video>
If I use a remote url everything works perfectly.
Using a modal is not required, I just need to play a video file fullscreen and be able to close it once it is finished.
Any suggestions?

Hello,

Did you find your solution ? I’m having exactly the same problem. I tried a lot of things like testing links with cdvfile:// and file:// and modifying the config.xml but i still can’t get it to work. I’m mostly testing on iOS as it is our main target for this project.