stevenbenner / jquery-powertip

:speech_balloon: A jQuery plugin that creates hover tooltips.
https://stevenbenner.github.io/jquery-powertip/
MIT License
821 stars 137 forks source link

Stop videos on close #142

Closed Tanmccuin closed 8 years ago

Tanmccuin commented 8 years ago

What would be the proper method of essentially ending any / all videos playing in an open tip? Video's audio continues to play on even after a tip closes, up until i open a new one. I thought a destroy call would end it but it doesn't seem to. Any help would be great.

Tanmccuin commented 8 years ago
('.tips').on({

   powerTipClose: function() {
      console.log('powerTipClose', this);
  $('#powerTip').find('iframe').attr('src', '');
    }
  });

seemed to work!