𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Beginning iOS Media App Development

✍ Scribed by Bakir, Ahmed


Publisher
Apress
Year
2014
Tongue
English
Leaves
418
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Beginning iOS Media App Developmentis a ground-breaking tutorial that explores the near limitless, programmable audio-visual capabilities of the iPhone, iPad and iPod touch using real-world examples and thorough explanations of the code. This book includes detailed step-by-step instructions and important background information from experienced media and utility app developer, Ahmed Bakir.You'll learn about content creation, playback, and advanced topics, including AirPlay, AVKit, and Swift. Each chapter is framed with a project that illustrates the concepts being discussed and pulls in lessons from other popular apps. You'll even learn about the latest iOS 8 and Xcode 6 media features.After reading this book, you should be able to build your first rich media app or utility app that utilizes multimedia for the App Store. And if you're a game developer, this book will provide you with tools to help make your game app look even better by integrating native iOS features.What youοΏ½ll learnβ€’ How to build rich, dynamic photo, audio, video, or multimedia apps using iOS SDKβ€’ How to capture, import, and manipulate photos in your appsβ€’ How to build your own music apps using the iTunes media library, MP3’s, and hardware microphoneβ€’ How to capture, import, and play videos in your appsβ€’ How to override the default iOS camera controller, video player, and music playerβ€’ How to get started with the Swift programming languageβ€’ How to integrate new features of iOS8 and XCode 6 into your development workflowβ€’ How to build a workout music app using HealthKit and the iOS Motion Co-ProcessorWho this book is for This book is for iOS app developers with at least some experience with the iOS SDK, Objective-C, and Cocoa Touch.

✦ Table of Contents


Contents at a Glance......Page 3
Contents......Page 409
About the Author......Page 416
About the Technical Reviewer......Page 417
Acknowledgments......Page 418
Introduction......Page 5
What Is the Purpose of This Book?......Page 6
What Makes Media App Development Different?......Page 7
What Do I Need to Know to Use This Book?......Page 8
An Active iOS Developer Program Account Is Required to Use This Book......Page 10
About the Application......Page 12
Setting Up the Application......Page 13
Adding Images to Your App......Page 15
Handling User-Interface Events......Page 16
Running the Application on a Device......Page 17
Debugging Common Problems......Page 23
Summary......Page 26
Part 1: Images......Page 0
Loading Bundled Files......Page 28
Using Asset Catalogs To Manage Images......Page 30
Loading Images at Runtime......Page 32
Setting Image-Scaling Options......Page 34
Using the UIImagePickerController Class to Select Images......Page 35
Working with Protocols and Delegates......Page 36
Configuring and Presenting the Image Picker......Page 40
Handling Data from the Image Picker......Page 42
Using the Image Picker to Take Pictures......Page 44
Presenting the Photo Album on an iPad......Page 47
Summary......Page 50
Manipulating Images......Page 51
Resizing an Image......Page 52
Cropping an Image......Page 54
Saving Images to Files......Page 58
Saving Images to the Photo Library......Page 61
Loading Images from the Internet......Page 63
Adding an Activity Indicator......Page 64
Adding Gradients......Page 67
Making Your Images Move with Your Device......Page 70
Adding Blurring to Your Images......Page 72
Summary......Page 74
Building a Custom Camera Interface......Page 75
Initializing the Hardware Interface......Page 77
Accessing the Live Camera Feed......Page 80
Capturing a Still Image......Page 82
Accessing Hardware Controls......Page 85
Switching Cameras......Page 86
Changing Flash Modes......Page 89
Changing Autofocus Modes......Page 91
Changing Exposure Modes......Page 95
Building a Custom Image Picker......Page 98
Instantiating an Asset Library as a Data Source......Page 100
Using the UICollectionView Class to Enumerate Assets......Page 103
Enabling Multiple Selection......Page 109
Creating an Interface for Returning Image Data......Page 110
Creating Image Data from Asset Representations......Page 112
Summary......Page 114
Part 2: Audio......Page 115
Playing Audio Files......Page 116
Getting Started......Page 118
Configuring an Audio Session......Page 122
Selecting an Audio File......Page 124
Setting Up the Audio Player......Page 129
Starting or Pausing Playback......Page 131
Skipping Forward or Backward......Page 133
Displaying Playback Progress......Page 134
Recording Audio Files......Page 136
Getting Started......Page 137
Configuring the Audio Session......Page 138
Setting Up the Audio Recorder......Page 139
Starting or Stopping the Recording......Page 140
Playing Back the Recording......Page 142
Saving the Recording......Page 143
Summary......Page 145
Importing Music from iTunes......Page 146
Getting Started......Page 148
Initializing the Music Player......Page 149
Specifying a Media Queue (Playlist)......Page 150
Creating an Item Selection Interface......Page 152
Building a Playback Interface......Page 156
Displaying Song Information (Metadata)......Page 159
Streaming Music......Page 161
Connecting to a Stream......Page 163
Playing Streaming Audio......Page 164
Playing Event Sounds (Including Vibration)......Page 165
Getting Started......Page 166
Creating a System Sound......Page 168
Playing a System Sound......Page 169
Making the Device Vibrate......Page 170
Summary......Page 171
Backgrounding Audio......Page 172
Setting Background Modes......Page 173
Selecting a Compatible Session Type......Page 177
Using the Now Playing Center......Page 178
Displaying Metadata......Page 179
Enabling Playback Controls (Remote Controls)......Page 183
Building a More Robust Audio Session......Page 186
Handling Audio Interruptions......Page 187
Handling Hardware (Route) Changes......Page 190
Using AirPlay......Page 191
Summary......Page 196
Part 3: Video......Page 197
Playing Video Files......Page 198
Getting Started......Page 201
Initializing the Video Player......Page 204
Using the File Picker as a Data Source......Page 205
Specifying a Parent View for the Media Player......Page 207
Adding Notification Handling to Your Class......Page 208
Specifying a Source Type (Local File or Network Stream)......Page 211
Specifying AirPlay Support......Page 212
Starting Playback......Page 213
Recording Video Files......Page 214
Getting Started......Page 217
Configuring the Image Picker for Video......Page 219
Saving Video Recordings......Page 220
Summary......Page 223
Chapter 9: Building a Custom Video-Playback Interface......Page 224
Getting Started......Page 226
Building the User Interface......Page 230
Using the AVPlayer Class for Media Playback......Page 238
Creating MediaPlayer -like Notifications......Page 240
Building Playback Controls......Page 242
Skipping Forward/Backward......Page 243
Using the Playback Scrubber......Page 244
Dismissing the Playback Interface......Page 246
Adding User-Interface Updates......Page 247
Updating Playback Progress......Page 248
Automatically Hiding the Playback Controls......Page 249
Summary......Page 252
Chapter 10: Building a Custom Video-Recording Interface......Page 253
Getting Started......Page 255
Setting Up the Hardware Interface......Page 257
Building the User Interface......Page 264
Setting Up the Video Layer......Page 265
Adding Controls for Capture Settings......Page 267
Torch Mode......Page 272
Low-Light Boost......Page 276
Starting/Stopping Recording......Page 277
Completing a Recording......Page 282
Saving Video Output......Page 283
Showing the Preview Interface......Page 284
Modifying Your Protocol for Video......Page 288
Summary......Page 290
Part 4: iOS8 and Beyond......Page 291
Using Size Classes to Build Adaptive User Interfaces......Page 292
Using Quick Look for Runtime Previews......Page 299
Adding Interface Builder Previews to Your Classes......Page 305
Using Interface Builder to Debug Your Views......Page 311
Summary......Page 313
Chapter 12: Using the AVKit Framework for Media Playback......Page 314
Getting Started......Page 317
Using the AVPlayer Class to Play a Media File......Page 320
Presenting the AVPlayerViewController......Page 322
Using the AVQueuePlayer Class to Play a Playlist......Page 326
Working with Media Playback Events......Page 329
Loading Complete Event......Page 331
Playback Complete Event......Page 333
Error Handling......Page 334
Adding an Overlay View (Watermark)......Page 337
Summary......Page 339
Chapter 13: Tracking Fitness with HealthKit and Core Motion......Page 340
Getting Started......Page 342
Using Core Motion to Track Activity......Page 347
Requesting Motion Activity Permission......Page 348
Starting a Workout......Page 351
Integrating Background Updates......Page 356
Stopping a Workout......Page 358
Using HealthKit to Sync Data......Page 359
Requesting Permission to Use HealthKit......Page 360
Retrieving Data from HealthKit......Page 363
Getting Real-Time Updates......Page 366
Logging an Activity......Page 368
Summary......Page 370
Getting Started......Page 371
Creating a New Project......Page 372
Importing Objective-C Classes into Your Project......Page 375
Building a Storyboard......Page 376
Basic Swift Syntax......Page 378
Defining Variables......Page 379
Accessing Properties and Methods (Including Objective-C)......Page 380
Using Arrays......Page 381
Using Conditional Logic......Page 382
Using Loops......Page 383
Calling Enumerated Types......Page 384
Using Unusual Punctuation (Question Mark and Exclamation Mark Operators)......Page 385
Building a Class......Page 386
Connecting Items to Interface Builder......Page 388
Adding Delegate Support......Page 390
Adding Key-Value Observer Support......Page 392
Adding Notification Support......Page 395
Summary......Page 396
Index......Page 397


