Java com.google.gwt.media.client Video fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.media.client Video fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.media.client Video.

The text is from its open source code.

Method

HandlerRegistrationaddCanPlayThroughHandler(CanPlayThroughHandler handler)
HandlerRegistrationaddEndedHandler(EndedHandler handler)
SourceElementaddSource(String url, String type)
Add a source element to this media, specifying the type (format) of the media.
VideocreateIfSupported()
Return a new Video if supported, and null otherwise.
doublegetCurrentTime()
Returns the current time within the source media stream.
MediaErrorgetError()
Returns the type of error that has occurred while attempting to load and play the media.
VideoElementgetVideoElement()
Returns the attached VideoElement.
voidload()
Causes the resource to be loaded.
voidpause()
Causes playback of the resource to be paused.
voidplay()
Causes playback of the resource to be started or resumed.
voidsetAutoplay(boolean autoplay)
Enables or disables autoplay of the resource.
voidsetControls(boolean controls)
Enables or disables interactive controls.
voidsetCurrentTime(double time)
Sets the current playback time within the media stream, in seconds.
voidsetLoop(boolean loop)
Enables or disables looping.
voidsetPreload(String preload)
Changes the preload setting to one of MediaElement#PRELOAD_AUTO , MediaElement#PRELOAD_METADATA , or MediaElement#PRELOAD_NONE .
voidsetSrc(String url)
Sets the source URL for the media.