Webportal v1

embedded apps

API Reference - Media.Audio.audioAvailable

Media.Audio.audioAvailable

Type Event
wave 2
wave 3
wave 4

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