Class VideoElement

    • Field Detail

      • TAG

        public static final java.lang.String TAG
        The tag for this element.
        See Also:
        Constant Field Values
      • TYPE_MP4

        public static final java.lang.String TYPE_MP4
        The audio type of MP4 encoded video.
        See Also:
        Constant Field Values
      • TYPE_OGG

        public static final java.lang.String TYPE_OGG
        The audio type of Ogg encoded video.
        See Also:
        Constant Field Values
      • TYPE_WEBM

        public static final java.lang.String TYPE_WEBM
        The audio type of WebM encoded audio.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VideoElement

        protected VideoElement()
    • Method Detail

      • getHeight

        public final int getHeight()
        Gets the height of the element.
        Returns:
        the height, in pixels
        See Also:
        setHeight(int)
      • getPoster

        public final java.lang.String getPoster()
        Returns a poster URL.
        Returns:
        a URL containing a poster image
        See Also:
        setPoster(String)
      • getVideoHeight

        public final int getVideoHeight()
        Gets the intrinsic height of video within the element.
        Returns:
        the height, in pixels
        See Also:
        setHeight(int)
      • getVideoWidth

        public final int getVideoWidth()
        Gets the instrinsic width of the video within the element.
        Returns:
        the width, in pixels
        See Also:
        setWidth(int)
      • getWidth

        public final int getWidth()
        Gets the width of the element.
        Returns:
        the width, in pixels
        See Also:
        setWidth(int)
      • setHeight

        public final void setHeight​(int height)
        Sets the height of the element.
        Parameters:
        height - the height, in pixels
        See Also:
        getHeight()
      • setPoster

        public final void setPoster​(java.lang.String url)
        Sets the poster URL.
        Parameters:
        url - the poster image URL
        See Also:
        getPoster()
      • setWidth

        public final void setWidth​(int width)
        Sets the width of the element.
        Parameters:
        width - the width, in pixels
        See Also:
        getWidth()