Hy all, i new in angular world,
now i have a problem, i need to allow any URL fro my app.
I have this code in template:
<video id="example_video_1" class="video-js vjs-default-skin" controls
preload="none" width="100%" height="240"
poster="{{post.picture}}"
data-setup='{"example_option":true}'>
<source dynamic-url src="{{post.source}}" type='video/mp4' />
<source dynamic-url src="{{post.source}}" type='video/webm' />
<source dynamic-url src="{{post.source}}" type='video/ogg' />
I'm sorry; your browser doesn't support HTML5 video in WebM with VP8
or MP4 with H.264.
<!-- You can embed a Flash player here, to play your mp4 video in
older browsers -->
</video>
in this case post.source is
:=>
https://fbcdn-video-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/1038699_10202931983969896_170894113_n.mp4
my app conf is:
$sceDelegateProvider.resourceUrlWhitelist([
'self',
'https://scontent-b.xx.fbcdn.net/**',
'https://scontent-a.xx.fbcdn.net/**',
'http://www.youtube.com/**',
'https://www.youtube.com/**',
'http://www.facebook.com/v/**',
'https://fbcdn-video-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/1038699_10202931983969896_170894113_n.mp4'
]);
$sceDelegateProvider.resourceUrlBlacklist([
'http://myapp.example.com/clickThru**']);
but i receive this error message:
Error: [$interpolate:interr] Can't interpolate: {{post.source}} Error:
[$sce:insecurl] Blocked loading resource from url not allowed by
$sceDelegate policy. URL:
https://fbcdn-video-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/1038699_1020…fb1a328939&oe=53A23AF2&__gda__=1403178832_efe861e2d5958d79e769662326843eaa
<https://fbcdn-video-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/1038699_10202931983969896_170894113_n.mp4?oh=e8915f4541d3c1761ea2e3fb1a328939&oe=53A23AF2&__gda__=1403178832_efe861e2d5958d79e769662326843eaa>
why ?? help me please
thanks.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.