Coordinate media playback with Group Activities

RSS for tag

Discuss the WWDC21 session Coordinate media playback with Group Activities.

Posts under wwdc21-10225 tag

12 Posts

Post

Replies

Boosts

Views

Activity

Group Session is not generated if the user didn't launch the app before.
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.
0
0
757
Mar ’22
How to correctly request foreground presentation when using GroupActivity?
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
0
0
1.2k
Jan ’22
Playback does not sync while coordinating with Group Session
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?
1
0
1.3k
Oct ’21
SwiftUI with SharePlay
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.
0
0
945
Sep ’21
MacOS Monterey beta 7, SharePlay/GroupActivities is not available when building for Mac Catalyst... was available in betas 2-5.
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?
1
0
972
Sep ’21
GroupActivity.sessions() not receiving updated GroupSessions
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. } } }
1
0
864
Aug ’21
Shareplay for custom video controls playback
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!
1
0
1.3k
Aug ’21
shareplay doesn't work for safari
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?
2
0
1.7k
Aug ’21
Symbol not found when Using GroupActivity
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
0
0
579
Jul ’21
Group Session is not generated if the user didn't launch the app before.
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.
Replies
0
Boosts
0
Views
757
Activity
Mar ’22
Unsupported Activity popup on tvOS
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?
Replies
3
Boosts
0
Views
1.3k
Activity
Mar ’22
How to correctly request foreground presentation when using GroupActivity?
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
Replies
0
Boosts
0
Views
1.2k
Activity
Jan ’22
Playback does not sync while coordinating with Group Session
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?
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’21
comment trouver ou rejoindre un club de programmation Swift
je cherche a créer ou rejoindre un club de programmation Swift,de préférencence des français,si quelqu'un est intéressé par cet idée je vous invite a m'envoyer un message
Replies
2
Boosts
0
Views
646
Activity
Oct ’21
SwiftUI with SharePlay
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.
Replies
0
Boosts
0
Views
945
Activity
Sep ’21
MacOS Monterey beta 7, SharePlay/GroupActivities is not available when building for Mac Catalyst... was available in betas 2-5.
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?
Replies
1
Boosts
0
Views
972
Activity
Sep ’21
How does SharePlay handle streaming Ad.?
How to handle ads which are dynamically inserted with inconsistent length, it will cause stream out of sync.
Replies
0
Boosts
0
Views
582
Activity
Sep ’21
GroupActivity.sessions() not receiving updated GroupSessions
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. } } }
Replies
1
Boosts
0
Views
864
Activity
Aug ’21
Shareplay for custom video controls playback
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!
Replies
1
Boosts
0
Views
1.3k
Activity
Aug ’21
shareplay doesn't work for safari
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?
Replies
2
Boosts
0
Views
1.7k
Activity
Aug ’21
Symbol not found when Using GroupActivity
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
Replies
0
Boosts
0
Views
579
Activity
Jul ’21