Search code examples
internet-explorerprettyphotoflash-video

Video For Everybody/PrettyPhoto Flash Fallback in IE keeps playing audio after video is removed


I am attempting to use "Video For Everybody"/"PrettyPhoto", but have an issue in IE where the Flash fallback causes audio to keep playing after the video is closed/removed.

Has anyone experienced this or know how to solve the problem?

Thanks,


Solution

  • I have solved this problem in all browser for pretty-photo video light-box plugin.

    Here is solution:

    e.prettyPhoto.close = function () {
             if ($pp_overlay.is(":animated")) return;
             e.prettyPhoto.stopSlideshow();
             $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden");
             $pp_pic_holder.find("iframe").attr("src", "");
    
    and code continue.......