【发布时间】:2018-10-22 23:56:15
【问题描述】:
<span ng-repeat="x in pics.files">
<video ng-src="img/gallery_vid/{{x}}" height="200px" width="200px" class="mt-2" controls>
</video>
</span>
ng-src 不适用于视频标签,如果有人可以帮助我,我会很高兴。 视频无法播放,我在网上搜索了解决方案 I saw this but I didn't get it。 提前致谢
【问题讨论】:
-
您的绑定就像绑定到 src 一样。要绑定到 ng-src,您需要执行类似(未经测试)
ng-src="'img/gallery_vid'+x"
标签: angularjs angularjs-directive angular-ui-router angularjs-scope angularjs-ng-repeat