Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

iOS 9 - Can't play video files from device file system, in html 5 video player

$
0
0

@snstarosciak wrote:

Hey there,

Has anyone else had the issue where in iOS 9 when you try to play a video from a file that has been downloaded to the device, it gives you no error and does nothing? Even if the file does exist?

I'm using HTML 5 video like this:

<video controls="controls" preload="metadata" webkit-playsinline="webkit-playsinline" > <source ng-src="{{resourceURL | trustAsResourceUrl}}" type="video/mp4"/> </video>

I know resourceURL exists and that it is a safe URL after it goes through my trustAsResourceUrl filter, but despite my best efforts, the video will not play. It has no problem in Android, but when I test is on both of iPhone 6s Plus & iOS 9 emulator.

I've even tried linking directly to the video file in my code with both the file:// and cdvfile:// versions and the video just won't play. Does anyone have any idea why this would be happening?

I can play the video from an external source or even from my app's www folder, but when it comes to trying to access it using the file:// or cdvfile:// protocol, it doesn't seem to like it :frowning:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>