Class Recorder
Object used to record the audio or video of a call.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class Recorder : LinphoneObject
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
Retrieve the RecorderParams object.
Declaration
public RecorderParams Params { get; set; }
Property Value
Type | Description |
---|---|
RecorderParams | The RecorderParams object. |
State
Gets the current state of the recorder.
Declaration
public RecorderState State { get; }
Property Value
Type | Description |
---|---|
RecorderState | the current RecorderState. |
Methods
Close()
Close the opened file.
Declaration
public void Close()
CreateContent()
Create a content from the recording, for example to send it in a chat message.
Declaration
public Content CreateContent()
Returns
Type | Description |
---|---|
Content | the Content matching the recording, or null. |
Remarks
Warning : Recorder must be in Closed state!
Open(String)
Open a file for recording.
Declaration
public void Open(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The path to the file to open. |
Pause()
Pause the recording.
Declaration
public void Pause()
Start()
Start the recording into the opened file.
Declaration
public void Start()