API Reference - Media.Audio.audioAvailable
Media.Audio.audioAvailable
Event triggered when the audio source is connected.
Example
1
2
3
4
5
6
7
8
9
10
11
try{
// Media
if ((typeof Media !== "undefined") && (typeof Media.Audio !== "undefined") && (typeof Media.Audio.addEventListener !== "undefined")) {
Media.Audio.addEventListener("audioAvailable", function(){
alert("Audio files are available");
});
}
} catch(e) {
DealWithMediaError(e);
}
Appeared in Software version 31.06.42.30