Show Menu
TOPICS×

Conversão da API 1.x para 2.x

APIs de rastreamento* obrigatórias:

 VHL 1.x 
VHL 2.x
videoPlayerPlugin.trackVideoLoad()
N/D
videoPlayerPlugin.trackSessionStart()
videoPlayerPlugin.trackPlay()
videoPlayerPlugin.trackPause()
videoPlayerPlugin.trackComplete()
videoPlayerPlugin.trackVideoUnload()
videoPlayerPlugin.trackApplicationError()
N/D
videoPlayerPlugin.trackVideoPlayerError()
Todas as APIs de rastreamento opcionais, como anúncios, capítulos, alteração na taxa de bits, busca e buffering, agora fazem parte de uma única API
trackEvent
. A API trackEvent recebe um parâmetro de constante que representa o tipo de evento que ela deve rastrear:

APIs trackEvent opcionais:

VHL 1.x
VHL 2.x
Retornar um
AdBreakInfo
válido em
VideoPlayerPlugin.getAdBreakInfo()
trackEvent(Event.AdBreakStart)
Retornar um valor nulo em
VideoPlayerPlugin.getAdBreakInfo()
trackEvent(Event.AdBreakComplete)
playerPlugin.trackAdStart()
trackEvent(Event.AdStart, adObject, adCustomMetadata)
playerPlugin.trackAdComplete()
trackEvent(Event.AdComplete)
Retornar um valor nulo em
VideoPlayerPlugin.getAdInfo()
trackEvent(Event.AdSkip)
playerPlugin.trackChapterStart()
trackEvent(Event.ChapterStart, chapterObject, chapterCustomMetadata)
playerPlugin.trackChapterComplete()
trackEvent(Event.ChapterComplete)
Retornar um valor nulo em
VideoPlayerPlugin.getChapterInfo()
trackEvent(Event.ChapterSkip)
playerPlugin.trackSeekStart()
trackEvent(Event.SeekStart)
playerPlugin.trackSeekComplete()
trackEvent(Event.SeekComplete)
playerPlugin.trackBufferStart()
trackEvent(Event.BufferStart)
playerPlugin.trackBufferComplete()
trackEvent(Event.BufferComplete)
playerPlugin.trackBitrateChange()
trackEvent(Event.BitrateChange)
playerPlugin.trackTimedMetadata()
trackEvent(Event.TimedMetadataUpdate)