Custom [AVPlayer] within LazyVGrid or LazyHGrid

Could you point me to an example using an array of custom AVPlayer objects within the new LazyVGrid or LazyHGrid?

The players also need to stay in sync so possibly an example using "let syncTime = CMClockGetHostTimeClock()".

I'm familiar with sync so I can fill in the rest. Just very curious about how this comes together under the new grid views.

Thank you,
Matt
We have AVMediaSelectionDemo an old sample which shows how to synchronize several AVPlayers.
https://developer.apple.com/library/archive/samplecode/AVMediaSelectionDemo/Listings/AVMediaSelectionDemo_APLPlaybackView_m.html#//apple_ref/doc/uid/DTS40013405-AVMediaSelectionDemo_APLPlaybackView_m-DontLinkElementID_8

In APLPlaybackView.m:
  • setMasterClockOnPlayerToDefaultAudioDeviceClock shows how to set up a custom clock on AVPlayer

In APLDocument.m:
  • prerollPlayersAndStartPlayback shows how to start those players together

Custom [AVPlayer] within LazyVGrid or LazyHGrid
 
 
Q