What is the most efficient way of assigning all my HTML5 video sources as trusted without having to loop over all of them

JavascriptWeb DevelopmentFront End Scripts

Add some config to assign trust to your videos in HTML5:

app.config(function($sceDelegateProvider) {
   $sceDelegateProvider.resourceUrlWhitelist([

   // allowing same origin resource loads
   'self',

   // allowing loading from our assets domain
   'http://media.w3.org/**']);
});
raja
Published on 10-Apr-2018 11:13:13
Advertisements