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

Trigger INTERSTITIALS_PRIMARY_RESUMED after ending interstitial with CUE ONCE #6915

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Dec 17, 2024

This PR will...

Trigger INTERSTITIALS_PRIMARY_RESUMED after ending interstitial with CUE ONCE

Why is this Pull Request needed?

The handling of CUE ONCE involved removal of current (ended) interstitial from the schedule followed by a recursive call to setSchedulePosition. This recursive call prevented INTERSTITIALS_PRIMARY_RESUMED from being triggered because the the context of the current (ended) item was lost, leading to attachPrimary being called with fromItem of null. Now the method has two parts, so that when the schedule is changed after ending an interstitial, the next item can advance with the context of the last item to have played.

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Resolves #6911

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.6.0 milestone Dec 17, 2024
@robwalch robwalch linked an issue Dec 17, 2024 that may be closed by this pull request
5 tasks
@robwalch robwalch merged commit f4eddb8 into master Dec 19, 2024
17 checks passed
@robwalch robwalch deleted the bugfix/interstitials-primary-resumed-cue-once branch December 19, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Missing INTERSTITIALS_PRIMARY_RESUMED after Event with CUE ONCE
1 participant