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

Extract functionality to prepare for SSAI tracking #69

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

strangesource
Copy link
Contributor

@strangesource strangesource commented Jul 2, 2024

Problem

In order to prepare the current integration for SSAI tracking, error tracking and ad status tracking needs to be extracted.

Changes

  • Introduce private isAdActive function to improve extensability
  • Extract common error handling functionality

Related Changes

@strangesource strangesource self-assigned this Jul 2, 2024
@strangesource strangesource requested a review from matamegger July 2, 2024 05:14
@strangesource strangesource marked this pull request as ready for review July 2, 2024 05:14
String message = String.format("%s - %s", event.getCode(), event.getMessage());
convivaVideoAnalytics.reportPlaybackError(message, ConvivaSdkConstants.ErrorSeverity.FATAL);
internalEndSession();
handleError(String.format("%s - %s", event.getCode(), event.getMessage()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to make the message creation also reusable? i.e. wrap or move the string format stuff also into the handleError function?

@strangesource strangesource merged commit 75cfb37 into develop Jul 2, 2024
2 checks passed
@strangesource strangesource deleted the prepare-for-ssai-tracking branch July 2, 2024 06:48
This was referenced Jul 2, 2024
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.

2 participants