Package com.teamdev.jxbrowser.media
Interface Audio
- All Superinterfaces:
Observable<AudioEvent>
Allows controlling audio for this Browser instance and receive notifications when audio has been
started or stopped playing.
-
Method Summary
Modifier and TypeMethodDescriptionbrowser()Returns theBrowserinstance of this audio.booleanisMuted()Returnstruewhen audio output is muted.booleanReturnstruewhen the audio is currently playing on the loaded web page.voidmute()Mutes all audio output.voidunmute()Unmutes all audio output.Methods inherited from interface com.teamdev.jxbrowser.event.Observable
on
-
Method Details
-
browser
Browser browser()Returns theBrowserinstance of this audio.- Since:
- 7.28
-
mute
void mute()Mutes all audio output.- Throws:
ObjectClosedException- when the browser is closed
-
unmute
void unmute()Unmutes all audio output.- Throws:
ObjectClosedException- when the browser is closed
-
isMuted
boolean isMuted()Returnstruewhen audio output is muted.- Throws:
ObjectClosedException- when the browser is closed
-
isPlaying
boolean isPlaying()Returnstruewhen the audio is currently playing on the loaded web page.- Throws:
ObjectClosedException- when the browser is closed
-