videoRecoder

Introduction: 仿闲鱼 拍摄小视频 videorecoder
More: Author   ReportBugs   
Tags:

参考项目:https://github.com/small-dream/VideoRecord.git

仿闲鱼的小视频拍摄 ,

增加:模拟闲鱼的 ui 效果

改进:调用简单

增加:多段录制

增加:分段删除*

效果图

Screenshot
Screenshot

使用

  compile project(':videorecord')

在 Application 中初始化,主要指定拍摄路径:

        VCamera.setVideoCachePath( Environment.getExternalStorageDirectory().getAbsolutePath() + "/videoRecord/");
        // 开启 log 输出,ffmpeg 输出到 logcat
        VCamera.setDebugMode(true);
        // 初始化拍摄 SDK,必须
        VCamera.initialize(this);

调用

    /**
     *
     * @param context
     * @param listener,OnFinishRecordingListener
     */
 MediaRecorderActivity.startActivity(this, this);

回调

  @Override
    public void onRecordFinished(final String path) {
        if (!TextUtils.isEmpty(path)) {
            mPreview.setImageBitmap(getVideoThumbnail(path));
            mPath.setText("路径: "+path);
           }
    }
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools