What's new in AVKit

RSS for tag

Discuss the WWDC21 session What's new in AVKit.

View Session

Posts under wwdc21-10290 tag

2 Posts
Sort by:
Post not yet marked as solved
1 Replies
221 Views
I'm building an app using SwiftUI, and am perplexed at why it seems so difficult to simply play an audio file that is in my assets. One would think it possible to write some code like: play(sound: "(name).m4a") but this seems unsupported. You must write elaborate, verbose code. Anyone comment on why it doesn't 'just work'? I understand that much more complex audio code requires more, but it seems that simply playing a file could be supported.
Posted Last updated
.
Post not yet marked as solved
2 Replies
535 Views
I have an AVSampleBufferDisplayLayer playing a local video. When adding the AvSampleBufferDisplayLayer as a contentSource to AVPictureInPictureController, it fails with The operation couldn’t be completed. (PGPegasusErrorDomain error -1003.) I can't find any documented error with that domain an error code. Help?
Posted Last updated
.