Skip to content

Conversation

@jaissica12
Copy link
Contributor

Background

  • Per this doc, Currently, the mParticle Media SDK requires developers to manually manage content time tracking during ad breaks, creating additional complexity and potential for error. If not managed appropriately, the media content time spent value is overstated with ad break time. This PR adds an (optional) ability to allow pausing mediaContentTimeSpent when an Ad Break starts and ends

What Has Changed

  • Added a true/false flag (false by default) on the mediaSession init level that when true, mediaContentTimeSpent will be paused when an Ad Break starts and ends, otherwise when false, the mediaConentTimeSpent will stay the same as is

Screenshots/Video

  • {Include any screenshots or video demonstrating the new feature or fix, if applicable}

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • same feature will be added to iOS, Android and Roku media SDKs

Reference Issue (For employees only. Ignore if you are an outside contributor)

@jaissica12 jaissica12 changed the title Feat/ad break pause feat: Pause mediaContentTimeSpent calculation on ad breaks Dec 8, 2025
Copy link
Member

@rmi22186 rmi22186 left a comment

Choose a reason for hiding this comment

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

minor comments for tests

@jaissica12 jaissica12 requested a review from rmi22186 December 15, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants