title: ContentMetrics
Interface: ContentMetrics
Playback metrics for the current content item. Updated continuously as playback progresses.
interface ContentMetrics { adAudibleTime: number; adNonaudibleTime: number; adNonviewableTime: number; adTotalTime: number; adViewableTime: number; contentAudibleTime: number; contentNonaudibleTime: number; contentNonviewableTime: number; contentTotalTime: number; contentViewableTime: number; timeToPlay: number | undefined; adActiveWhenUnmuted?: boolean; unmuteReason?: "document-click" | "tap-to-unmute";}
Properties
adAudibleTime
adAudibleTime:
number
Seconds ads were playing while audible for the current content item.
adNonaudibleTime
adNonaudibleTime:
number
Seconds ads were playing while not audible for the current content item.
adNonviewableTime
adNonviewableTime:
number
Seconds ads were playing while not viewable for the current content item.
adTotalTime
adTotalTime:
number
Total seconds ads were playing for the current content item.
adViewableTime
adViewableTime:
number
Seconds ads were playing while viewable for the current content item.
contentAudibleTime
contentAudibleTime:
number
Seconds content was playing while audible for the current content item.
contentNonaudibleTime
contentNonaudibleTime:
number
Seconds content was playing while not audible for the current content item.
contentNonviewableTime
contentNonviewableTime:
number
Seconds content was playing while not viewable for the current content item.
contentTotalTime
contentTotalTime:
number
Total seconds content was playing for the current content item.
contentViewableTime
contentViewableTime:
number
Seconds content was playing while viewable for the current content item.
timeToPlay
timeToPlay:
number|undefined
Time in ms from initiating playback to first Ad or Content Begin for the current content item.
adActiveWhenUnmuted?
optionaladActiveWhenUnmuted:boolean
Whether an ad was active when the user first unmuted. Only set if the player was unmuted.
unmuteReason?
optionalunmuteReason:"document-click"|"tap-to-unmute"
The reason the player was first unmuted. Only set if the player was unmuted.