Giter VIP home page Giter VIP logo

cccamera's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cccamera's Issues

关于判断设备方向时默认AVCaptureVideoOrientationLandscapeRight

`// 当前设备取向

  • (AVCaptureVideoOrientation)currentVideoOrientation{
    AVCaptureVideoOrientation orientation;
    switch (self.motionManager.deviceOrientation) {
    case UIDeviceOrientationPortrait:
    orientation = AVCaptureVideoOrientationPortrait;
    break;
    case UIDeviceOrientationLandscapeRight:
    orientation = AVCaptureVideoOrientationLandscapeLeft;
    break;
    case UIDeviceOrientationPortraitUpsideDown:
    orientation = AVCaptureVideoOrientationPortraitUpsideDown;
    break;
    default:
    orientation = AVCaptureVideoOrientationLandscapeRight;
    break;
    }
    return orientation;
    }`

为什么默认是AVCaptureVideoOrientationLandscapeRight ,有点不理解,帮忙解释下,谢谢

两个小问题

提2个小问题,
1.在设置自动聚焦和曝光的设置point代码应该放置在设置mode前面:
if (canResetFocus) {
device.focusPointOfInterest = point;
device.focusMode = focusMode;
}
if (canResetExposure) {
device.exposurePointOfInterest = point;
device.exposureMode = exposureMode;
}

2.开始录制时,应该把_recording = YES;放在最后,否则可能会出现提前先写入再删除文件的情况:

_movieManager.currentDevice = [self activeCamera];
_movieManager.currentOrientation = [self currentVideoOrientation];
[_movieManager start:^(NSError * _Nonnull error) {
    if (error) {
            [self.view showError:error];
    }else{
            dispatch_sync(dispatch_get_main_queue(), ^{
                self->_recording = YES;
            });
    }
}];

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.