© Wallace Wang 2019
Wallace WangPro iPhone Development with Swift 5https://doi.org/10.1007/978-1-4842-4944-4_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 format that compresses audio files

  • .aac – Advanced Audio Coding ...

Get Pro iPhone Development with Swift 5: 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.