Player
public class Player : LinphoneObject
Player interface.
-
The state of a LinphonePlayer.
See moreDeclaration
Swift
public enum State : Int
-
Undocumented
Declaration
Swift
public func getDelegate() -> PlayerDelegate?
-
Undocumented
Declaration
Swift
public func addDelegate(delegate: PlayerDelegate)
-
Undocumented
Declaration
Swift
public func removeDelegate(delegate: PlayerDelegate)
-
Returns the current LinphonePlayerCbsCbs object.
Declaration
Swift
public var currentCallbacks: PlayerDelegate? { get }
Return Value
The current LinphonePlayerCbs object
-
Get the current position in the opened file.
Declaration
Swift
public var currentPosition: Int { get }
Return Value
The current position in the opened file
-
Get the duration of the opened file.
Declaration
Swift
public var duration: Int { get }
Return Value
The duration of the opened file
-
Get the current state of a player.
Declaration
Swift
public var state: Player.State { get }
Return Value
The current state of the player.
-
Close the opened file.
Declaration
Swift
public func close()
-
Open a file for playing.
Declaration
Swift
public func open(filename: String) throws
Parameters
filename
The path to the file to open
-
Pause the playing of a file.
Declaration
Swift
public func pause() throws
Return Value
0 on success, a negative value otherwise
-
Seek in an opened file.
Declaration
Swift
public func seek(timeMs: Int) throws
Parameters
timeMs
The time we want to go to in the file (in milliseconds).
Return Value
0 on success, a negative value otherwise.
-
Start playing a file that has been opened with open().
Declaration
Swift
public func start() throws
Return Value
0 on success, a negative value otherwise