Closed PedroRossa closed 1 month ago
Hi Pedro, thank you for submitting the feature request! We took a look at AVPlayerPlaybackCoordinator and coordinateWithSession. We found that coordinateWithSession's argument type is GroupSession and decide that we could not support mocking AVPlayerPlaybackCoordinator in the near future. The reasoning is
coordinateWithSession's argument type is GroupSession class instead of a protocol => meaning that we can't just have GroupSessionMock conform that protocol => meaning that we have to mock the whole AVPlaybackCoordinator class (so that coordinateWithSession can take in GroupSessionMock as an argument) and this class is complicated and will need some time and effort to build the mock function
If you'd like to implement that mock or have another suggestion on how to implement it, we'd be more than happy to merge/discuss it :)
Please tell me how to turn on persona. There is a button on facetime to turn it on, but I don’t know how to turn it on in shareplaymock.
Please tell me how to turn on persona. There is a button on facetime to turn it on, but I don’t know how to turn it on in shareplaymock.
This is a totally different/unrelated question. Please see the new issue for reply.
I’m currently using SharePlayMock to test SharePlay functionality in my visionOS project, which heavily relies on coordinated media playback using AVPlayerPlaybackCoordinator. However, I noticed that SharePlayMock does not currently support mocking the coordinateWithSession method of AVPlayerPlaybackCoordinator, which is crucial for testing coordinated playback scenarios with SharePlay.
Feature Suggestion
It would be highly beneficial if SharePlayMock could implement support for AVPlayerPlaybackCoordinator.coordinateWithSession. This feature would enable developers to test coordinated playback behavior in a controlled environment, closely mimicking the actual SharePlay experience.
Use Case
Expected Behavior
Benefits
Thank you for considering this feature request! Your work on SharePlayMock has already been incredibly helpful, and adding support for playback coordination would further extend its capabilities.