FMIceLinkMediaRecorder Class Reference

Inherits from NSObject
Conforms to TBuffer
TFormat
__covariant
Declared in FMIceLinkMediaRecorder.h
FMIceLinkMediaRecorder.m

Overview

A recorder.

– close

Updates the header and closes the [file](#//api/name/file).
- (void)close

Discussion

Updates the header and closes the [file](#//api/name/file).

Declared In

FMIceLinkMediaRecorder.h

– doUpdateHeader

Updates the [file](#//api/name/file) header.
- (void)doUpdateHeader

Discussion

Updates the [file](#//api/name/file) header.

Declared In

FMIceLinkMediaRecorder.h

– doWriteHeader

Writes the [file](#//api/name/file) header.
- (void)doWriteHeader

Discussion

Writes the [file](#//api/name/file) header.

Declared In

FMIceLinkMediaRecorder.h

– doWriteWithBuffer:presentationTimestamp:

Write an encoded video frame.
- (bool)doWriteWithBuffer:(FMIceLinkMediaBuffer *)buffer presentationTimestamp:(long long)presentationTimestamp

Parameters

buffer

The encoded buffer.

presentationTimestamp

The presentation timestamp.

Return Value

true if the encoded frame was written successfully; otherwise, false

Discussion

Write an encoded video frame.

Declared In

FMIceLinkMediaRecorder.h

– file

Gets the file.
- (FMIceLinkFileStream *)file

Discussion

Gets the file.

Declared In

FMIceLinkMediaRecorder.h

– fileStream

Gets the recorder stream.
- (FMIceLinkFileAssistant *)fileStream

Discussion

Gets the recorder stream.

Declared In

FMIceLinkMediaRecorder.h

– format

Gets the format.
- (FMIceLinkMediaFormat *)format

Discussion

Gets the format.

Declared In

FMIceLinkMediaRecorder.h

– initWithPath:

Initializes a new instance of the FMIceLinkMediaRecorder`2 class.
- (instancetype)initWithPath:(NSString *)path

Parameters

path

The path.

Discussion

Initializes a new instance of the FMIceLinkMediaRecorder`2 class.

Declared In

FMIceLinkMediaRecorder.h

+ mediaRecorderWithPath:

Initializes a new instance of the FMIceLinkMediaRecorder`2 class.
+ (FMIceLinkMediaRecorder *)mediaRecorderWithPath:(NSString *)path

Parameters

path

The path.

Discussion

Initializes a new instance of the FMIceLinkMediaRecorder`2 class.

Declared In

FMIceLinkMediaRecorder.h

– open

Opens the [file](#//api/name/file) and writes the initial header.
- (void)open

Discussion

Opens the [file](#//api/name/file) and writes the initial header.

Declared In

FMIceLinkMediaRecorder.h

– opened

Gets whether the recorder has been opened or not.
- (bool)opened

Discussion

Gets whether the recorder has been opened or not.

Declared In

FMIceLinkMediaRecorder.h

– path

Gets the path.
- (NSString *)path

Discussion

Gets the path.

Declared In

FMIceLinkMediaRecorder.h

– setFile:

Sets the [file](#//api/name/file).
- (void)setFile:(FMIceLinkFileStream *)value

Discussion

Sets the [file](#//api/name/file).

Declared In

FMIceLinkMediaRecorder.h

– setFileStream:

Sets the recorder stream.
- (void)setFileStream:(FMIceLinkFileAssistant *)value

Discussion

Sets the recorder stream.

Declared In

FMIceLinkMediaRecorder.h

– setWasOpened:

Sets a value indicating whether the [file](#//api/name/file) was [opened](#//api/name/opened).
- (void)setWasOpened:(bool)value

Discussion

Sets a value indicating whether the [file](#//api/name/file) was [opened](#//api/name/opened).

Declared In

FMIceLinkMediaRecorder.h

– wasOpened

Gets a value indicating whether the [file](#//api/name/file) was [opened](#//api/name/opened).
- (bool)wasOpened

Discussion

Gets a value indicating whether the [file](#//api/name/file) was [opened](#//api/name/opened).

Declared In

FMIceLinkMediaRecorder.h

– writeWithBuffer:presentationTimestamp:

Write an encoded video frame using the width and height parameters from the first keyframe. This method will discard non-keyframes until the first keyframe arrives.
- (bool)writeWithBuffer:(FMIceLinkMediaBuffer *)buffer presentationTimestamp:(long long)presentationTimestamp

Parameters

buffer

The encoded buffer.

presentationTimestamp

The presentation timestamp.

Return Value

true if the encoded frame was written successfully; otherwise, false

Discussion

Write an encoded video frame using the width and height parameters from the first keyframe. This method will discard non-keyframes until the first keyframe arrives.

Declared In

FMIceLinkMediaRecorder.h