更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-13 14:35:56 +00:00
parent 602b8b7872
commit 2e99b1060f

View File

@ -175,11 +175,11 @@ var Infowindow = View.extend({
this._startCoverLoader(); this._startCoverLoader();
var $img = $("<video class='video-js CDB-infowindow-media-item' > <source src='' </source></video>"); var $video = $('<video class="video-js CDB-infowindow-media-item" controls data-setup="{}" width="100%"> <source src="" </source></video>');
$cover.append($img); $cover.append($video);
$img $video
.load(this._onLoadVideoSuccess) // .load(this._onLoadVideoSuccess)
.error(this._onLoadImageError) .error(this._onLoadImageError)
.attr('src', url); .attr('src', url);
}, },