Search in sources :

Example 1 with ENDownloadView

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

the class StandardGSYVideoPlayer method changeUiToPlayingBufferingClear.

private void changeUiToPlayingBufferingClear() {
    Debuger.printfLog("changeUiToPlayingBufferingClear");
    mTopContainer.setVisibility(View.INVISIBLE);
    mBottomContainer.setVisibility(View.INVISIBLE);
    mStartButton.setVisibility(View.INVISIBLE);
    mLoadingProgressBar.setVisibility(View.VISIBLE);
    if (mLoadingProgressBar instanceof ENDownloadView) {
        ENDownloadView enDownloadView = (ENDownloadView) mLoadingProgressBar;
        if (enDownloadView.getCurrentState() == ENDownloadView.STATE_PRE) {
            ((ENDownloadView) mLoadingProgressBar).start();
        }
    }
    mThumbImageViewLayout.setVisibility(View.INVISIBLE);
    mCoverImageView.setVisibility(View.INVISIBLE);
    mBottomProgressBar.setVisibility(View.VISIBLE);
    mLockScreen.setVisibility(GONE);
    updateStartImage();
}
Also used : ENDownloadView(moe.codeest.enviews.ENDownloadView)

Example 2 with ENDownloadView

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

the class StandardGSYVideoPlayer method changeUiToPlayingBufferingShow.

private void changeUiToPlayingBufferingShow() {
    Debuger.printfLog("changeUiToPlayingBufferingShow");
    mTopContainer.setVisibility(View.VISIBLE);
    mBottomContainer.setVisibility(View.VISIBLE);
    mStartButton.setVisibility(View.INVISIBLE);
    mLoadingProgressBar.setVisibility(View.VISIBLE);
    if (mLoadingProgressBar instanceof ENDownloadView) {
        ENDownloadView enDownloadView = (ENDownloadView) mLoadingProgressBar;
        if (enDownloadView.getCurrentState() == ENDownloadView.STATE_PRE) {
            ((ENDownloadView) mLoadingProgressBar).start();
        }
    }
    mThumbImageViewLayout.setVisibility(View.INVISIBLE);
    mCoverImageView.setVisibility(View.INVISIBLE);
    mBottomProgressBar.setVisibility(View.INVISIBLE);
    mLockScreen.setVisibility(GONE);
}
Also used : ENDownloadView(moe.codeest.enviews.ENDownloadView)

Example 3 with ENDownloadView

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

the class StandardGSYVideoPlayer method changeUiToPrepareingShow.

private void changeUiToPrepareingShow() {
    Debuger.printfLog("changeUiToPrepareingShow");
    mTopContainer.setVisibility(View.VISIBLE);
    mBottomContainer.setVisibility(View.VISIBLE);
    mStartButton.setVisibility(View.INVISIBLE);
    mLoadingProgressBar.setVisibility(View.VISIBLE);
    if (mLoadingProgressBar instanceof ENDownloadView) {
        ENDownloadView enDownloadView = (ENDownloadView) mLoadingProgressBar;
        if (enDownloadView.getCurrentState() == ENDownloadView.STATE_PRE) {
            ((ENDownloadView) mLoadingProgressBar).start();
        }
    }
    mThumbImageViewLayout.setVisibility(View.INVISIBLE);
    mCoverImageView.setVisibility(View.VISIBLE);
    mBottomProgressBar.setVisibility(View.INVISIBLE);
    mLockScreen.setVisibility(GONE);
}
Also used : ENDownloadView(moe.codeest.enviews.ENDownloadView)

Aggregations

ENDownloadView (moe.codeest.enviews.ENDownloadView)3