类 | |
class | JCMediaDeviceCamera |
class | JCMediaDeviceAudio |
class | JCMediaDeviceWindow |
class | JCMediaDeviceAudioParam |
class | JCMediaDevice |
class | JCMediaDeviceCallback |
class | JCAudioFrameCallback |
class | JCVideoFrameCallback |
class | JCMediaDeviceVideoCanvas |
枚举 | |
enum | JCMediaDeviceRenderMode { JCMediaDeviceRenderModeFullScreen , JCMediaDeviceRenderModeFullContent , JCMediaDeviceRenderModeFullAuto } |
enum | JCMediaDeviceVideoPixelFormat { I420 = 1 , IYUV = 2 , RGB24 = 3 , ABGR = 4 , ARGB = 5 , ARGB4444 = 6 , RGB565 = 7 , ARGB1555 = 8 , YUY2 = 9 , YV12 = 10 , UYVY = 11 , MJPG = 12 , NV21 = 13 , NV12 = 14 , BGRA = 15 } |
enum | JCMediaDeviceVideoCanvasRoatate { Angle0 = 0 , Angle90 = 90 , Angle180 = 180 , Angle270 = 270 } |
enum | JCMediaDeviceVideoType { JCMediaDeviceVideoTypePeer = 0 , JCMediaDeviceVideoTypeCapture = 1 , JCMediaDeviceVideoTypeFile = 2 } |
enum | JCMediaDeviceVideoMirror { JCMediaDeviceVideoMirrorNone = 0 , JCMediaDeviceVideoMirrorHorizontal = 1 , JCMediaDeviceVideoMirrorVertical = 2 , JCMeidaDeviceVideoMirrorAuto = 3 , JCMediaDeviceVideoMirrorFlipFromLeft = 4 , JCMediaDeviceVideoMirrorFlipFromTop = 8 } |
enum | JCMediaDeviceAudioAGCType { JCMediaDeviceAudioAGCTypeOn , JCMediaDeviceAudioAGCTypeOff , JCMediaDeviceAudioAGCTypeAuto } |
函数 | |
JCSDK_API JCMediaDevice * | createJCMediaDevice (JCClient *client, JCMediaDeviceCallback *callback) |
JCSDK_API void | destroyJCMediaDevice () |
详细描述
用于管理摄像头、扬声器等设备
枚举类型说明
◆ JCMediaDeviceAudioAGCType
◆ JCMediaDeviceRenderMode
◆ JCMediaDeviceVideoCanvasRoatate
◆ JCMediaDeviceVideoMirror
◆ JCMediaDeviceVideoPixelFormat
◆ JCMediaDeviceVideoType
函数说明
◆ createJCMediaDevice()
JCSDK_API JCMediaDevice * createJCMediaDevice | ( | JCClient * | client, |
JCMediaDeviceCallback * | callback | ||
) |
创建 JCMediaDevice 对象
JCMediaDevice 的所有接口函数,如无特殊说明,都建议在主线程调用
- 注解
- 调用此方法创建 JCMediaDevice 对象后,期间没有调用过 destroyJCMediaDevice 方法销毁对象,然后又重复调用此方法,会直接返回第一次创建的 JCMediaDevice 对象
- 调用此方法前确保 JCClient 已完成初始化,即 getState 方法获取的状态值不等于 JCClientReasonSDKNotInit
- 参数
-
client JCClient 对象 callback JCMediaDeviceCallback 对象,用于回调相关通知
- 返回
- JCMediaDevice 对象
- 异常
-
JCClient、JCMediaDeviceCallback 任意一个参数传空就会出现调用异常
◆ destroyJCMediaDevice()
JCSDK_API void destroyJCMediaDevice | ( | ) |
销毁 JCMediaDevice 对象