Class Player
Player interface.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class Player : LinphoneObject
Properties
Core
Returns the Core object managing this player's call, if any.
Declaration
public Core Core { get; }
Property Value
Type | Description |
---|---|
Core | the Core object associated |
CurrentCallbacks
Returns the current LinphonePlayerCbsCbs object.
Declaration
public PlayerListener CurrentCallbacks { get; }
Property Value
Type | Description |
---|---|
PlayerListener | The current LinphonePlayerCbs object |
CurrentPosition
Get the current position in the opened file.
Declaration
public int CurrentPosition { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The current position in the opened file |
Duration
Get the duration of the opened file.
Declaration
public int Duration { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The duration of the opened file |
IsVideoAvailable
Returns whether the file has video and if it can be displayed.
Declaration
public bool IsVideoAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if file has video and it can be displayed, false otherwise |
Listener
Declaration
public PlayerListener Listener { get; }
Property Value
Type | Description |
---|---|
PlayerListener |
State
Get the current state of a player.
Declaration
public PlayerState State { get; }
Property Value
Type | Description |
---|---|
PlayerState | The current PlayerState of the player. |
WindowId
Sets a window id to be used to display video if any.
Declaration
public IntPtr WindowId { set; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Methods
Close()
Close the opened file.
Declaration
public void Close()
Finalize()
Declaration
protected void Finalize()
Open(String)
Open a file for playing.
Declaration
public void Open(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The path to the file to open |
Pause()
Pause the playing of a file.
Declaration
public void Pause()
Seek(Int32)
Seek in an opened file.
Declaration
public void Seek(int timeMs)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeMs | The time we want to go to in the file (in milliseconds). |
Start()
Start playing a file that has been opened with
Declaration
public void Start()