录像方向设置
来源:互联网 发布:php开源文档管理 编辑:程序博客网 时间:2024/05/16 11:10
-(AVCaptureConnection *)connectionWithMediaType:(NSString *)mediaType fromConnections:(NSArray *)connections
{
for ( AVCaptureConnection *connectionin connections ) {
for ( AVCaptureInputPort *portin [connection inputPorts] ) {
if ( [[port mediaType]isEqual:mediaType] ) {
return connection;
}
}
}
return nil;
}
AVCaptureConnection *videoConnection = [ self connectionWithMediaType:AVMediaTypeVideofromConnections:[output connections]];
if ([videoConnection isVideoOrientationSupported])
[videoConnection setVideoOrientation:AVCaptureVideoOrientationLandscapeRight];
- 录像方向设置
- 【Android】设置摄像头方向、打开线程与预览线程、设置参数、Camera外设按键、自动对焦与触摸对焦、拍照、人脸检测、位置管理、旋转管理、变焦、录像
- 如何设置打印方向
- 设置iphone屏幕方向
- 设置屏幕方向
- android设置方向
- 屏幕方向设置
- 设置屏幕的方向
- 设置活动的方向
- 设置屏幕方向
- 设置屏幕方向
- [Android]设置屏幕方向
- stm32IO口方向设置
- 设置屏幕方向
- Android设置屏幕方向
- androidManifest设置屏幕方向
- 常用屏幕方向设置
- 设置动画方向
- ORACLE中CONN命令
- Windows XP使用技巧大全
- ps 使用
- JavaScript_A Beginner's Guide - Using an external JavaScript file - 09/20/2012
- jackrabbit version
- 录像方向设置
- Search across multiple lines using regular expression in VIM
- Java 位运算 64位long数据 转成2个 32位 int数据 及 回加成原数据
- Handler使用总结
- java finalize test
- 12个有趣的C语言面试题
- 优秀程序员的10种特质
- 获取国家气象局数据
- linux-kernel 3.5.3Tcp系统调用,源码分析4-inet_init