Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset lost for Progress tracking events #485

Open
jaram-qualabs opened this issue Dec 23, 2024 · 0 comments
Open

Offset lost for Progress tracking events #485

jaram-qualabs opened this issue Dec 23, 2024 · 0 comments

Comments

@jaram-qualabs
Copy link

jaram-qualabs commented Dec 23, 2024

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:
Pasted image 20241223123021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant