• Resolved akt01

    (@akt01)


    The plugin works very well for many use cases, images, and including videos such as Youtube videos. I have a question about a special case of Youtube Shorts, which have a different URL structure.

    Regular video: https://www.youtube.com/live/xxxxxx
    Shorts video: https://youtube.com/shorts/xxxxxx

    When a Shorts video link is converted by the plugin, for some reason it converts it to the regular video format:

    https://www.youtube.com/watch?v=xxxxxxxx

    The video works and can play, however it is using the regular video player format instead of the Shorts video format. I’m wondering if it’s possible for the plugin to detect the /shorts/ regex pattern for Shorts videos, and not convert it to the regular video, so that it plays using the Shorts video player on the popup and on Youtube if the user clicks on the external link.

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author arisoft

    (@arisoft)

    Hi

    It is possible to add the following code to “Custom JS code” parameter on “ARI Fancy Lightbox -> Settings -> Advanced” page, but it works only for PRO version:

    $('A[href*="youtube.com/shorts/"]').each(function() {
    $(this).attr('data-ratio', 0.5625);
    });

    Thread Starter akt01

    (@akt01)

    I see, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Youtube shorts’ is closed to new replies.