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>
Result of parsing:

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:
Code: parserUtils
It would be great to find a way not to lose the exact offset value.
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:
Result of parsing:

As you can see, the offset gets transformed from time format to seconds:
If its a percentage it remains the same:
Code: parserUtils
It would be great to find a way not to lose the exact offset value.