πŸ“œ SIMILAR VOLUMES


Beginning iOS Media App Development
✍ Ahmed Bakir (auth.) πŸ“‚ Library πŸ“… 2014 πŸ› Apress 🌐 English

<p><p><em>Beginning iOS Media App Development</em> is a ground-breaking tutorial that explores the near limitless, programmable audio-visual capabilities of the iPhone, iPad and iPod touch using real-world examples and thorough explanations of the code. This book includes detailed step-by-step instr

Beginning iOS Media App Development
✍ Ahmed Bakir πŸ“‚ Library πŸ“… 2014 πŸ› Apress 🌐 English

Beginning iOS Media App Development is a ground-breaking tutorial that explores the near limitless, programmable audio-visual capabilities of the iPhone, iPad and iPod touch using real-world examples and thorough explanations of the code. This book includes detailed step-by-step instructions and imp

Beginning iOS 16 & Swift App Development
✍ Greg Lim πŸ“‚ Library 🌐 English

<p><span>Follow Greg at twitter.com/greglim81</span><span><br><br>In this book, we take you on a fun, hands-on and pragmatic journey to learning iOS 16 application development using Swift. You'll start building your first iOS app within minutes. Every section is written in a bite-sized manner and st

Beginning iOS Cloud and Database Develop
✍ Nathan Ooley πŸ“‚ Library πŸ“… 2014 πŸ› Apress 🌐 English

Beginning iOS Cloud and Database Development gets you started with building apps that use Apples iCloud. Youll learn the techniques which will enable you to devise and create iOS apps that can interact with iCloud servers. From the basics up, youll progressively learn how to configure your app for i

Swift 4 for Absolute Beginners: Develop
✍ Stefan Kaczmarek,Brad Lees,Gary Bennett (auth.) πŸ“‚ Library πŸ“… 2018 πŸ› Apress 🌐 English

<p><p>Stay motivated and overcome obstacles while learning to use Swift Playgrounds to be a great iOS developer. This book is perfect for those with no programming background, those with some programming experience but no object-oriented experience, or those that have a great idea for an app but hav