API legacy — Conversione da 1.x a 2.x

Riferimenti API 2.x di SDK Media

API Track* richieste:

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()

Tutte le API di tracciamento facoltative, come (Annunci, Capitoli, Modifica bitrate, Ricerca e Buffering) ora fanno parte di una singola API trackEvent. L’API trackEvent riceve un parametro costante che rappresenta il tipo di evento di cui si intende tenere traccia:

API trackEvent opzionali:

VHL 1.x VHL 2.x
Restituisce un valore valido AdBreakInfo in VideoPlayerPlugin.getAdBreakInfo() trackEvent(Event.AdBreakStart)
Restituisce valore nullo in VideoPlayerPlugin.getAdBreakInfo() trackEvent(Event.AdBreakComplete)
playerPlugin.trackAdStart() trackEvent(Event.AdStart, adObject, adCustomMetadata)
playerPlugin.trackAdComplete() trackEvent(Event.AdComplete)
Restituisce valore nullo in VideoPlayerPlugin.getAdInfo() trackEvent(Event.AdSkip)
playerPlugin.trackChapterStart() trackEvent(Event.ChapterStart, chapterObject, chapterCustomMetadata)
playerPlugin.trackChapterComplete() trackEvent(Event.ChapterComplete)
Restituisce valore nullo in 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)

In questa pagina