public void start() { if (nativeMode) { mVideoView.start(); mVideoView.setKeepScreenOn(true); normalWidth = mVideoView.getLayoutParams().width; normalHeight = mVideoView.getLayoutParams().height; } else { if (!mSurfaceReady) { TvApp.getApplication().getLogger().Error("Attempt to play before surface ready"); return; } if (!mVlcPlayer.isPlaying()) { mVlcPlayer.play(); } } }
public boolean isPlaying() { return nativeMode ? mVideoView.isPlaying() : mVlcPlayer != null && mVlcPlayer.isPlaying(); }