AmpNielsenDCRManager
open class AmpNielsenDCRManager: NSObject, PlayerEventObserver, NielsenAppApiDelegate, AmpAdObserver
Class in charge of manage the Nielsen DCR integration.
-
The native player.
Declaration
Swift
open let ampPlayer: AmpPlayer?
-
Initializes a new AmpNielsenDCRManager with the parameters provided.
Declaration
Swift
public init(appInfo: [String:AnyObject])
Parameters
appInfo
Dictionary with the Nielsen init info: appid, appversion, appname, sfcode
-
Initializes a new AmpNielsenDCRManager with the parameters provided.
Declaration
Swift
public init(player: AmpPlayer, appInfo: [String:AnyObject])
Parameters
player
The player where the plugins is activated
appInfo
Dictionary with the Nielsen init info: appid, appversion, appname, sfcode
-
Initializes a new AmpNielsenDCRManager with the parameters provided. The configuration is loaded from a config file in the player.
Declaration
Swift
public init(player: AmpPlayer)
Parameters
player
The player where the plugins is activated
-
Get the URL of the web page that is used for giving user a chance to opt out from the Nielsen measurements..
Declaration
Swift
open func getOptOutURL() -> String?
-
Registers an observer to be notified of plugin events.
Declaration
Swift
open func registerObserver(_ observer: AmpNielsenDCRObserver) -> Int
Parameters
observer
The observer to be registered.
Return Value
The id of the registered observer.
-
Set the player info
Declaration
Swift
open func setPlayerInfo(_ playerInfo:[String:AnyObject])
Parameters
playerInfo
Dictionary with the Nielsen Player Info: channelName, adModel, dataSrc.
-
Load the Player Metadata
Declaration
Swift
open func loadMetaData(_ metaData:[String:AnyObject])
Parameters
metadata
Dictionary with the Nielsen Player Metadata: type, content, assetid, tv, program, title, category, length.