FMIceLinkMediaRecorder Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | TBuffer TFormat __covariant |
| Declared in | FMIceLinkMediaRecorder.h FMIceLinkMediaRecorder.m |
– close
Updates the header and closes the [file](#//api/name/file).
- (void)closeDiscussion
Updates the header and closes the [file](#//api/name/file).
Declared In
FMIceLinkMediaRecorder.h
– doUpdateHeader
Updates the [file](#//api/name/file) header.
- (void)doUpdateHeaderDiscussion
Updates the [file](#//api/name/file) header.
Declared In
FMIceLinkMediaRecorder.h
– doWriteHeader
Writes the [file](#//api/name/file) header.
- (void)doWriteHeaderDiscussion
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)presentationTimestampParameters
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 *)fileDiscussion
Gets the file.
Declared In
FMIceLinkMediaRecorder.h
– fileStream
Gets the recorder stream.
- (FMIceLinkFileAssistant *)fileStreamDiscussion
Gets the recorder stream.
Declared In
FMIceLinkMediaRecorder.h
– format
Gets the format.
- (FMIceLinkMediaFormat *)formatDiscussion
Gets the format.
Declared In
FMIceLinkMediaRecorder.h
– initWithPath:
Initializes a new instance of the FMIceLinkMediaRecorder`2 class.
- (instancetype)initWithPath:(NSString *)pathParameters
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 *)pathParameters
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)openDiscussion
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)openedDiscussion
Gets whether the recorder has been opened or not.
Declared In
FMIceLinkMediaRecorder.h
– path
Gets the path.
- (NSString *)pathDiscussion
Gets the path.
Declared In
FMIceLinkMediaRecorder.h
– setFile:
Sets the [file](#//api/name/file).
- (void)setFile:(FMIceLinkFileStream *)valueDiscussion
Sets the [file](#//api/name/file).
Declared In
FMIceLinkMediaRecorder.h
– setFileStream:
Sets the recorder stream.
- (void)setFileStream:(FMIceLinkFileAssistant *)valueDiscussion
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)valueDiscussion
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)wasOpenedDiscussion
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)presentationTimestampParameters
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