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

feat: implement MUXSDKMonitor API and switch MUXSDKStats to use it #218

Open
wants to merge 10 commits into
base: releases/v5.0.0
Choose a base branch
from

Conversation

andrewjl-mux
Copy link
Contributor

Some additional minor clean-up, mostly internal-only renames.

@andrewjl-mux andrewjl-mux force-pushed the ajlb/feat/implement-new-API-and-switch-MUXSDKStats-to-use-it branch from ae02bd6 to b72be62 Compare November 2, 2023 19:08
@andrewjl-mux andrewjl-mux force-pushed the ajlb/feat/expose-new-monitoring-api branch from 5356a2f to e7c7263 Compare November 2, 2023 19:21
@andrewjl-mux andrewjl-mux force-pushed the ajlb/feat/implement-new-API-and-switch-MUXSDKStats-to-use-it branch 6 times, most recently from 94c10ea to 6676c0b Compare November 2, 2023 22:42
@andrewjl-mux andrewjl-mux marked this pull request as ready for review November 2, 2023 22:49
@andrewjl-mux andrewjl-mux requested a review from a team as a code owner November 2, 2023 22:49
[player didTriggerManualVideoChange];
[player dispatchViewEnd];

// FIXME: Previous implementation did a nil check
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this change is safe, MUXSDKDataEvent properties default to nil so skipping a nil check gets the same result.

MUXSDKCustomerViewData *viewData = customerData.customerViewData;
MUXSDKCustomData *customData = customerData.customData;

[_customerPlayerDataStore setPlayerData:playerData
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prior implementation didn't check playerData for nil, kept the same distinction here.

@@ -20,206 +14,19 @@

@implementation MUXSDKStats

static MUXSDKDispatcher *_dispatcher;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This _dispatcher was unused, so removed it completely.

@@ -1,12 +1,6 @@
#import "MUXSDKStats.h"
#import "MUXSDKConstants.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic in this file has been effectively moved to MUXSDKMonitor.m, some parts got removed completely as part of the clean-up.

return environmentData;
}

+ (MUXSDKViewerData *)buildViewerData {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic in buildViewerData has been extracted out to a separate MUXSDKPlaceholderViewerData class.

Base automatically changed from ajlb/feat/expose-new-monitoring-api to releases/v4.0.0 November 3, 2023 18:25
@andrewjl-mux andrewjl-mux force-pushed the ajlb/feat/implement-new-API-and-switch-MUXSDKStats-to-use-it branch 5 times, most recently from 4f2e527 to 3ae162e Compare November 4, 2023 03:41
centralize MUXSDKCore parameter passing

refactor: move placeholder viewer data retrieval out of MUXSDKMonitor

feat: implement rest of the MUXSDKMonitor stubs and clean-up binding manager

Clean-up MUXSDKStats declarations

refactor: convert MUXSDKStats to use MUXSDKMonitor internally
@andrewjl-mux andrewjl-mux force-pushed the ajlb/feat/implement-new-API-and-switch-MUXSDKStats-to-use-it branch from 0377912 to 4dfd253 Compare November 4, 2023 04:27
@andrewjl-mux andrewjl-mux changed the base branch from releases/v4.0.0 to releases/v5.0.0 June 13, 2024 19:02
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.

1 participant