ng-src video的不可以双向绑定链接

angular.module('myApp',[]).controller('myCtrl', ['$scope','$sce',function($scope,$sce){
$scope.detail={'videoa':'xxxxx','title':'课程一'}
// http://7xigeb.com2.z0.glb.qiniucdn.com/j1.mp4
$scope.videoSrc = function(url){
console.log(url);
   return $sce.trustAsResourceUrl(url);
}

}]);



 <video id="video1" style="margin-top:15px;" controls="controls" preload="auto" width="552" height="300" autobuffer webkit-playsinline poster="../img/while.png">
<source ng-src="{{videoSrc(detail.videoa)}}"></source>
 </video>


webkit-playsinline禁止视频必须全屏播放


你可能感兴趣的:(ng-src video的不可以双向绑定链接)