Book Image

PhoneGap Beginners Guide (third edition)

Book Image

PhoneGap Beginners Guide (third edition)

Overview of this book

Table of Contents (22 chapters)
PhoneGap Beginner's Guide Third Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Related Plugin Resources
Index

Camera API or Capture API?


The PhoneGap framework implements two different APIs to access media on a device: the Camera API and the Capture API. The main difference between these APIs is that the Camera API can access only the default device camera application, whereas the Capture API can also record audio or video using the default audio and video recording application. Another important difference is that the Capture API allows multiple captures with a single API call.

Note

The Capture API is an implementation of an abandoned W3C standards draft. As you can see, there are several similarities between the draft and the actual PhoneGap implementation.