Giter VIP home page Giter VIP logo

kzwechatsmallvideo-oc's Introduction

KZWeChatSmallVideo-OC

仿微信小视频的录制 Objective-C 版

高仿微信小视频录制, (微信6.3版本)

有两种风格 聊天界面和朋友圈界面

效果图1

小窗口录视频

效果图2

全屏录视频

cocoapod 地址:

pod 'KZSmallVideoRecorder', '~> 1.0.4'

导入

 #import "KZVideoViewController.h"

调用方法

KZVideoViewController *videoVC = [[KZVideoViewController alloc] init];
videoVC.delegate = self;
[videoVC startAnimationWithType:KZVideoViewShowTypeSmall];

显示风格

KZVideoViewShowTypeSmall,  // 小屏幕 ...聊天界面的
KZVideoViewShowTypeSingle, // 全屏 ... 朋友圈界面的

实现代理方法

- (void)videoViewController:(KZVideoViewController *)videoController didRecordVideo:(KZVideoModel *)videoModel;

视频model属性

@interface KZVideoModel : NSObject
@property (nonatomic, copy) NSString *videoAbsolutePath;  // 完整视频 本地路径
@property (nonatomic, copy) NSString *thumAbsolutePath;  // 缩略图 路径
@property (nonatomic, strong) NSDate *recordTime; // 录制时间
@end

压缩视频, 录制分辨率可配置

在 (宽 : 高=320px) = 4:3 情况下 录制视频 10秒大小 2M左右

全部按钮图片等使用 CALayer 或者Context 绘制

####修改视频分辨率,保存路径等直接改KZVideoConfig.h文件的定义

kzwechatsmallvideo-oc's People

Contributors

houkangzhu avatar

Watchers

Star avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.