MediaPlayers

public class MediaPlayers: NSObject

Wrapper class to manage media players

  • Add a new Media Player

    Declaration

    Swift

    @objc public func add() -> MediaPlayer
  • Add a new Media Player

    Declaration

    Swift

    @objc public func add(_ playerId: Int) -> MediaPlayer
  • Remove a MediaPlayer by ID

    Declaration

    Swift

    @objc public func remove(_ playerId: Int)
  • Remove all MediaPlayer and stop every players

    Declaration

    Swift

    @objc public func removeAll()