javascript - issue when embedding the both Youtube video url and Vimeo video url from json response in angular js -


var app = angular.module('speakout', []).config(         function($scedelegateprovider) {             $scedelegateprovider.resourceurlwhitelist([ 'self',                     '*://www.youtube.com/**' ]);             $scedelegateprovider.resourceurlwhitelist([ 'self',                     '*://player.vimeo.com/video/**']);          }); 

i new angular js. trying append both youtube url , vimeo video url @ same time in jsp page,but working vimeo , not working youtube when trying above code.it working individual videos not both.

anyone can help!

thanks!

this happening because second call

$scedelegateprovider.resourceurlwhitelist([ 'self',                     '*://player.vimeo.com/video/**']); 

override first settings.

try combine white list elements.

$scedelegateprovider.resourceurlwhitelist([ 'self','*://www.youtube.com/**', '*://player.vimeo.com/video/**']); 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -