gpt4 book ai didi

javascript - Uncaught Error : Make sure that slide 0 has an image/video src lightgallery

转载 作者:行者123 更新时间:2023-12-01 03:00:13 24 4
gpt4 key购买 nike

我面临着 Angular JS 中带有视频 JS 的灯光画廊的问题。
未捕获错误:确保幻灯片 0 具有图像/视频源

<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>

最佳答案

我也遇到了同样的问题。我从 lightgallery.js 中评论/删除了这一行:

if (!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}

现在一切正常!

关于javascript - Uncaught Error : Make sure that slide 0 has an image/video src lightgallery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46475509/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com