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



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/**']);
});
Updated on: 2020-01-29T06:28:30+05:30

79 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements