0

我在 angular 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>
4

1 回答 1

2

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

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

现在一切正常!

于 2017-10-26T01:26:48.040 回答