public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
@Override public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
public boolean isPlaying() { return mMediaPlayer.isPlaying(); }
public boolean isPlaying() { return player != null && player.isPlaying(); }
public boolean isVideoPlaying() { return mMediaPlayer.isPlaying(); }
public void playMovie() { if (mMediaPlayer != null && mMediaPlayer.isPlaying()) return ; layout.setVisibility(View.VISIBLE); holder = mSurface.getHolder(); createPlayer(mFilePath); }
@Override public boolean isPlaying() { if (isPrepare()) { return mMediaPlayer.isPlaying(); } return false; }
public void pause() { if (player != null && player.isPlaying()) { player.pause(); } }
@Override public boolean isPlaying() { return getMediaPlayer().isPlaying(); }
@Override public boolean isPlaying(Query query) { return isPrepared(query) && getMediaPlayerInstance().isPlaying(); }
@Override public void onClick(View view) { if (mMediaPlayer.isPlaying()) { mMediaPlayer.pause(); vlcButtonPlayPause.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_play_over_video)); } else { mMediaPlayer.play(); vlcButtonPlayPause.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_pause_over_video)); } } });
public void stop() { if (player != null && player.isPlaying()) { player.stop(); player.release(); } }
private void handlePlayState() { if (mPreparedQuery != null) { if (mPlayState == PlaybackStateCompat.STATE_PAUSED && getMediaPlayerInstance().isPlaying()) { getMediaPlayerInstance().pause(); } else if (mPlayState == PlaybackStateCompat.STATE_PLAYING && !getMediaPlayerInstance().isPlaying()) { getMediaPlayerInstance().play(); } } } }
public void play(String endPoint) { if (player == null || player.isReleased()) { setMedia(new Media(vlcInstance, Uri.parse(endPoint))); } else if (!player.isPlaying()) { player.play(); } }
private void onApplicationConnected(CastSession castSession) { mCastSession = castSession; boolean isVideoPlaying = videoService.getMediaPlayer().isPlaying(); if (isVideoPlaying) pause(); loadRemoteMedia(getCurrentPosition(), isVideoPlaying); }