private void setupViews() {
   playerView = (StreamMediaPlayerView) findViewById(R.id.stream_player_view);
   playerView.setPlayConfig(
       true, PlayConfig.INTERRUPT_MODE_RELEASE_CREATE, PlayConfig.LIVE_VIDEO_MODE);
   playerView.setPlayerViewCallback(this);
   setupDialog();
   setUpPagerAndTabs();
 }
 @Override
 public void onRecommendListFragmentInteraction(String id) {
   Toast.makeText(StreamVideoActivity.this, "open recommend video", Toast.LENGTH_SHORT).show();
   playerView.stopPlayback();
   playerView.reopen();
 }
 @Override
 public boolean dispatchKeyEvent(KeyEvent event) {
   playerView.dispatchKeyEvent(event);
   return super.dispatchKeyEvent(event);
 }
 // master
 private void startPlayer(String url) {
   Log.d(Constants.LOG_TAG, "input url = " + url);
   playerView.play(url);
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   playerView.onDestroy();
 }
 @Override
 protected void onPause() {
   super.onPause();
   playerView.onPause();
 }
 @Override
 protected void onResume() {
   super.onResume();
   playerView.onResume();
 }