Capture event when user change input audio, video and output audio device

Hi,

How can we know that user has changed audio input or ouput device inside IFrame?

Thanks