Skip to content

Conversation

@DimitarNestorov
Copy link
Contributor

No description provided.

@DimitarNestorov DimitarNestorov force-pushed the request-now-playing-playback-queue-for-player branch from 2cf0217 to 1f1c90c Compare December 29, 2022 18:25
if (@available(macOS 10.15, *)) {
XCTAssertTrue([((NSObject *)client).className isEqualToString:@"MRClient"]);
} else {
XCTAssertTrue([((NSObject *)client).className isEqualToString:@"_MRNowPlayingClientProtobuf"]);
Copy link
Contributor Author

@DimitarNestorov DimitarNestorov Dec 29, 2022

Choose a reason for hiding this comment

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

Confirm this on Mojave, High Sierra, and Sierra. Also figure out iOS, watchOS, and tvOS versions.

#import <os/availability.h>
#import <PrivateProtocolBuffer/PrivateProtocolBuffer.h>

API_AVAILABLE(macos(10.15))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Figure out iOS, watchOS, and tvOS versions.

@DimitarNestorov DimitarNestorov changed the title Add MRClient and modify _MRNowPlayingClientProtobuf Add MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync Dec 29, 2022
@DimitarNestorov DimitarNestorov added this to the 0.2.0 milestone Dec 29, 2022
@DimitarNestorov DimitarNestorov force-pushed the request-now-playing-playback-queue-for-player branch from 90780da to 302fbf3 Compare December 30, 2022 00:49
XCTestExpectation *expectation = [self expectationWithDescription:@"MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync"];
(*func)(nil, nil, dispatch_get_main_queue(), ^(id queue, NSError *error) {
XCTAssertNotNil(queue, @"`queue` is `nil` when calling `MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync`. Play some music for this test to pass.");
XCTAssertNil(error);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test the error

@DimitarNestorov DimitarNestorov force-pushed the request-now-playing-playback-queue-for-player branch from 302fbf3 to 40d5403 Compare January 10, 2023 05:27
@DimitarNestorov DimitarNestorov force-pushed the request-now-playing-playback-queue-for-player branch from 7f8eeef to d231c7a Compare January 15, 2023 22:45
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