用于管理媒体设备 更多...

class  JCMediaDeviceCamera
 
class  JCMediaDeviceAudio
 
class  JCMediaDeviceWindow
 
class  JCMediaDeviceAudioParam
 
protocol  <JCAudioFrameCallback>
 
protocol  <JCVideoFrameCallback>
 
class  JCMediaDevice
 
class  JCMediaDeviceVideoCanvas
 
protocol  <JCMediaDeviceCallback>
 

枚举

enum  JCMediaDeviceRotateAngle : NSInteger { JCMediaDeviceRotateAngle0 = 0, JCMediaDeviceRotateAngle90 = 90, JCMediaDeviceRotateAngle180 = 180, JCMediaDeviceRotateAngle270 = 270 }
 
enum  JCMediaDeviceRender : NSInteger { JCMediaDeviceRenderFullScreen = 0, JCMediaDeviceRenderFullContent, JCMediaDeviceRenderFullAuto }
 
enum  JCMediaDeviceVideoPixelFormat : NSInteger {
  JCMediaDeviceVideoPixelFormatI420 = 1, JCMediaDeviceVideoPixelFormatIYUV = 2, JCMediaDeviceVideoPixelFormatRGB24 = 3, JCMediaDeviceVideoPixelFormatABGR = 4,
  JCMediaDeviceVideoPixelFormatARGB = 5, JCMediaDeviceVideoPixelFormatARGB444 = 6, JCMediaDeviceVideoPixelFormatRGB565 = 7, JCMediaDeviceVideoPixelFormatARGB1555 = 8,
  JCMediaDeviceVideoPixelFormatYUY2 = 9, JCMediaDeviceVideoPixelFormatYV12 = 10, JCMediaDeviceVideoPixelFormatUYVY = 11, JCMediaDeviceVideoPixelFormatMJPG = 12,
  JCMediaDeviceVideoPixelFormatNV21 = 13, JCMediaDeviceVideoPixelFormatNV12 = 14, JCMediaDeviceVideoPixelFormatBGRA = 15
}
 
enum  JCMediaDeviceVideoAngel : NSInteger {
  JCMediaDeviceVideoAngelAuto = -1, JCMediaDeviceVideoAngel0 = 0, JCMediaDeviceVideoAngel90 = 90, JCMediaDeviceVideoAngel180 = 180,
  JCMediaDeviceVideoAngel270 = 270
}
 
enum  JCMediaDeviceCameraType : NSInteger { JCMediaDeviceCameraTypeNone = 0, JCMediaDeviceCameraTypeFront = 1, JCMediaDeviceCameraTypeBack = 2, JCMediaDeviceCameraTypeUnknown = 3 }
 
enum  JCMediaDeviceVideoSource : NSInteger { JCMediaDeviceVideoSourcePeer = 0, JCMediaDeviceVideoSourceCapture = 1, JCMediaDeviceVideoSourceFile = 2 }
 
enum  JCMediaDeviceMirror : NSInteger {
  JCMediaDeviceMirrorNone = 0, JCMediaDeviceMirrorHorizontal = 1, JCMediaDeviceMirrorVertical = 2, JCMediaDeviceMirrorAuto = 3,
  JCMediaDeviceMirrorFromLeft = 4, JCMediaDeviceMirrorFromTop = 8
}
 

详细描述

用于管理媒体设备

枚举类型说明

◆ JCMediaDeviceCameraType

enum JCMediaDeviceCameraType : NSInteger

摄像头类型

枚举值
JCMediaDeviceCameraTypeNone 

未获取到摄像头

JCMediaDeviceCameraTypeFront 

前置摄像头

JCMediaDeviceCameraTypeBack 

后置摄像头

JCMediaDeviceCameraTypeUnknown 

未知摄像头

◆ JCMediaDeviceMirror

enum JCMediaDeviceMirror : NSInteger

镜像类型

枚举值
JCMediaDeviceMirrorNone 

不镜像

JCMediaDeviceMirrorHorizontal 

水平方向镜像

JCMediaDeviceMirrorVertical 

竖直方向镜像

JCMediaDeviceMirrorAuto 

自动选择

JCMediaDeviceMirrorFromLeft 

转场动画,从左侧翻转

JCMediaDeviceMirrorFromTop 

转场动画,从上侧翻转

◆ JCMediaDeviceRender

enum JCMediaDeviceRender : NSInteger

渲染模式

枚举值
JCMediaDeviceRenderFullScreen 

铺满窗口,会有裁剪

JCMediaDeviceRenderFullContent 

全图像显示,会有黑边

JCMediaDeviceRenderFullAuto 

自适应

◆ JCMediaDeviceRotateAngle

enum JCMediaDeviceRotateAngle : NSInteger

窗口与屏幕角度

枚举值
JCMediaDeviceRotateAngle0 

窗口与屏幕角度 0°

JCMediaDeviceRotateAngle90 

窗口与屏幕角度 90°

JCMediaDeviceRotateAngle180 

窗口与屏幕角度 180°

JCMediaDeviceRotateAngle270 

窗口与屏幕角度 270°

◆ JCMediaDeviceVideoAngel

enum JCMediaDeviceVideoAngel : NSInteger

视频旋转角度

枚举值
JCMediaDeviceVideoAngelAuto 

自动

JCMediaDeviceVideoAngel0 

JCMediaDeviceVideoAngel90 

90°

JCMediaDeviceVideoAngel180 

180°

JCMediaDeviceVideoAngel270 

270°

◆ JCMediaDeviceVideoPixelFormat

视频像素格式

枚举值
JCMediaDeviceVideoPixelFormatI420 

I420

JCMediaDeviceVideoPixelFormatIYUV 

IYUV

JCMediaDeviceVideoPixelFormatRGB24 

RGB24

JCMediaDeviceVideoPixelFormatABGR 

ABGR

JCMediaDeviceVideoPixelFormatARGB 

ARGB

JCMediaDeviceVideoPixelFormatARGB444 

ARGB444

JCMediaDeviceVideoPixelFormatRGB565 

RGB565

JCMediaDeviceVideoPixelFormatARGB1555 

ARGB1555

JCMediaDeviceVideoPixelFormatYUY2 

YUY2

JCMediaDeviceVideoPixelFormatYV12 

YV12

JCMediaDeviceVideoPixelFormatUYVY 

UYVY

JCMediaDeviceVideoPixelFormatMJPG 

MJPG

JCMediaDeviceVideoPixelFormatNV21 

NV21

JCMediaDeviceVideoPixelFormatNV12 

NV12

JCMediaDeviceVideoPixelFormatBGRA 

BGRA

◆ JCMediaDeviceVideoSource

enum JCMediaDeviceVideoSource : NSInteger

视频源类型

枚举值
JCMediaDeviceVideoSourcePeer 

用户

JCMediaDeviceVideoSourceCapture 

采集设备

JCMediaDeviceVideoSourceFile 

文件

最后更新时间: 2021/1/27上午10:43:31