You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatevar mediaContentComplete:Boolean=false//Updates to true triggered by logMediaContentEnd (or if 90% or 95% of the content played), 0 or false if complete milestone not reached or a forced quit.
96
-
privatevar mediaSessionSegmentTotal:Int=0//number incremented with each logSegmentStart
97
-
privatevar mediaTotalAdTimeSpent:Double=0.0//total second sum of ad break time spent
98
-
privateval mediaAdTimeSpentRate:Double
96
+
var mediaContentCompleteLimit:Int=100
97
+
private set
98
+
var mediaContentComplete:Boolean=false//Updates to true triggered by logMediaContentEnd (or if 90% or 95% of the content played), 0 or false if complete milestone not reached or a forced quit.
99
+
private set
100
+
var mediaSessionSegmentTotal:Int=0//number incremented with each logSegmentStart
101
+
private set
102
+
var mediaTotalAdTimeSpent:Double=0.0//total second sum of ad break time spent
103
+
private set
104
+
val mediaAdTimeSpentRate:Double
99
105
get() { //ad time spent / content time spent x 100
privatevar mediaSessionAdTotal:Int=0//number of ads played in the media session - increment on logAdStart
107
-
privatevar mediaSessionAdObjects:MutableList<String> =ArrayList() //array of unique identifiers for ads played in the media session - append ad_content_ID on logAdStart
108
-
109
-
privatevar currentPlaybackStartTimestamp:Long?=null//Timestamp for beginning of current playback
110
-
privatevar storedPlaybackTime:Double=0.0//On Pause calculate playback time and clear currentPlaybackTime
112
+
var mediaSessionAdTotal:Int=0//number of ads played in the media session - increment on logAdStart
113
+
private set
114
+
var mediaSessionAdObjects:MutableList<String> =ArrayList() //array of unique identifiers for ads played in the media session - append ad_content_ID on logAdStart
115
+
private set
116
+
var currentPlaybackStartTimestamp:Long?=null//Timestamp for beginning of current playback
117
+
private set
118
+
var storedPlaybackTime:Double=0.0//On Pause calculate playback time and clear currentPlaybackTime
119
+
private set
111
120
privatevar sessionSummarySent =false// Ensures we only send summary event once
112
121
113
122
privatevar testing =false// Enabled for test cases
0 commit comments