MediaPlayers

public class MediaPlayers : NSObject

Wrapper class to manage media players

  • Add a new Media Player

    Declaration

    Swift

    @objc
    public func add() -> MediaPlayer

    Return Value

    the new MediaPlayer instance

  • Add a new Media Player

    Declaration

    Swift

    @objc
    public func add(_ playerId: Int) -> MediaPlayer

    Parameters

    playerId

    the player identifier

    Return Value

    the new MediaPlayer instance

  • Remove a MediaPlayer by ID

    Declaration

    Swift

    @objc
    public func remove(_ playerId: Int)

    Parameters

    playerId

    the player identifier

  • Remove all MediaPlayer and stop every players

    Declaration

    Swift

    @objc
    public func removeAll()