Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/382.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获错误:确保幻灯片0具有图像/视频src lightgallery_Javascript_Angularjs_Video.js_Lightgallery - Fatal编程技术网

Javascript 未捕获错误:确保幻灯片0具有图像/视频src lightgallery

Javascript 未捕获错误:确保幻灯片0具有图像/视频src lightgallery,javascript,angularjs,video.js,lightgallery,Javascript,Angularjs,Video.js,Lightgallery,我面临的问题是,light gallery在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{

我面临的问题是,light gallery在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>
您的浏览器不支持视频标记。
我也有同样的问题。 我在lightgallery.js中评论/删除了这一行:

if (!src) {
        throw new Error("Make sure that slide " + index + " has an image/video src");
    }
现在一切顺利

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

if (!src) {
        throw new Error("Make sure that slide " + index + " has an image/video src");
    }
现在一切顺利