Conversione API da 1.x a 2.x

Riferimenti API Media SDK 2.x

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