logo资料库

AV Foundation 开发秘籍 英文版 Learning AV Foundation.pdf

第1页 / 共829页
第2页 / 共829页
第3页 / 共829页
第4页 / 共829页
第5页 / 共829页
第6页 / 共829页
第7页 / 共829页
第8页 / 共829页
资料共829页,剩余部分请下载后查看
About This eBook
Title Page
Copyright Page
Dedication Page
Contents
Foreword
Preface
Audience for This Book
How This Book Is Organized
About the Sample Code
Contacting the Author
Acknowledgments
About the Author
I: AV Foundation Essentials
1. Getting Started with AV Foundation
What Is AV Foundation?
Where Does AV Foundation Fit?
Decomposing AV Foundation
Understanding Digital Media
Digital Media Compression
Container Formats
Hello AV Foundation
Summary
Challenge
2. Playing and Recording Audio
Mac and iOS Audio Environments
Understanding Audio Sessions
Audio Playback with AVAudioPlayer
Building an Audio Looper
Configuring the Audio Session
Handling Interruptions
Responding to Route Changes
Audio Recording with AVAudioRecorder
Building a Voice Memo App
Enabling Audio Metering
Summary
3. Working with Assets and Metadata
Understanding Assets
Creating an Asset
Asynchronous Loading
Media Metadata
Working with Metadata
Building the MetaManager App
Saving Metadata
Summary
Challenge
4. Playing Video
Playback Overview
Playback Recipe
Working with Time
Building a Video Player
Time Observation
Creating a Visual Scrubber
Showing Subtitles
Airplay
Summary
Challenge
5. Using AV Kit
AV Kit for iOS
AV Kit for Mac OS X
First Steps
Control Styles
Going Further
Working with Chapters
Enabling Trimming
Exporting
Movie Modernization
Summary
Challenge
II: Media Capture
6. Capturing Media
Capture Overview
Simple Recipe
Building a Camera App
Summary
Challenge
7. Using Advanced Capture Features
Video Zooming
Face Detection
Machine-Readable Code Detection
Using High Frame Rate Capture
Processing Video
Understanding CMSampleBuffer
Summary
Challenge
8. Reading and Writing Media
Overview
Building an Audio Waveform View
Advanced Capture Recording
Summary
Challenge
III: Media Creation and Editing
9. Composing and Editing Media
Composing Media
Working with Time
Basic Recipe
Introducing 15 Seconds
Building a Composition
Exporting the Composition
Summary
Challenge
10. Mixing Audio
Mixing Audio
Mixing Audio in the 15 Seconds App
Summary
Challenge
11. Building Video Transitions
Overview
Conceptual Steps
15 Seconds: Adding Video Transitions
Summary
Challenge
12. Layering Animated Content
Using Core Animation
Using Core Animation with AV Foundation
15 Seconds: Adding Animated Titles
Preparing the Composition
Summary
Challenge
Index
Code Snippets
About This eBook ePUB is an open, industry-standard format for eBooks. However, support of ePUB and its many features varies across reading devices and applications. Use your device or app settings to customize the presentation to your liking. Settings that you can customize often include font, font size, single or double column, landscape or portrait mode, and figures that you can click or tap to enlarge. For additional information about the settings and features on your reading device or app, visit the device manufacturer’s Web site. Many titles include programming code or configuration examples. To optimize the presentation of these elements, view the eBook in single- column, landscape mode and adjust the font size to the smallest setting. In addition to presenting code and configurations in the reflowable text format, we have included images of the code that mimic the presentation found in the print book; therefore, where the reflowable format may compromise the presentation of the code listing, you will see a “Click here to view code image” link. Click the link to view the print-fidelity code image. To return to the previous page viewed, click the Back button on your device or app.
Learning AV Foundation A Hands-on Guide to Mastering the AV Foundation Framework Bob McCune Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Cape Town • Sydney • Tokyo • Singapore • Mexico City
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding interests), please contact our corporate sales department at corpsales@pearsoned.com or (800) 382-3419. For government sales inquiries, please contact governmentsales@pearsoned.com. For questions about sales outside the U.S., please contact international@pearsoned.com. Visit us on the Web: informit.com/aw Library of Congress Control Number: 2014944245 Copyright © 2015 Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission to use material from this work, please submit a written request to Pearson Education, Inc., Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-3290. ISBN-13: 978-0-321-96180-8 ISBN-10: 0-321-96180-3 Text printed in the United States on recycled paper at Courier in Westford,
Massachusetts. First printing: October 2014 Editor-in-Chief Mark Taub Senior Acquisitions Editor Trina MacDonald Development Editor Chris Zahn Managing Editor Kristy Hart Project Editor Elaine Wiley Copy Editor Barbara Hacha Senior Indexer Cheryl Lenser Proofreader Katherine Matejka Technical Reviewers Chris Adamson Ryder Mackay Jon Steinmetz Editorial Assistant Olivia Basegio Cover Designer Chuti Prasertsith Senior Compositor Gloria Schurick
I dedicate this book to my loving wife, Linda, who supports me in all my crazy endeavors.
分享到:
收藏