1# Video Recording Development 2 3 4## When to Use 5 6Use the camera module APIs to capture video streams. 7 8 9## Available APIs 10 11For details, see [Available APIs](subsys-multimedia-camera-photo-guide.md#available-apis). 12 13 14## Constraints 15 16None 17 18 19## How to Develop 20 211. Perform step 1 through step 4 described in [Photographing Development](subsys-multimedia-camera-photo-guide.md). 22 232. Obtain the **FrameConfig** instance for video recording. 24 25 ``` 26 /* Obtain the surface from the recorder. */ 27 Surface *surface = recorder_->GetSurface(0); 28 surface->SetWidthAndHeight(1920, 1080); 29 surface->SetQueueSize(3); 30 surface->SetSize(1024 * 1024); 31 /* Add the surface to the FrameConfig instance. */ 32 FrameConfig *fc = new FrameConfig(FRAME_CONFIG_RECORD); 33 fc->AddSurface(*surface); 34 ``` 35 363. Start and stop video recording. 37 38 ``` 39 stateCallback->camera_->TriggerLoopingCapture(*fc); // Start recording. 40 stateCallback->camera_->StopLoopingCapture(); // Stop recording. 41 ``` 42