我正面临着角度js的视频js光库的问题 未捕获错误:确保幻灯片0包含图片/视频src
<ul class="gallerybox gallery" id ="video-gallery">
<li ng-repeat="image in gallery" data-poster="{{image.thumbnail}}" data-sub-html="video caption2" data-html="#video{{index}}" id="{{image.id}}">
<img ng-src="{{image.thumbnail}}" />
</li>
</ul>
<div style="display:none;" id="video{{$index}}" ng-repeat="image in gallery" >
<video width="320" height="240" controls>
<source src="http://example.com/8/video/59cbcf659fee7.mp4-export-webm.webm" type="video/webm">
Your browser does not support the video tag.
</video>
</div>
答案 0 :(得分:2)
我遇到了同样的问题。 我评论/删除了lightgallery.js中的这一行:
if (!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}
现在一切正常!