Hi, Currently I'm working on Share Play.
And I struggled a lot on the issue that:
In some cases, we need to share what other user(s) is(are) doing, so I made a custom event to share with all participants.
But when 2 (or more) users send the activities with custom event at the same (or very similar) time, looks like groupSession ignores other users activities.
Is there any way to solve this problem? or any idea to handle this situation?
I just used same code with Apple's sample project.
(sink completion is not called for other users activity sometimes)
groupSession.$activity.sink { [weak self] activity in
// Set the movie to enqueue it in the player.
self?.enqueuedMovie = activity.movie
}.store(in: &subscriptions)
Post
Replies
Boosts
Views
Activity
Hi,
I'm testing group activity for video with 3 test cases.
For all tests, both users are connected by Face Time.
Both users launch the app then tries share play -> OK
One user launches the app then move it to background, the other user tries share play -> OK
But case 3.
One user kills the app, the other user launches the app and try share play -> It's not working.
Share play popup is displayed, and first user touches the popup, then the app is launched.
but group session await is not working properly.
for await groupSession in MovieWatchingActivity.sessions() {
self.groupSession = groupSession
This code (2nd line) is never called in case 3.
Maybe I missed something?
Thanks.