Search in sources :

Example 1 with ENPlayView

use of moe.codeest.enviews.ENPlayView in project GSYVideoPlayer by CarGuo.

the class StandardGSYVideoPlayer method updateStartImage.

protected void updateStartImage() {
    ENPlayView enPlayView = (ENPlayView) mStartButton;
    enPlayView.setDuration(500);
    if (mCurrentState == CURRENT_STATE_PLAYING) {
        enPlayView.play();
    //mStartButton.setImageResource(R.drawable.video_click_pause_selector);
    } else if (mCurrentState == CURRENT_STATE_ERROR) {
        enPlayView.pause();
    //mStartButton.setImageResource(R.drawable.video_click_error_selector);
    } else {
        enPlayView.pause();
    //mStartButton.setImageResource(R.drawable.video_click_play_selector);
    }
}
Also used : ENPlayView(moe.codeest.enviews.ENPlayView)

Aggregations

ENPlayView (moe.codeest.enviews.ENPlayView)1