[英]Uncaught Error: Make sure that slide 0 has an image/video src lightgallery
I am facing issue with light gallery with video js in angular js . 我在angular js中遇到带有视频js的灯库的问题。
Uncaught Error: Make sure that slide 0 has an image/video src 未捕获的错误:确保幻灯片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>
I had the same problem. 我有同样的问题。 I commented/removed this line from lightgallery.js : 我从lightgallery.js评论/删除了这一行:
if (!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}
Now everything works well ! 现在一切正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.