Class Audio

    • Constructor Detail

      • Audio

        public Audio()
    • Method Detail

      • 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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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