Class VideoElement


@TagName("video") public class VideoElement extends MediaElement
Video element.

Experimental API: This API is still under development and is subject to change.

See Also:
  • Field Details

  • Constructor Details

    • VideoElement

      protected VideoElement()
  • Method Details

    • getHeight

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

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

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

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

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

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

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

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