- ホーム
- > 洋書
- > 英文書
- > Computer / General
Full Description
AV Foundation for iOS and OS X (R) Programming-Get Started Fast!If you develop media-rich iOS or OS X apps, you can do amazing things with Apple's AV Foundation. However, the framework is extremely large, reliant on cutting-edge language features, and poorly documented. Now, there's a more productive way to master these immensely powerful technologies: Bob McCune's Learning AV Foundation.McCune's live presentations and GitHub projects have already helped thousands of Apple developers get started with AV Foundation. Building on his experience, McCune helps you gain true mastery by creating real-world apps, hands-on.You'll build a voice memo app, custom video player, video editor, and an image/video camera app. As you proceed, you'll master all the techniques you need to write your own advanced media apps from scratch. Throughout, McCune provides carefully crafted challenges and complete starter apps-all designed to help you deepen your understanding and make the most of Apple's breakthrough media framework.COVERAGE INCLUDESUnderstanding how AV Foundation fits in Apple's media environment and each of its key areas of functionality Enabling your apps with audio playback and recording features Enhancing video playback to deliver a richer, more dynamic experience Using AV Kit to match your user interfaces with iOS Videos or OS X QuickTime Player Developing media capture apps with real-time video processing using OpenGL ES and Core Image Implementing custom video players Integrating advanced capture features such as video zooming, face detection, barcode scanning, and high frame rate capture Mixing multiple audio tracks and automating volume control Building sophisticated non-linear, non-destructive editing apps Adding advanced video editing capabilities, such as video transitions and animation effects
Contents
Preface xiiiPart I: AV Foundation Essentials 1Chapter 1: Getting Started with AV Foundation 3What Is AV Foundation? 3Where Does AV Foundation Fit? 4Decomposing AV Foundation 6Understanding Digital Media 7Digital Media Compression 13Container Formats 18Hello AV Foundation 19Summary 23Challenge 24Chapter 2: Playing and Recording Audio 25Mac and iOS Audio Environments 25Understanding Audio Sessions 26Audio Playback with AVAudioPlayer 28Building an Audio Looper 30Configuring the Audio Session 34Handling Interruptions 36Responding to Route Changes 40Audio Recording with AVAudioRecorder 42Building a Voice Memo App 45Enabling Audio Metering 52Summary 57Chapter 3: Working with Assets and Metadata 59Understanding Assets 59Creating an Asset 60Asynchronous Loading 63Media Metadata 65Working with Metadata 70Building the MetaManager App 76Saving Metadata 98Summary 101Challenge 101Chapter 4: Playing Video 103Playback Overview 103Playback Recipe 107Working with Time 109Building a Video Player 110Time Observation 118Creating a Visual Scrubber 124Showing Subtitles 129Airplay 133Summary 136Challenge 136Chapter 5: Using AV Kit 137AV Kit for iOS 137AV Kit for Mac OS X 140First Steps 140Control Styles 144Going Further 147Working with Chapters 151Enabling Trimming 157Exporting 159Movie Modernization 161Summary 165Challenge 166Part II: Media Capture 167Chapter 6: Capturing Media 169Capture Overview 169Simple Recipe 174Building a Camera App 175Summary 208Challenge 208 Chapter 7: Using Advanced Capture Features 209Video Zooming 209Face Detection 216Machine-Readable Code Detection 228Using High Frame Rate Capture 241Processing Video 247Understanding CMSampleBuffer 249Summary 257Challenge 258Chapter 8: Reading and Writing Media 259Overview 259Building an Audio Waveform View 265Advanced Capture Recording 276Summary 293Challenge 293Part III: Media Creation and Editing 295Chapter 9: Composing and Editing Media 297Composing Media 297Working with Time 300Basic Recipe 303Introducing 15 Seconds 307Building a Composition 311Exporting the Composition 316Summary 321Challenge 322Chapter 10: Mixing Audio 323Mixing Audio 323Mixing Audio in the 15 Seconds App 327Summary 333Challenge 333Chapter 11: Building Video Transitions 335Overview 335Conceptual Steps 33715 Seconds: Adding Video Transitions 348Summary 360Challenge 360 Chapter 12: Layering Animated Content 361Using Core Animation 361Using Core Animation with AV Foundation 36315 Seconds: Adding Animated Titles 367Preparing the Composition 378Summary 383Challenge 384