跨域全页面嵌入iframe播放视频

写法一:

html部分:

js部分:
var app = angular.module(‘myapp’, []);
app.controller(‘myctrl’, function($scope, $http, $sce){
$scope.height = window.innerHeight;
$scope.init=function(){
var vhallurl = “https://live.vhall.com/webinar/inituser/498745689”;
$scope.vhallurl = $sce.trustAsResourceUrl(vhallurl);
var iframehtml = ‘https://www.deaboway.com/wp-admin/’+vhallurl+”;
$scope.player = $sce.trustAsHtml(iframehtml);
}
$scope.init();

});

继续阅读“跨域全页面嵌入iframe播放视频”