Class HtmlMedia

    • Method Detail

      • canPlayType

        public java.lang.String canPlayType​(java.lang.String type)
        Determines whether the specified media type can be played back.
        Parameters:
        type - the type
        Returns:
        "probably", "maybe", or "". The current implementation returns ""
      • getSrcAttribute

        public final java.lang.String getSrcAttribute()
        Returns the value of the attribute src. Refer to the HTML 4.01 documentation for details on the use of this attribute.
        Returns:
        the value of the attribute src or an empty string if that attribute isn't defined
      • getSrc

        public java.lang.String getSrc()
        Returns:
        the value of the src value
      • setSrc

        public void setSrc​(java.lang.String src)
        Sets the value of the src attribute.
        Parameters:
        src - the value of the src attribute
      • getCurrentSrc

        public java.lang.String getCurrentSrc()
        Returns the absolute URL of the chosen media resource. This could happen, for example, if the web server selects a media file based on the resolution of the user's display. The value is an empty string if the networkState property is EMPTY.
        Returns:
        the absolute URL of the chosen media resource