Skip to content

Conversation

@mmustafa-tse
Copy link
Contributor

Summary

  • A customer noticed that the getter for mediaTimeSpent calculates the value based on the difference between mediaSessionEndTimestamp and mediaSessionStartTimestamp, which leads to inaccuracy since mediaSessionEndTimestamp is only updated when logging a media event, with this PR it now calculates based on on the difference between System.currentTimeMillis() (current time) and mediaSessionStartTimestamp

Testing Plan

  • E2E and unit tested

Reference Issue

@sonarqubecloud
Copy link

Copy link
Contributor

@Mansi-mParticle Mansi-mParticle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mansi-mParticle Mansi-mParticle merged commit 5f589f0 into mParticle:main Jun 27, 2025
4 checks passed
mparticle-automation added a commit that referenced this pull request Jun 27, 2025
## [1.6.0](v1.5.6...v1.6.0) (2025-06-27)

### Features

* Calculate mediaTimeSpent based on current time ([#73](#73)) ([5f589f0](5f589f0))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants