Interface Audio

All Superinterfaces:
Observable<AudioEvent>

public interface Audio extends Observable<AudioEvent>
Allows controlling audio for this Browser instance and receive notifications when audio has been started or stopped playing.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Browser instance of this audio.
    boolean
    Returns true when audio output is muted.
    boolean
    Returns true when the audio is currently playing on the loaded web page.
    void
    Mutes all audio output.
    void
    Unmutes all audio output.

    Methods inherited from interface com.teamdev.jxbrowser.event.Observable

    on
  • Method Details

    • browser

      Browser browser()
      Returns the Browser 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()
      Returns true when audio output is muted.
      Throws:
      ObjectClosedException - when the browser is closed
    • isPlaying

      boolean isPlaying()
      Returns true when the audio is currently playing on the loaded web page.
      Throws:
      ObjectClosedException - when the browser is closed