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/**']);
});

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 29-Jan-2020

32 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements