Skip to content

Conversation

@mmustafa-tse
Copy link
Contributor

Summary

  • When a logMediaContentEnd event is called, it does not stop the counter for mediaContentTimeSpent Therefore, even when the consumer finishes content but doesn't complete the media session, the mediaContentTimeSpent counter increases. Currently, only logPause and logMediaSessionEnd will stop the mediaContentTimeSpent counter. This pr is to allow the mediaContentTimeSpent to be paused when a logMediaContentEnd is triggered

Testing Plan

  • Was this tested locally? If not, explain why.
  • E2E and unit tested

Reference Issue

@sonarqubecloud
Copy link

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

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

LGTM

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 497af13 into mParticle:main Mar 28, 2025
4 checks passed
mparticle-automation added a commit that referenced this pull request Mar 28, 2025
## [1.5.5](v1.5.4...v1.5.5) (2025-03-28)

### Bug Fixes

* Pause mediaContentTimeSpent when logMediaContentEnd is triggered ([#70](#70)) ([497af13](497af13))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 1.5.5 🎉

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.

5 participants