搜索
javascript - angular能够获取视频和音频地址,但是不能播放,怎么解决?
怪我咯
怪我咯 2017-04-11 12:30:22
[JavaScript讨论组]

使用angular渲染页面时,能够获取`
页面html

<p class="other">
    <img  ng-bind-template="{{store.sub[index].attachment}}" ng-src="{{store.sub[index].attachment|trustAsResourceUrl}}" class="image"/>
    <video  width='100%' height="auto" class="video" controls="controls" autoplay="autoplay">
        <source  ng-bind-template="{{store.sub[index].attachment}}" ng-src="{{store.sub[index].attachment|trustAsResourceUrl}}">
    </video>
    <audio class="audio" width='100%' height="auto" controls="controls" autoplay="autoplay" >
        <source  ng-bind-template="{{store.sub[index].attachment}}" ng-src="{{store.sub[index].attachment|trustAsResourceUrl}}">
    </audio>`
</p>
能够获取到的url地址
![图片描述][1]
怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(2)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板