-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
I need to get information about the Progress tracking events.
Those Tracking Events in VAST contain an offset attribute, referring to the point of time where the event has to be triggered.
Some samples:
<Tracking event="progress" offset="00:00:15.333"><![CDATA[ https://sample/progress-15sec ]]></Tracking>
<Tracking event="progress" offset="00:00:15.000"><![CDATA[ https://sample/progress-15sec ]]></Tracking>
<Tracking event="progress" offset="00:30:15.000"><![CDATA[ https://sample/ad-fake-event/progress-15sec ]]></Tracking>
<Tracking event="progress" offset="01:30:15.000"><![CDATA[ https://sample/progress-15sec ]]></Tracking>
<Tracking event="progress" offset="60%"><![CDATA[ https://sample/progress-60percent ]]></Tracking>
As you can see, the offset gets transformed from time format to seconds:
- 00:00:15.333 = 15,
- 00:00:15.000 = 15,
- 00:30:15.000 = 1815
- 01:30:15.000 = 5415
If its a percentage it remains the same:
- 60% = 60%
Code: parserUtils
It would be great to find a way not to lose the exact offset value.
Metadata
Metadata
Assignees
Labels
No labels