更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-15 15:33:06 +00:00
parent 2d77ab40a5
commit 63a15f6a5f

View File

@ -173,23 +173,14 @@ var Infowindow = View.extend({
},
_loadVideoFromUrl: function (url) {
var $cover = this.$('.js-cover');
var $urlsrc = this.$('#target');
this._startCoverLoader();
//this._startCoverLoader();
$urlsrc.attr('src', url);
var $video = $('<video id="hls-video" width="100%" class="video-js vjs-default-skin vjs-big-play-centered" controls \
preload="auto" data-setup="{}" poster="" style="width:100%;height:100%"> \
<source src="http://video.hulian100.cn:9090/live/S108.m3u8" type="application/x-mpegURL" id="target"> \
</video>');
$cover.append($video);
player = videojs('hls-video');
// $video
// .load(this._onLoadVideoSuccess)
// .error(this._onLoadVideoError)
// .attr('src', url);
},
_onLoadVideoError: function () {