Skip to content Skip to sidebar Skip to footer

How To Play An Html 5 Video In Cordova IOS App?

I want to play a little mp4 video in an html5 page in my CORDOVA App on iOS. Local mp4 can be played but I can play video stored on remote server. I dont know why. => Is there

Solution 1:

Try to add the media source in your Content-Security-Policy:

  <meta http-equiv="Content-Security-Policy" content="default-src *; media-src *;style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

You find more infos about Content-Security-Policy at http://content-security-policy.com

Be careful by using the Content-Security-Policy, it is not a good idea to allow everything.


Post a Comment for "How To Play An Html 5 Video In Cordova IOS App?"