PlayerPreferable

public protocol PlayerPreferable

Interface to provide load and playback preferences

  • Loads the player with the asset. The preferences passed in are set on the player once the player has been loaded.

    Declaration

    Swift

    func load(with preferences: [PlayerPreference])
  • API to set preferenes for player. If the preferences are set prior to player entering loaded state, these preferences would be considered as on load preferences and this would override any preference if any set via load(with preferences: Preference...) method. If Preferences are set during playback, they would be applied to the player immediately.

    Declaration

    Swift

    func set(preferences: [PlayerPreference])