更新 infowindow-view.js
This commit is contained in:
parent
2d77ab40a5
commit
63a15f6a5f
@ -173,23 +173,14 @@ var Infowindow = View.extend({
|
||||
},
|
||||
|
||||
_loadVideoFromUrl: function (url) {
|
||||
var $cover = this.$('.js-cover');
|
||||
var $urlsrc = this.$('#target');
|
||||
|
||||
this._startCoverLoader();
|
||||
//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);
|
||||
$urlsrc.attr('src', url);
|
||||
|
||||
player = videojs('hls-video');
|
||||
|
||||
// $video
|
||||
// .load(this._onLoadVideoSuccess)
|
||||
// .error(this._onLoadVideoError)
|
||||
// .attr('src', url);
|
||||
},
|
||||
|
||||
_onLoadVideoError: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user