Пример #1
0
  private void handleVout() {
    Log.i(TAG, "Obtained video track");
    mMediaList.clear();
    hideNotification();

    // Don't crash if user stopped the media
    if (mCurrentMedia == null) return;

    // Switch to the video player & don't lose the currently playing stream
    VideoPlayerActivity.start(
        VLCApplication.getAppContext(),
        mCurrentMedia.getLocation(),
        mCurrentMedia.getTitle(),
        true);
  }
Пример #2
0
 protected void playVideo(MediaWrapper media, boolean fromStart) {
   VideoPlayerActivity.start(getActivity(), media.getUri(), fromStart);
 }