Class: shaka.ads.AdsStats

Constructor

new AdsStats()

Source:

Members

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:

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

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: