© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
W. WangPro iPhone Development with SwiftUIhttps://doi.org/10.1007/978-1-4842-7827-7_12

12. Playing Audio and Video

Wallace Wang1  
(1)
San Diego, CA, USA
 

Not every app needs audio and video, but playing audio and video within an app can create an interesting way to deliver information to the user. For example, an app might want to play music or different sounds to alert the user or play a video to demonstrate steps for the user to follow. With both audio and video, an app can provide a more dynamic user experience.

When working with audio and video files, it’s important to identify the file format. Some popular audio formats supported by iOS include
  • .mp3 – Popular ...

Get Pro iPhone Development with SwiftUI: Design and Manage Top Quality Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.