U
U
Unior2772015-04-17 00:20:34
YouTube
Unior277, 2015-04-17 00:20:34

How to stop (close) the video when closing the modal window?

I open youtube video in fancybox modal window, play the video, but after closing the modal window, the video is still playing (video sound is heard), how can I solve this problem?
(block "video about us")
light version of the site (test)
part2.htmllanding.esy.es

htmllanding.esy.es

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kn1ght_t, 2015-04-17
@kn1ght_t

fancyapps.com/fancybox/#examples
look at the examples on this page how to make an iframe from youtube,
it says what parameters fancybox is called with
and as I understand it, you have an old version of fancybox on your site (1.2.1)
download on mine links new version, it will solve your problems with stopping the video for you

T
tennalian, 2015-04-17
@tennalian

I remember crutching in this way: when the modal window pops up, you replace the src of the frame with autoplay, when you close the modal window, you replace the src with some garbage, respectively, when the window is closed, the vidos is cut off or killed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question