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

fix: send ended when AVPlayerItem ends #253

Closed
wants to merge 9 commits into from

Conversation

daytime-em
Copy link
Collaborator

No description provided.

@daytime-em daytime-em requested a review from a team as a code owner November 22, 2024 01:34
@daytime-em daytime-em changed the base branch from master to releases/4.2.0 November 22, 2024 01:34
@@ -169,8 +175,7 @@ -(NSString *)getHostName:(NSString *)urlString {
// This matters when there are multiple AVPlayer instances running simultaneously
//
- (BOOL) checkIfNotificationIsRelevant:(NSNotification *)notif {
AVPlayerItem *notificationItem = (AVPlayerItem *)notif.object;
return notificationItem == _playerItem;
return notif.object == _playerItem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to not make this isEqual:?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We want instance equality here. We're checking that the notification is for the same instance of AVPlayerItem that we're observing, since that's the object that's generating the events we are observing for.

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