0

I have a html5-tag using the scope to set the src:

<video style="max-height:100%; max-width:100%" controls>
    <source src="/files/{{item.path}}" type="video/mp4"/>
</video>

If I load this template I get this error:

GET http://localhost:8070/files/%7B%7Bitem.path%7D%7D 404 (Not Found) 

Btw. this is not the correct value of item.path. If I set the path manually it works:

<source src="/files/./5315dfea66469e28166e85c6/5315dfea66469e28166e85c6_20143414248143.mp4" type="video/mp4"/>

How can I make this work?

marcel
  • 3,031
  • 5
  • 38
  • 69

1 Answers1

1

This is an open issue with Angular:

https://github.com/angular/angular.js/issues/1352

ng-src is appropriate here. however, it is confirmed to not work in all browsers and is suspected to be a bug in the browser rather than with Angular.

There is a possible workaround here: HTML5 video element request stay pending forever (on chrome)

Community
  • 1
  • 1
Jake Johnson
  • 1,838
  • 1
  • 15
  • 26
  • Oh, didn't found that issue by myself. I always come to a point where angularjs isn't fun anymore. Getting there now :( – marcel Mar 31 '14 at 14:04