Build a Mobile Video Chat Framework With Nex Gen Media Server (NGMS) API

Nex Gen Media Server is best known as a multi-reason media gushing server to convey live and put away video to an assortment of gadgets. Similar media server can be inserted into a portable application to encourage ongoing video correspondence. Here we will utilize the NGMS API to encourage building a video talk customer for Android gadgets utilizing the Android Software Developer Kit (SDK) and Google Android Native Developer Kit (NDK).

We will utilize NGMS to give the majority of the system transport RTP administrations, video outline pressure and decompression. NGMS will keep running as a locally incorporated shared item utilized by our Android application. We will utilize a Java Native Interface (JNI) crossing over layer to summon local strategies from Java application code.

Pre-requisistes

This article accept that you have a fundamental comprehension and in any event a middle of the road level of experience building Android applications. I won’t go over the subtleties of setting up and Android venture in an iDE, for example, Eclipse. In the event that you have recently made Android applications, or if nothing else experienced some model instructional exercises you ought to have the option to use this instructional exercise to make an ongoing video gushing customer.

On the off chance that you haven’t just done as such, you should download the Google Android SDK (Software Developer Kit). In this model I utilized Revision 15 on a Linux 32bit machine. The java application layer is utilized to make the real Android application. The application code will interface with a JNI layer to summon the NGMS API schedules.

You will likewise need to download the Google Android NDK (Native Developer Kit). In this model I utilized Revision 6b on a Linux 32bit machine. The NDK will be utilized for making the local interface layer which fills in as the paste between the local code and Java application code. You ought to likewise have a fundamental comprehend of the C programming language.

You should initially start by making a skeleton Android application utilizing an IDE, for example, Eclipse. In this model, the application will be called ngmsclient. The Java bundle name will be called com.example.ngmsclient and will target Android OS 2.3 or higher. The root venture index ought to contain an organizer called “jni” which will contain the local sources used to interface with the Java application code. The model beneath expect that you have a skeleton Android application working and will tell you the best way to coordinate an ExampleChat class into your Android venture.

The Native Layer

The NGMS center implanted library is written in C and is bundled as a mutual article record. Since the Android OS depends on Linux, the NGMS center library will run locally inside your Android application space. You should acquire the NGMS center library for Android OS from the ngmsvid.com site. The fundamental segments are the library records libngms.so, libxcode.so, and the header document ngmslib.h. The ngms bundled.so records will be bundled alongside your ngmsclient.apk to give video talk administrations.

The JNI Layer

We will construct a mutual library called ngmsglue.so which will fill in as the paste between the ngms API and our Java application code. The structure of the Java Native Interface (JNI) catalog inside your ngmsclient venture index should resemble this.

Add a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!