package fm.jiecao.jiecaovideoplayer.CustomView;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard;
/**
* Created by Nathen
* On 2016/04/27 10:49
*/
public class JCVideoPlayerStandardShowTitleAfterFullscreen extends JCVideoPlayerStandard {
public JCVideoPlayerStandardShowTitleAfterFullscreen(Context context) {
super(context);
}
public JCVideoPlayerStandardShowTitleAfterFullscreen(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void setUp(String url, int screen, Object... objects) {
super.setUp(url, screen, objects);
if (currentScreen == SCREEN_WINDOW_FULLSCREEN) {
titleTextView.setVisibility(View.VISIBLE);
} else {
titleTextView.setVisibility(View.INVISIBLE);
}
}
}