Show Menu
TOPICS×

API 1.x에서 2.x로 전환

필수 추적* API:

 VHL 1.x 
VHL 2.x
videoPlayerPlugin.trackVideoLoad()
해당 없음
videoPlayerPlugin.trackSessionStart()
videoPlayerPlugin.trackPlay()
videoPlayerPlugin.trackPause()
videoPlayerPlugin.trackComplete()
videoPlayerPlugin.trackVideoUnload()
videoPlayerPlugin.trackApplicationError()
해당 없음
videoPlayerPlugin.trackVideoPlayerError()
이제 광고, 챕터, 비트율 변경, 찾기 및 버퍼링과 같은 선택적 추적 API는 모두 단일
trackEvent
API의 일부입니다. trackEvent API는 추적하려는 이벤트 유형을 나타내는 상수 매개 변수를 수신합니다.

선택적 trackEvent API:

VHL 1.x
VHL 2.x
VideoPlayerPlugin.getAdBreakInfo()
에 올바른
AdBreakInfo
반환
trackEvent(Event.AdBreakStart)
VideoPlayerPlugin.getAdBreakInfo()
에 null 반환
trackEvent(Event.AdBreakComplete)
playerPlugin.trackAdStart()
trackEvent(Event.AdStart, adObject, adCustomMetadata)
playerPlugin.trackAdComplete()
trackEvent(Event.AdComplete)
VideoPlayerPlugin.getAdInfo()
에 null 반환
trackEvent(Event.AdSkip)
playerPlugin.trackChapterStart()
trackEvent(Event.ChapterStart, chapterObject, chapterCustomMetadata)
playerPlugin.trackChapterComplete()
trackEvent(Event.ChapterComplete)
VideoPlayerPlugin.getChapterInfo()
에 null 반환
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)