2 Replies Latest reply on May 4, 2010 8:24 AM by DilipShah

    detecting navigation away from a screen

    DilipShah Level 1
      To play mp3 files in my web application, I've a  simple audio player with play/pause buttons, progress bar, etc. Just the way  VideoPlayer stops playing video when user of the application switches to some  other screen, I would like my audio player to stop playing audio when the user  switches to some other screen. What event can I use to detect that the audio  player (s:VGroup) isn't 'visible'?
      Although this question is framed around stopping an  audio player, the same applies to a situation where user is navigating away from  a form without saving modified data.