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

Referências da API do SDK do Media 2.x

APIs de rastreamento* obrigatórias:

VHL 1.x VHL 2.x
videoPlayerPlugin.trackVideoLoad() N/D
videoPlayerPlugin.trackSessionStart() mediaHeartbeat.trackSessionStart(mediaObject, mediaCustomMetadata)
videoPlayerPlugin.trackPlay() mediaHeartbeat.trackPlay()
videoPlayerPlugin.trackPause() mediaHeartbeat.trackPause()
videoPlayerPlugin.trackComplete() mediaHeartbeat.trackComplete()
videoPlayerPlugin.trackVideoUnload() mediaHeartbeat.trackSessionEnd()
videoPlayerPlugin.trackApplicationError() N/D
videoPlayerPlugin.trackVideoPlayerError() mediaHeartbeat.trackError()

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)

Nesta página

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now