# startRecord

@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
open fun startRecord(@NonNull path: String, @Nullable listener: RecordController.Listener)

Starts recording a MP4 video.

#### Parameters

path

Where file will be saved.

#### Throws

IOException

If initialized before a stream.

@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
open fun startRecord(@NonNull path: String)
@RequiresApi(api = Build.VERSION_CODES.O)
open fun startRecord(@NonNull fd: FileDescriptor)

@RequiresApi(api = Build.VERSION_CODES.O)
open fun startRecord(@NonNull fd: FileDescriptor, @Nullable listener: RecordController.Listener)

Starts recording a MP4 video.

#### Parameters

fd

Where the file will be saved.

#### Throws

IOException

If initialized before a stream.