OTVInsightAgent
-
The
See moreOTVInsightAgent
class is a wrapper for Insight Agent. The class can be used to enable the reporting of playback metrics to the Insight servers.Declaration
Swift
public class OTVInsightAgent : NSObject
-
The OTVInsightConfig class defines the parameters required to report using the Insight Agent.
The configuration consists of:
- collectorURL - an URL to report to.
- deviceId - ID of the device reporting
- operatorId - Operator ID Token. Provided by Insight
- samplingInterval - Amount of seconds between each sample
- reportingInterval - Amount of seconds between each report submitted to the Insight API
- framedropsEnabled - indicates if framedrops reporting is enabled.
- deviceType - The type of Device
- appName - Name of the Video App
- appVersion - App Version
- screenWidth - Screen width in pixel
- screenHeight - Screen height in pixels
- screenDensity - Screen density ratio
- timezone - Timezone (i.e., Europe/Paris or UTC offset)
Declaration
Swift
public class OTVInsightConfig : NSObject
-
The ContentInfoHolder class contains the representation of the metadata for a single content item.
The metadata for one item consists of:
- contentId - a unique identifier for this content, used to fetch licence and encryption keys
- channelId - channel ID (mostly for live streams)
- channelName - channel name (mostly for live streams)
- eventId - the event identifier within the channel
- eventName - the event name
- uri - URI for accessing this asset
- type - a string containing more details about the content (e.g., codecs, tracks, etc.)
- contentName - the content name
- genre - a list content genres
- bitrates - an array of integers of available bitrates (in Kbps)
- duration - duration of content (ms)
Declaration
Swift
public class ContentInfoHolder : NSObject
-
The
UserInfoHolder
class contains the representation of the metadata for a user/subscriber.The metadata for one item consists of:
- userId - a unique identifier for this user
- accountId - a unique identifier of the account of the user
- fullName - the name and last name of the user
- gender - the gender of the user
- age - the age of the user
- ageRange - the age range of the user (i.e., 25-40)
- category - The category of the user (i.e., Junior)
- street - street component of the address
- city - city component of the address
- state - state component of the address
- postCode - postcode component of the address
- country - country component of the address
Declaration
Swift
public class UserInfoHolder : NSObject