Example usage for com.google.gwt.dom.client VideoElement isPaused

List of usage examples for com.google.gwt.dom.client VideoElement isPaused

Introduction

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

Prototype

public final native boolean isPaused() ;

Source Link

Document

Returns true if playback is paused, false otherwise.

Usage

From source file:gwt.material.design.addins.client.ui.MaterialCameraCapture.java

License:Apache License

@Override
protected void onLoad() {
    VideoElement el = getElement().cast();
    if (el.getSrc() == null || el.isPaused()) {
        play();/*w w w .  j  a  va 2  s .  c  om*/
    }
}