public void action() {
    Uri uri = mItem.getUri();

    if (uri == null) {
      showToast("Please select a valid video file first");

      return;
    }

    mItem.stopVideoView();

    int segmentFrom = mItem.getSegmentFrom();
    int segmentTo = mItem.getSegmentTo();

    Intent intent = new Intent();
    intent.setClass(this, ComposerCutCoreActivity.class);

    Bundle b = new Bundle();
    b.putString("srcMediaName1", mItem.getMediaFileName());
    intent.putExtras(b);
    b.putString("dstMediaPath", mItem.genDstPath(mItem.getMediaFileName(), "segment"));
    intent.putExtras(b);
    b.putLong("segmentFrom", segmentFrom);
    intent.putExtras(b);
    b.putLong("segmentTo", segmentTo);
    intent.putExtras(b);
    b.putString("srcUri1", uri.getString());
    intent.putExtras(b);

    startActivity(intent);
  }
  public void action() {
    String mediaFileName = mItem.getMediaFileName();

    if (mediaFileName == null) {
      showToast("Please select a valid video file first");

      return;
    }

    mItem.stopVideoView();

    Intent intent = new Intent();
    intent.setClass(this, ComposerTranscodeCoreActivity.class);

    Bundle b = new Bundle();
    b.putString("srcMediaName1", mItem.getMediaFileName());
    intent.putExtras(b);
    b.putString("dstMediaPath", mItem.genDstPath(mItem.getMediaFileName(), "transcoded"));
    intent.putExtras(b);
    b.putString("srcUri1", mItem.getUri().getString());
    intent.putExtras(b);

    startActivity(intent);
  }