Open chanhnv91 opened 3 years ago
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
I get an error like the picture attached when I click on the thumbnail to open the video. Here is my code:
Thanks