OTVInsightAgent
public class OTVInsightAgent : NSObject
The OTVInsightAgent class is a wrapper for Insight Agent.
The class can be used to enable the reporting of playback metrics to the Insight servers.
-
Constructor for
OTVInsightAgentclass.@param xConfig The Insight Config details
Declaration
Swift
@objc public init(xConfig: OTVInsightConfig) -
Starts a session without user information. User Information can be set using API
setUserInfo@param xPlayer The player Instance @param xContentInfoHolder The Content Info Holder
Declaration
Swift
@objc public func startSession(xPlayer: OTVAVPlayer, xContentInfoHolder: ContentInfoHolder) -
Starts a session with user information.
@param xPlayer The player Instance @param xContentInfoHolder The Content Info Holder @param xUserInfoHolder The User Info Holder
Declaration
Swift
@objc public func startSession(xPlayer: OTVAVPlayer, xContentInfoHolder: ContentInfoHolder, xUserInfoHolder: UserInfoHolder?) -
Stop the session (if started)
Declaration
Swift
@objc public func stopSession() -
Terminates the session
Declaration
Swift
@objc public func terminate() -
Sets the live offset of the playback, as in when Seeking on Linear TV
@param xOffsetLive The offset from live point
Declaration
Swift
@objc public func setOffsetFromLive(xOffsetLive: Int) -
Sets the Audio Language (may change during the course of a session)
@param xAudioLanguage The audio language
Declaration
Swift
@objc public func setAudioLanguage(xAudioLanguage: String) -
Sets the Subtitle Language (may change during the course of a session)
@param xSubtitleLanguage The subtitle language
Declaration
Swift
@objc public func setSubtitleLanguage(xSubtitleLanguage: String) -
Sets the user info @param xUserInfoHolder The user Info Holder
Declaration
Swift
@objc public func setUserInfo(xUserInfoHolder: UserInfoHolder) -
Sets the named event.
@param xName The name of the event @param xDescription The description of the event
Declaration
Swift
@objc public func addNamedEvent(xName: String, xDescription: String)
OTVInsightAgent Class Reference