Global Variables

The following global variables are available globally.

  • Posted when a MobilePlayerViewController encounters an error loading or playing a media file. The userInfo dictionary of this notification contains the MobilePlayerErrorUserInfoKey key, which indicates the error that was encountered.

    Declaration

    Swift

    public let MobilePlayerDidEncounterErrorNotification = "MobilePlayerDidEncounterError"
  • The value of this key is an NSError containing the error encountered while trying to load or play a media file.

    Declaration

    Swift

    public let MobilePlayerErrorUserInfoKey = "error"
  • Posted when a MobilePlayerViewController changes state. There is no userInfo dictionary.

    Declaration

    Swift

    public let MobilePlayerStateDidChangeNotification = "MobilePlayerStateDidChange"