JS SDK: trackSessionStart, heartbeat firing start events
stefanovualto opened this issue · 3 comments
in the sdk Version 2.1.0. Is it a normal behavior that if we call "trackSessionStart" on the "videoLoad" event the sdk fires "start" events every ~2seconds?
@stefanovualto Yes. It is normal behaviour to see multiple start
events till the video has first started playing. We compute the "timeToStart" metric based on the total event durations of all the start events. The SDK sends multiple main:start
events or in case of a preroll ad multiple ad:start
events until the first call to trackPlay
.
@praveek so when I fire TrackSessionStart
the next events allowed are (only):
TrackPlay
AdBreakStart
AdStart
It is a normal behavior for the sdk to raise an error if others events are fired?
The following API calls are allowed after TrackSessionStart
- TrackPlay
- TrackPause
- TrackEvent(SeekStart)
- TrackEvent(BufferStart)
- TrackEvent(AdBreakStart)
- TrackEvent(ChapterStart)
- TrackError
The SDK prints a warning and ignores other invalid API calls.