Last Updated on : 2025-01-02 10:22:08download
Create an IThingSmartCameraP2P
object and use isSupportVideoSegmentation
to determine whether the video stream can be split. If video splitting is supported, the SDK will split the video stream according to the configuration protocol and render the video stream. Otherwise, standard live streaming is displayed.
IThingSmartCameraP2P
object management, and avoid frequently calling methods in IThingSmartCameraP2P
across threads to prevent deadlocks.IThingSmartCameraP2P createCameraP2P(String devId);
ThingVideoSplitInfo getCameraVideoSegmentationModel();
boolean isSupportVideoSegmentation();
// Bind with a video rendering view
void generateCameraView(T view);
void connect(String devId, OperationDelegateCallBack callBack);
// Start live streaming
void startPreview(int definition, OperationDelegateCallBack callBack);
// Stop live streaming
void stopPreview(OperationDelegateCallBack callBack);
// Proactively disconnect
void disconnect(OperationDelegateCallBack callBack);
You can refer to the complete process in the SDK sample.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback