• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Video Recording<a name="EN-US_TOPIC_0000001055234528"></a>
2
3## When to Use<a name="en-us_topic_0000001051451869_section186634310418"></a>
4
5Use the camera module APIs to capture video streams.
6
7## Available APIs<a name="en-us_topic_0000001051451869_section125479541744"></a>
8
9For details, see the available APIs described in development guidelines on photographing.
10
11## Limitations and Constraints<a name="en-us_topic_0000001051451869_section1165911177314"></a>
12
13None
14
15## How to Develop<a name="en-us_topic_0000001051451869_section1196016315516"></a>
16
171.  Perform step 1 through step 4 described in development guidelines on photographing.
182.  Obtain the  **FrameConfig**  instance for audio recording.
19
20    ```
21    /* Obtain the surface from the recorder. */
22    Surface *surface = recorder_->GetSurface(0);
23    surface->SetWidthAndHeight(1920, 1080);
24    surface->SetQueueSize(3);
25    surface->SetSize(1024 * 1024);
26    /* Add the surface to the FrameConfig instance. */
27    FrameConfig *fc = new FrameConfig(FRAME_CONFIG_RECORD);
28    fc->AddSurface(*surface);
29    ```
30
313.  Start and stop video recording.
32
33    ```
34    stateCallback->camera_->TriggerLoopingCapture(*fc); // Start recording.
35    stateCallback->camera_->StopLoopingCapture(); // Stop recording.
36    ```
37
38
39