Coordinate media playback with Group Activities

RSS for tag

Discuss the WWDC21 session Coordinate media playback with Group Activities.

View Session

Posts under wwdc21-10225 tag

12 Posts
Sort by:
Post not yet marked as solved
0 Replies
202 Views
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.
Posted
by ds1adr.
Last updated
.
Post not yet marked as solved
1 Replies
653 Views
I'm working on Group Activities for our video app. When I start a video from Apple TV, it's fine to sync it with other user's iPhone device. but inverse case, it's not working. And in some cases, I saw "Unsupported Activity : The active SharePlay activity is not supported on this Apple TV" What did I miss or wrong something?
Posted
by Wontai.
Last updated
.
Post not yet marked as solved
0 Replies
346 Views
Details I'm working on a video streaming app, and we've implemented GroupActivity for SharePlay. The app doesn't support PiP. Based on the documentation we found, we can use the function requestForegroundPresentation described here. I was trying to call this function when the GroupSession is in waiting and joined states, but nothing happens on the user's device. There is no banner to explain anything The WWDC videos doesn't show an example, they just mention this feature, and it's unclear how it should work. Tried the api in the sample project supporting_coordinated_media_playback, and same result
Posted
by iostafi.
Last updated
.
Post not yet marked as solved
1 Replies
592 Views
I am attempting to support SharePlay for live video in my app. I am calling playbackCoordinator.coordinateWithSession(_:) on my AVPlayer instance with a successfully joined session and both video playback and playback controls are not syncing across devices. I have installed the SharePlay developer profile on both devices. I verified that I am receiving and joining session objects on all devices and passing it along to the player’s playback coordinator. All session states and activity events are successfully being sent & received; however, playback and playback controls are still not syncing across the devices. Are there any other criteria for playback coordination that I could be missing? Perhaps something I should not be doing with regards to the player? Does SharePlay not work for live video?
Posted
by Star_Lard.
Last updated
.
Post not yet marked as solved
0 Replies
343 Views
I am trying to replicate the app in SwiftUI. And I am confused Is one supposed to subscribe to the CoordinateManager session and object in SwiftUI View or does one uses ObservableObject? Also, I get how one can get the session asynchronously (using .task{}), but I can't figure out how can one start a session on a screen and present the player on another screen using GroupActivities.
Posted Last updated
.
Post not yet marked as solved
1 Replies
445 Views
Hi Apple, please help! In MacOS Monterey betas 2-5, I was able to run GroupActivities on my Mac Catalyst app. When running my app with GroupActivities on MacOS Monterey beta 7, I get an error: "GroupActivities is not available when building for Mac Catalyst. Consider using #if !targetEnvironment(macCatalyst) to conditionally import this framework when building for iOS." No such module 'GroupActivities' Is SharePlay going to be available for Mac Catalyst in an upcoming beta?
Posted
by saeidg.
Last updated
.
Post marked as solved
1 Replies
444 Views
While observing GroupSession objects for my GroupActivity via the .sessions() async sequence, updated sessions are never received with with new states. Neither state == .joined or state == invalidated are received after calling session.join() and session.leave() respectively: Task { for await session in MyGroupActivity.sessions() {         switch session.state {      case .waiting:        // Received after activating activity.      case .joined:        // Never received after calling `session.join()`.      case .invalidated:        // Never received after calling `session.leave()`, ending the FaceTime call, or after other participating user ends session for everyone. } } }
Posted
by Star_Lard.
Last updated
.
Post not yet marked as solved
1 Replies
753 Views
Hi We are trying to implement Group watching feature with the help of Group Activities available in iOS 15 onwards We can share the session across the user, and the proper content is launched in the Player. Now we need to coordinate the player activity. We are using custom video controls over AVPlayer and it seems by default calling the below line of code does not seems to be work. player?.playbackCoordinator.coordinateWithSession(session) Now we are stuck with coordinating player activity. The example mentions default controls with AVPlayer, but in our case, we have custom video controls on top of AVPlayer. https://developer.apple.com/videos/play/wwdc2021/10225/ So will the player automatically coordinate with the group session, or do we need to implement AVDelegatingPlaybackCoordinator for the same. Please help!
Posted Last updated
.
Post marked as solved
2 Replies
816 Views
Our app create a GroupActivity with a fallbackURL points to our website ( the url has included the conentId to played). Exceptal behavior is when a Watch Together invitation is issued by an iPhone user to a user on a Mac, Safari will be launched and asked to load the URL that we provide in GroupActivity.  Actual result is Safari launched but URL not loaded. What should the fallbackURL be? Or what should we do any other things except set fallbackURL?
Posted Last updated
.
Post not yet marked as solved
0 Replies
421 Views
hi, I was testing the demo project that apple released about GroupActivity. Here is the link And when I run this demo on my iPhone12 iOS15 beta2, it came the error below in the runtime: dyld[12941]: Symbol not found: _$s15GroupActivities0A7SessionC8SessionsV8IteratorVyx__GScIAAMc  Referenced from: /private/var/containers/Bundle/Application/400F18B3-F1F2-47A8-B116-8F700D1E87DC/GroupWatching.app/GroupWatching  Expected in: /System/Library/Frameworks/GroupActivities.framework/GroupActivities Does anyone knows how to fix this? Thx
Posted
by CrowFea.
Last updated
.