Webportal v1

embedded apps

API Reference - Media.Audio.audioLost

Media.Audio.audioLost

Type Event
wave 2
wave 3
wave 4

Event triggered when the audio source is disconnected.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
try{
	
	// Media
	if ((typeof Media !== "undefined") && (typeof Media.Audio !== "undefined") && (typeof Media.Audio.addEventListener !== "undefined")) {
		Media.Audio.addEventListener("audioLost", function(){
			printLogCb("success", "Media.Audio.audioLost()");
		});
		Media.Audio.addEventListener("audioAvailable", function(){
			printLogCb("success", "Media.Audio.audioAvailable()");
		});
		Media.Audio.addEventListener("startPlayback", function(){
			printLogCb("success", "Media.Audio.startPlayback()");
		});
		Media.Audio.addEventListener("stopPlayback", function(){
			printLogCb("success", "Media.Audio.stopPlayback()");
		});
		Media.Audio.addEventListener("playPreviousTrack", function(){
			printLogCb("success", "Media.Audio.playPreviousTrack()");
		});
		Media.Audio.addEventListener("playNextTrack", function(){
			printLogCb("success", "Media.Audio.playNextTrack()");
		});
	}
} catch(e) {
	HandleMediaAudioError(e);
}

Appeared in Software version 31.06.42.30