A recorder. More...
Instance Methods | |
| (void) | - doUpdateHeader | 
| Updates the file header.  More... | |
| (void) | - doWriteHeader | 
| Writes the file header.  More... | |
| (bool) | - doWriteWithBuffer:presentationTimestamp: | 
| Write an encoded video frame.  More... | |
| (FMLiveSwitchFileStream *) | - file | 
| Gets the file.  More... | |
| (FMLiveSwitchFileAssistant *) | - fileStream | 
| Gets the recorder stream.  More... | |
| (TFormat) | - format | 
| Gets the format.  More... | |
| (instancetype) | - initWithPath: | 
| Initializes a new instance of the FMLiveSwitchMediaRecorder`2 class.  More... | |
| (void) | - open | 
| Opens the file and writes the initial header.  More... | |
| (bool) | - opened | 
| Gets whether the recorder has been opened or not.  More... | |
| (NSString *) | - openPath | 
| Gets the currently open path.  More... | |
| (NSString *) | - path | 
| Gets the path.  More... | |
| (void) | - setFile: | 
| Sets the file.  More... | |
| (void) | - setFileStream: | 
| Sets the recorder stream.  More... | |
| (void) | - setWasOpened: | 
| Sets a value indicating whether the file was opened.  More... | |
| (bool) | - wasOpened | 
| Gets a value indicating whether the file was opened.  More... | |
| (bool) | - writeWithBuffer:presentationTimestamp: | 
| Write an encoded video frame using the width and height parameters from the first keyframe.  More... | |
Class Methods | |
| (FMLiveSwitchMediaRecorder *) | + mediaRecorderWithPath: | 
| Initializes a new instance of the FMLiveSwitchMediaRecorder`2 class.  More... | |
Protected Attributes | |
| __pad0__: NSObject- (void) close | |
A recorder.
| - (void) doUpdateHeader | 
Updates the file header.
Implemented in FMLiveSwitchYuv4MpegVideoRecorder, FMLiveSwitchWaveAudioRecorder, FMLiveSwitchOggAudioRecorder, FMLiveSwitchMatroskaVideoRecorder, FMLiveSwitchMatroskaAudioRecorder, and FMLiveSwitchIvfVideoRecorder.
| - (void) doWriteHeader | 
Writes the file header.
Implemented in FMLiveSwitchYuv4MpegVideoRecorder, FMLiveSwitchWaveAudioRecorder, FMLiveSwitchOggAudioRecorder, FMLiveSwitchMatroskaVideoRecorder, FMLiveSwitchMatroskaAudioRecorder, and FMLiveSwitchIvfVideoRecorder.
| - (bool) doWriteWithBuffer: | (TBuffer) | buffer | |
| presentationTimestamp: | (long long) | presentationTimestamp | |
Write an encoded video frame.
| buffer | The encoded buffer. | 
| presentationTimestamp | The presentation timestamp. | 
true if the encoded frame was written successfully; otherwise, false | - (FMLiveSwitchFileStream*) file | 
Gets the file.
| - (FMLiveSwitchFileAssistant*) fileStream | 
Gets the recorder stream.
| - (TFormat) format | 
Gets the format.
| - (instancetype) initWithPath: | (NSString *) | path | 
Initializes a new instance of the FMLiveSwitchMediaRecorder`2 class.
| path | The path. | 
Implemented in FMLiveSwitchYuv4MpegVideoRecorder, FMLiveSwitchVideoRecorder, FMLiveSwitchIvfVideoRecorder, and FMLiveSwitchAudioRecorder.
| + (FMLiveSwitchMediaRecorder*) mediaRecorderWithPath: | (NSString *) | path | 
Initializes a new instance of the FMLiveSwitchMediaRecorder`2 class.
| path | The path. | 
| - (void) open | 
Opens the file and writes the initial header.
| - (bool) opened | 
Gets whether the recorder has been opened or not.
| - (NSString*) openPath | 
Gets the currently open path.
| - (NSString*) path | 
Gets the path.
| - (void) setFile: | (FMLiveSwitchFileStream *) | value | 
Sets the file.
| - (void) setFileStream: | (FMLiveSwitchFileAssistant *) | value | 
Sets the recorder stream.
| - (void) setWasOpened: | (bool) | value | 
Sets a value indicating whether the file was opened.
| - (bool) wasOpened | 
Gets a value indicating whether the file was opened.
| - (bool) writeWithBuffer: | (TBuffer) | buffer | |
| presentationTimestamp: | (long long) | 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.
| buffer | The encoded buffer. | 
| presentationTimestamp | The presentation timestamp. | 
true if the encoded frame was written successfully; otherwise, false 
      
  | 
  protected |