Example usage for com.google.gwt.dom.client MediaElement setPreload

List of usage examples for com.google.gwt.dom.client MediaElement setPreload

Introduction

In this page you can find the example usage for com.google.gwt.dom.client MediaElement setPreload.

Prototype

public final native void setPreload(String preload) ;

Source Link

Document

Changes the preload setting to one of #PRELOAD_AUTO , #PRELOAD_METADATA , or #PRELOAD_NONE .

Usage

From source file:annis.gui.widgets.gwt.client.ui.VMediaPlayerBase.java

License:Apache License

public VMediaPlayerBase(MediaElement media) {
    this.media = media;
    setElement(this.media);

    media.setControls(true);/* w  w w . jav a 2s  .co m*/
    media.setAutoplay(false);
    media.setPreload(MediaElement.PRELOAD_METADATA);
    media.setLoop(false);

}