更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-15 14:36:58 +00:00
parent 314dd14954
commit d700262626

View File

@ -175,26 +175,20 @@ var Infowindow = View.extend({
_loadVideoFromUrl: function (url) {
var $cover = this.$('.js-cover');
// this._startCoverLoader();
var $v = $('<video class="video-js CDB-infowindow-media-item" controls data-setup="{}" width="100%"> <source src="" </source></video>');
var $video = $('<video id="hls-video" class="video-js vjs-default-skin" controls preload="none" width="100%" height="264" \
poster="http://vjs.zencdn.net/v/oceans.png"> \
<source src="http://video.hulian100.cn:9090/live/S105.m3u8" type="application/x-mpegURL"></video>');
//$cover.append($video);
this._stopCoverLoader();
this._startCoverLoader();
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 () {