PlayerProtocol

@objc
public protocol PlayerProtocol : NSObjectProtocol

Conforming this protocol allows Zapp Player plugin to support generic analytics system of Zapp App

  • DS raw atom entry format

    Declaration

    Swift

    @objc
    var entry: [String : Any]? { get }
  • Player instance that represents Player

    Declaration

    Swift

    @objc
    var playerObject: NSObject? { get }
  • Container where player was added

    Declaration

    Swift

    @objc
    var pluginPlayerContainer: UIView? { get }
  • UIViewController instance if player plugin is using it

    Declaration

    Swift

    @objc
    var pluginPlayerViewController: UIViewController? { get }
  • Pauses active player

    Declaration

    Swift

    @objc
    func pluggablePlayerPause()
  • Resume playing loaded item

    Declaration

    Swift

    @objc
    func pluggablePlayerResume()
  • Position of the video item that player is playing

    Declaration

    Swift

    @objc
    func playbackPosition() -> TimeInterval

    Return Value

    TimeInterval value

  • Duration of the video item that player is playing

    Declaration

    Swift

    @objc
    func playbackDuration() -> TimeInterval

    Return Value

    TimeInterval value