public class

VideoElement

extends MediaElement
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Node
       ↳ com.google.gwt.dom.client.Element
         ↳ com.google.gwt.dom.client.MediaElement
           ↳ com.google.gwt.dom.client.VideoElement

Class Overview

Video element.

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

Summary

Constants
String TAG The tag for this element.
[Expand]
Inherited Constants
From class com.google.gwt.dom.client.MediaElement
From class com.google.gwt.dom.client.Node
Protected Constructors
VideoElement()
Public Methods
final int getHeight()
Gets the height of the element.
final String getPoster()
Returns a poster URL.
final int getVideoHeight()
Gets the intrinsic height of video within the element.
final int getVideoWidth()
Gets the instrinsic width of the video within the element.
final int getWidth()
Gets the width of the element.
final void setHeight(int height)
Sets the height of the element.
final void setPoster(String url)
Sets the poster URL.
final void setWidth(int width)
Sets the width of the element.
[Expand]
Inherited Methods
From class com.google.gwt.dom.client.MediaElement
From class com.google.gwt.dom.client.Element
From class com.google.gwt.dom.client.Node
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Constants

public static final String TAG

The tag for this element.

Constant Value: "video"

Protected Constructors

protected VideoElement ()

Public Methods

public final int getHeight ()

Gets the height of the element.

Returns
  • the height, in pixels
See Also

public final String getPoster ()

Returns a poster URL.

Returns
  • a URL containing a poster image

public final int getVideoHeight ()

Gets the intrinsic height of video within the element.

Returns
  • the height, in pixels
See Also

public final int getVideoWidth ()

Gets the instrinsic width of the video within the element.

Returns
  • the width, in pixels
See Also

public final int getWidth ()

Gets the width of the element.

Returns
  • the width, in pixels
See Also

public final void setHeight (int height)

Sets the height of the element.

Parameters
height the height, in pixels
See Also

public final void setPoster (String url)

Sets the poster URL.

Parameters
url the poster image URL
See Also

public final void setWidth (int width)

Sets the width of the element.

Parameters
width the width, in pixels
See Also