代码拉取完成,页面将自动刷新
Use the camera module APIs to generate and play video streams.
For details, see Available APIs.
None
Perform step 1 through step 4 described in Photographing Development.
Set the preview area.
Surface *surface = Surface::CreateSurface();
/* Set the display area. */
surface->SetUserData("region_position_x", "480"); // X-coordinate of the upper left corner of the rectangle.
surface->SetUserData("region_position_y", "270"); // Y-coordinate of the upper left corner of the rectangle.
surface->SetUserData("region_width", "960"); // Width.
surface->SetUserData("region_height", "540"); // Height.
fc->AddSurface(*surface);
Start and stop previewing.
stateCallback->camera_->TriggerLoopingCapture(*fc); // Start previewing.
stateCallback->camera_->StopLoopingCapture(); // Stop previewing.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。