Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ionic Cookbook

You're reading from   Ionic Cookbook Over 35 exciting recipes to spice up your application development with Ionic

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781785287978
Length 264 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Hoc Phan Hoc Phan
Author Profile Icon Hoc Phan
Hoc Phan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating Our First App with Ionic FREE CHAPTER 2. Managing States and Navigation 3. Adding Device Features Support 4. Offline Data Storage 5. Handling Gestures and Events 6. App Theme Customization 7. Extending Ionic with Your Own Components 8. User Registration and Authentication 9. Saving and Loading Data Using Firebase 10. Finalizing Your Apps for Different Platforms Index

Capturing video and allowing playback

It's possible to capture video using Ionic. There is a different plugin called Cordova Media Capture, which allows more flexible access to audio and video capability. ngCordova also ported this plugin to create the $cordovaCapture service (http://ngcordova.com/docs/plugins/capture/).

This is very convenient because you just need to call any of those three functions:

  • $cordovaCapture.captureAudio
  • $cordovaCapture.captureImage
  • $cordovaCapture.captureVideo

You could use this plugin for taking a photo as well, but it doesn't have a rich set of features like the Cordova Camera plugin does. The Media Capture plugin only provides access to the video camera to play back or update the resulting video file to a backend server. You cannot use this plugin to perform video processing such as adding text, animation, and special effects.

In this section, you will create a small app with a video capture button. You will learn how to create a video directive so that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime