NativeState.PLAYING

Here are the examples of the java api NativeState.PLAYING taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

18 Source : MediaView.java
with GNU General Public License v3.0
from bidmachine

private void tryPlayVideo() {
    if (mediaPlayer == null) {
        createMediaPlayer();
    }
    if (!mediaPlayerPrepared) {
        prepareMediaPlayer();
    }
    if (isMediaPlayerAvailable() && mediaPlayerPrepared && viewOnScreen && isAdOnScreen()) {
        if (!mediaPlayer.isPlaying()) {
            mediaPlayer.start();
            notifyVideoStarted();
            if (videoVisibilityCheckerTimer == null) {
                startVideoVisibilityCheckerTimer();
            }
        }
        if (mediaPlayer.getCurrentPosition() > 0 && state != NativeState.PLAYING) {
            updateViewState(NativeState.PLAYING);
        }
    }
}