Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download button is disabled for videos #656

Open
muhammedjafer opened this issue May 15, 2024 · 2 comments
Open

Download button is disabled for videos #656

muhammedjafer opened this issue May 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@muhammedjafer
Copy link

muhammedjafer commented May 15, 2024

Describe the bug

i just can not download the videos when i open them using fancybox, images are working and i can download them, here is the code:

window.addEventListener('init-fancybox', () => {
    //load fancybox image preview
    Fancybox.bind("[data-fancybox]", {
        contentClick: "iterateZoom",
        Images: {
            Panzoom: {
            maxScale: 8,
            },
        },
        protect: false,
        Toolbar: {
            display: {
            left: ["infobar"],
            middle: [],
            right: ["slideshow", "download", "thumbs", "close"],
            },
        },
    });
});

Reproduction

i just can not download the videos when i open them using fancybox, images are working and i can download them, here is the code:
window.addEventListener('init-fancybox', () => { //load fancybox image preview Fancybox.bind("[data-fancybox]", { contentClick: "iterateZoom", Images: { Panzoom: { maxScale: 8, }, }, protect: false, Toolbar: { display: { left: ["infobar"], middle: [], right: ["slideshow", "download", "thumbs", "close"], }, }, }); });

Additional context

No response

@muhammedjafer muhammedjafer added the needs triage This issue has not been triaged by maintainers label May 15, 2024
@fancyapps fancyapps added enhancement New feature or request and removed needs triage This issue has not been triaged by maintainers labels May 16, 2024
@fancyapps
Copy link
Owner

Video download is currently not provided. You can create your own custom button to provide the download functionality, or try adding the data-download-src attribute to your links.

@muhammedjafer
Copy link
Author

I have data-download-src, but how can i add a custom button for the download of the video?,

<a data-fancybox="gallery" href="{{ $href }}" wire:ignore>
    <img class="img-thumbnail gallery-image-{{ $id }} {{ $cols }}" data-download-src="{{ $src }}" src="{{ $src }}" alt="Thumbnail 2" style="height:60px!important;width:60px!important;">
</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants