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

Allow for registering a new ConvivaAnalyticsIntegration to a reused Player #52

Merged

Conversation

kvolkers
Copy link
Contributor

@kvolkers kvolkers commented Jul 13, 2023

The current setup expects for 1 ConvivaAnalyticsIntegration instance to be used with 1 BitmovinPlayer instance.

To make it easier to get Conviva to track correctly in our implementation when changing video stream with 1 BitmovinPlayer instance (live channel zapping, play next, some use cases with chromecast) we'd like to use a new ConvivaAnalyticsIntegration for each new video stream.

The following changes were made:

  • Add ConvivaAnalyticsIntegration.release(Boolean releaseConvivaSdk) function. Calling this function with releaseConvivaSdk = false prevents ConvivaAnalytics.release() from being called. Otherwise creating a new ConvivaAnalyticsIntegration right after this would result in a broken session ending in an EBVS.
  • Detach Bitmovin player event listeners on ConvivaAnalyticsIntegration.release(Boolean releaseConvivaSdk).
  • Add ConvivaAnalyticsIntegration.release() convenience function mimicking current behaviour for backwards compatibility.

I couldn't get all tests to work, but I suspect this might be an issue with the 2 tests itself, report included.
image
androidTests.zip

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2023

CLA assistant check
All committers have signed the CLA.

@kvolkers kvolkers changed the title Add function allowing for ConvivaAnalyticsIntegration to be reused Allow for registering a new ConvivaAnalyticsIntegration to a reused Player Jul 14, 2023
Copy link
Member

@dweinber dweinber left a comment

Choose a reason for hiding this comment

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

Hi @kvolkers, thank you very much for your contribution! 🎉

The code looks good and I can't see how your changes could lead to the failing tests... plus I'm aware some tests are a bit flaky. Seems unrelated to your PR so good to go 🙂

@dweinber dweinber merged commit 023543c into bitmovin:develop Jul 18, 2023
@dweinber
Copy link
Member

For the record: I merged this into develop and re-ran the tests on my main dev device successfully:
image

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