Class: shaka.ads.AdsStats

Constructor

new AdsStats()

Source:

Members

errors_ :number

Type:
  • number
Source:

loadTimes_ :Array.<number>

Type:
  • Array.<number>
Source:

playedCompletely_ :number

Type:
  • number
Source:

skipped_ :number

Type:
  • number
Source:

started_ :number

Type:
  • number
Source:

Methods

addLoadTime(seconds)

Record the time it took to get the final manifest.
Parameters:
Name Type Description
seconds number
Source:

getAverageLoadTime_() → {number}

Source:
Returns:
Type
number

getBlob() → {shaka.extern.AdsStats}

Create a stats blob that we can pass up to the app. This blob will not reference any internal data.
Source:
Returns:
Type
shaka.extern.AdsStats

incrementErrors()

Increase the number of ads with error by one.
Source:

incrementPlayedCompletely()

Increase the number of ads played completely by one.
Source:

incrementSkipped()

Increase the number of ads skipped by one.
Source:

incrementStarted()

Increase the number of ads started by one.
Source: