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 theBrowser
instance of this audio.boolean
isMuted()
Returnstrue
when audio output is muted.boolean
Returnstrue
when the audio is currently playing on the loaded web page.void
mute()
Mutes all audio output.void
unmute()
Unmutes all audio output.Methods inherited from interface com.teamdev.jxbrowser.event.Observable
on
-
Method Details
-
browser
Browser browser()Returns theBrowser
instance 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()Returnstrue
when audio output is muted.- Throws:
ObjectClosedException
- when the browser is closed
-
isPlaying
boolean isPlaying()Returnstrue
when the audio is currently playing on the loaded web page.- Throws:
ObjectClosedException
- when the browser is closed
-