Example usage for Java com.google.gwt.media.client Video fields, constructors, methods, implement or subclass
The text is from its open source code.
HandlerRegistration | addCanPlayThroughHandler(CanPlayThroughHandler handler) |
HandlerRegistration | addEndedHandler(EndedHandler handler) |
SourceElement | addSource(String url, String type) Add a source element to this media, specifying the type (format) of the media. |
Video | createIfSupported() Return a new Video if supported, and null otherwise. |
double | getCurrentTime() Returns the current time within the source media stream. |
MediaError | getError() Returns the type of error that has occurred while attempting to load and play the media. |
VideoElement | getVideoElement() Returns the attached VideoElement. |
void | load() Causes the resource to be loaded. |
void | pause() Causes playback of the resource to be paused. |
void | play() Causes playback of the resource to be started or resumed. |
void | setAutoplay(boolean autoplay) Enables or disables autoplay of the resource. |
void | setControls(boolean controls) Enables or disables interactive controls. |
void | setCurrentTime(double time) Sets the current playback time within the media stream, in seconds. |
void | setLoop(boolean loop) Enables or disables looping. |
void | setPreload(String preload) Changes the preload setting to one of MediaElement#PRELOAD_AUTO , MediaElement#PRELOAD_METADATA , or MediaElement#PRELOAD_NONE . |
void | setSrc(String url) Sets the source URL for the media. |