Could you explain what you are looking for ?
Is it a general question about using AVPlayer in SwiftUI ?
If so, may have a look here:
The way they did it was to embed the view controller in a ZStack and then hide it with a bool. That's not how it would be done normally, but I have found when I looked into a EKEditEventViewController, that one can only dismiss is once and after the first dismissal, the delegate is not called.