Adaptive Media Player

AmpNielsenTV Docs

AmpNielsenObserver

@objc public protocol AmpNielsenObserver

Protocol used to receive Nielsen DCR Plugin events.

  • Callback called when Nielsen Api received a Event.

    Declaration

    Swift

    func eventOccurred(_ player:AmpPlayer, appId:String, eventOccurred:[NSObject: AnyObject])

    Parameters

    player

    The player where the plugins is activated

    appId

    String with the Nielsen App Id

    eventOccurred

    Dictionary with the event

  • Callback called when Nielsen Api received a Error.

    Declaration

    Swift

    func errorOccurred(_ player:AmpPlayer, appId:String, error:[NSObject: AnyObject])

    Parameters

    player

    The player where the plugins is activated

    appId

    String with the Nielsen App Id

    error

    Dictionary with the Error

  • Callback called when Nielsen Api received metadata.

    Declaration

    Swift

    func onReceiveMetaData(_ player:AmpPlayer, metaData:AVMetadataItem)

    Parameters

    player

    The player where the plugins is activated

    metaData

    Meta Data Array