lity icon indicating copy to clipboard operation
lity copied to clipboard

Inline Lity (pop-up) and Youtube Video with Specific Start Time

Open gerard-pcom opened this issue 4 years ago • 1 comments

TLDR: How do you make youtube video URLs with specific start time to work on pop-up/inline Lity?

Portion of my code: <div id="inline" style="background:#fff" class="lity-hide"></div> <a href="<?php esc_url($video_url); ?>" data-lity="">IMG</a>

Sample $video_url values that worked: https://youtu.be/A_WzVVndUCY https://www.youtube.com/embed/A_WzVVndUCY https://www.youtube.com/watch?v=A_WzVVndUCY?autoplay=0&rel=0&showinfo=0&autohide=1&modestbranding=1

Sample $video_url values that did NOT work: https://youtu.be/A_WzVVndUCY?t=181 https://youtu.be/A_WzVVndUCY?start=181 https://www.youtube.com/embed/A_WzVVndUCY?start=181 https://www.youtube.com/embed/A_WzVVndUCY?start=181;rel=0&amp;showinfo=0 https://www.youtube.com/embed/A_WzVVndUCY?start=181&end=201;rel=0&amp;showinfo=0 https://youtu.be/A_WzVVndUCY?t=181&autoplay=0&rel=0&showinfo=0&autohide=1&modestbranding=1

The ones that did not work only worked when I entered them in the browser address bar. Just to make sure, I did a var_dump to check the value of the variable ($video_url).

This is the image of the video with a var_dump expression before it: Screen Shot 2019-12-16 at 2 54 51 PM

This is the pop-up/inline Lity but it doesn't start at the specified start time: Screen Shot 2019-12-16 at 2 52 22 PM

gerard-pcom avatar Dec 16 '19 06:12 gerard-pcom

Was this ever fixed? Running into same issue now.

kevinohashi avatar Sep 13 '20 22:09 kevinohashi