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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -