Faced such a situation: on the page there is some kind of control on the click on which the block pops up (jquery- show
method) with youtub code with the player. You press the "close" button in the block and this block disappears (jquery-method .hide
). But the video does not stop :) More precisely in all browsers, everything seems to be ok, but in chrome, even with a hidden block, you can hear that the video is “somewhere out there” still playing ...
It would be logical when you click the "close" button, first pause the movie, and then hide the unit with the player. Is it possible Or is there another way?