angular-bootstrap-lightbox icon indicating copy to clipboard operation
angular-bootstrap-lightbox copied to clipboard

Can't play video when calling openLightboxModal event

Open chanhnv91 opened this issue 4 years ago • 0 comments

Screen Shot 2021-08-25 at 02 40 49 I get an error like the picture attached when I click on the thumbnail to open the video. Here is my code:

              _.each(element.files, function (file) {
                    var r = new FileReader();
                    r.onload = function (e) {
                        if (!vm.fileContainers) vm.fileContainers = [];
                        var newFileContainer = {
                            name: file.name,
                            type: file.type.split('/')[0],
                            url: this.result
                        };
                        vm.fileContainers.push(newFileContainer);
                        $scope.$apply();
                        vm.changeEvent(vm.fileContainers);
                    }
                    r.readAsDataURL(file);
                })
       function openLightboxModal(imageContainers, index) {
          
                Lightbox.openModal(imageContainers, index);
        };

Thanks

chanhnv91 avatar Aug 25 '21 09:08 chanhnv91