我面临的问题与光画廊与视频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>发布于 2017-10-26 01:26:48
我也有同样的问题。我从lightgallery.js中注释/删除了这一行:
if (!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}现在一切都很顺利!
https://stackoverflow.com/questions/46475509
复制相似问题