Class Audio

All Implemented Interfaces:
Serializable, Cloneable, Component, DynamicPropertied, RawId, Scope, ComponentCtrl

public class Audio extends AbstractTag
The AUDIO tag.
Author:
jameschu
See Also:
  • Constructor Details

    • Audio

      public Audio()
  • Method Details

    • isAutoplay

      public boolean isAutoplay()
      Returns the autoplay of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setAutoplay

      public void setAutoplay(boolean autoplay) throws WrongValueException
      Sets the autoplay of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • getControls

      public String getControls()
      Returns the controls of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setControls

      public void setControls(String controls) throws WrongValueException
      Sets the controls of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • isLoop

      public boolean isLoop()
      Returns the loop of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setLoop

      public void setLoop(boolean loop) throws WrongValueException
      Sets the loop of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • isMuted

      public boolean isMuted()
      Returns the muted of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setMuted

      public void setMuted(boolean muted) throws WrongValueException
      Sets the muted of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • getPreload

      public String getPreload()
      Returns the preload of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setPreload

      public void setPreload(String preload) throws WrongValueException
      Sets the preload of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • getSrc

      public String getSrc()
      Returns the src of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setSrc

      public void setSrc(String src) throws WrongValueException
      Sets the src of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1
    • getVolume

      public String getVolume()
      Returns the volume of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Since:
      8.5.1
    • setVolume

      public void setVolume(String volume) throws WrongValueException
      Sets the volume of this audio tag.

      Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

      Throws:
      WrongValueException
      Since:
      8.5.1