Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++DelphiTech Partner

Custom Audio And Video Recording Library On Android From WINSOFT For Delphi

Overview

All photo and video editing applications utilize some kinds of media libraries to make their job easy. This article is about the Media Recorder component for Android by WINSOFT. This Media Recorder component for Android uses Android MediaRecorder API and provides audio and video recording functionality.

The Android MediaRecorder API includes support for capturing and encoding a variety of common audio and video formats. 

Intro

This is a commercial library that has a trial version with all features for evaluation only and if you wish to distribute the Media Recorder component as a part of your project you should get a license.

Moreover, some of the demo applications built with the TACamera component for Android by WINSOFT. 

Specifications

  • Supports Windows 32 & Windows 64
  • Available for Delphi & C++ Builder 6-10.4 FMX

Configuration

The installation of this Media Recorder component is easy, you just need to download the installer and run the installer. RAD Studio should be closed while installing.

Development

The UI is simple, we have the Settings button which requests permission and shows the camera settings. The Start button starts capturing, it can be a Stop button when it is capturing. Take Picture button takes a picture and we have a triggered function that ensures the photo taking is finished and saves the data to .jpeg file.

Here is the implementation for the Take Picture button and the PictureTaken procedure.

Within the TTimer component, we can set output file format and path.

As you can see after giving the path and format, it changes Active status to True and starts recording. 

TAMediaRecorder component has many built-in features to use. For instance, you can set VideoEncodingBitRate, VideoFrameRate, Video Encoding types like H263, Mpeg4SP, and many more options to utilize.

Here is the list of all the features of the TAMediaRecorder component:

In the next post, we will see how we can record audio with the TAMediaRecorder component.

Head over and check out the full WINSOFT Media Recorder component!


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Related posts
C++Code

C++ Lambda Expressions for Beginners

DelphiShowcase

Incredible Real-Time Mobile App Is Built With Delphi

DelphiShowcase

Powerful Real-Time Retail Dashboard App is Powered by Delphi

DelphiRAD StudioTech Partner

How To Make An Epic Dashboard Visualization For Windows, Mobile And The Web The Easy Way

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES