use of com.flymegoc.exolibrary.widget.ExoVideoControlsMobile in project 91Pop by DanteAndroid.
the class PlayPigAvActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play_pig_av);
ButterKnife.bind(this);
setVideoViewHeight(playContainer);
initDialog();
videoControlsMobile = (ExoVideoControlsMobile) videoPlayer.getVideoControls();
videoPlayer.setOnPreparedListener(this);
videoControlsMobile.setOnBackButtonClickListener(new ExoVideoControlsMobile.OnBackButtonClickListener() {
@Override
public void onBackClick(View view) {
onBackPressed();
}
});
PigAv pigAv = (PigAv) getIntent().getSerializableExtra(Keys.KEY_INTENT_PIG_AV_ITEM);
if (pigAv != null) {
parseVideoUrl(pigAv);
} else {
showMessage("参数错误,无法播放", TastyToast.WARNING);
}
}
Aggregations