ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## **打开本地摄像头** //anychatSDK is the instance of sdk List<AnyChatCamera> cameras = anychatSDK.getCameras();//获取本地摄像头对象列表 AnyChatCamera camera = cameras.get(0);//选择摄像头对象 cameras.open(int userId, Component component, int lef, int top, int right, int bottom) #### 接口说明 打开本地摄像头(anychatSDK为封装的主类的实例化对象) #### 接口返回值 无 #### 接口参数简介 | 名称 |类型 |说明 |是否必须 | | --- | --- | --- | --- | | userId | int | 用户id | 是 | | component | Component | 视频显示的控件 | 是 | | lef |int | component距离左边的位置 | 是 | | top |int | component距离上面的位置 | 是 | | right |int | component距离右边的位置 | 是 | | bottom |int | component距离下面的位置 | 是 |