Class Recorder
Interface used to record audio and video into files.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class Recorder : LinphoneObject
Remarks
See :
Properties
CaptureVolume
Get linear volume when capturing audio.
Declaration
public float CaptureVolume { get; }
Property Value
Type | Description |
---|---|
System.Single | Linear volume. |
Duration
Gets the duration of the recording.
Declaration
public int Duration { get; }
Property Value
Type | Description |
---|---|
System.Int32 | the duration of the recording, in milliseconds. |
File
Gets the file used for recording.
Declaration
public string File { get; }
Property Value
Type | Description |
---|---|
System.String | the file used for the recording if any. |
Params
Retrieves the Linphone.RecorderParams object.
Declaration
public RecorderParams Params { get; set; }
Property Value
Type | Description |
---|---|
RecorderParams | The Linphone.RecorderParams object. |
State
Gets the current state of the recorder.
Declaration
public RecorderState State { get; }
Property Value
Type | Description |
---|---|
RecorderState | the current Linphone.RecorderState. |
Methods
Close()
Closes the opened file.
Declaration
public void Close()
CreateContent()
Create a Linphone.Content object from the recording, for example to send it within a Linphone.ChatMessage.
Declaration
public Content CreateContent()
Returns
Type | Description |
---|---|
Content | the Linphone.Content matching the recording, or null. |
Remarks
Warning : Recorder must be in Closed state!
Open(String)
Opens a file for recording.
If the file already exists, it will open in append mode, otherwise it is created.
Declaration
public void Open(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The path to the file to open. |
Pause()
Pauses the recording.
Declaration
public void Pause()
Start()
Starts the recording into the opened file.
Declaration
public void Start()