RichMedia

public class RichMedia : BusinessObject

Abstract class to manage rich media tracking

  • Rich media broadcast type

    • clip: clip
    • live: live
    See more

    Declaration

    Swift

    public enum BroadcastMode: String
  • Actions types

    • play: play
    • pause: pause
    • stop: stop
    • move: move
    • refresh: refresh
    See more

    Declaration

    Swift

    @objc public enum RichMediaAction: Int
  • true if media is buffering

    Declaration

    Swift

    open var isBuffering: Bool = false
  • true if media is embedded in app

    Declaration

    Swift

    open var isEmbedded: Bool = false
  • Media name

    Declaration

    Swift

    @objc public var name: String = ""
  • First chapter

    Declaration

    Swift

    @objc public var chapter1: String?
  • Second chapter

    Declaration

    Swift

    @objc public var chapter2: String?
  • Third chapter

    Declaration

    Swift

    @objc public var chapter3: String?
  • Level 2

    Declaration

    Swift

    @objc public var level2: Int = 0
  • Action. see RichMediaAction

    Declaration

    Swift

    @objc public var action: RichMediaAction = RichMediaAction.play
  • Web domain

    Declaration

    Swift

    @objc public var webdomain: String?
  • Send a play action tracking. Refresh is enabled with default duration

    Declaration

    Swift

    @objc public func sendPlay()
  • Send a play action tracking. Refresh is enabled with custom duration

    Declaration

    Swift

    @objc public func sendPlay(_ refreshDuration: Int)
  • Send a pause action tracking

    Declaration

    Swift

    @objc public func sendPause()
  • Send a stop action tracking

    Declaration

    Swift

    @objc public func sendStop()
  • Send a move action tracking

    Declaration

    Swift

    @objc public func sendMove()