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

Presentation

Nex Gen Media Server is most popular as a multi-reason media streaming server to convey live and put away video to various gadgets. Similar media server can be installed into a versatile application to work with continuous video correspondence. Here we will utilize the NGMS API to work with building a video visit client for Android gadgets utilizing the Android Software Developer Kit (SDK) and Google Android Native Developer Kit (NDK).

We will utilize NGMS to give all of the organization transport RTP administrations, video outline pressure and decompression. NGMS will run as a locally incorporated shared object utilized by our Android application. We will utilize a Java Native Interface (JNI) connecting layer to conjure local strategies from Java application code.

Pre-requisistes

This article expects that you have an essential comprehension and basically a middle of the road level of involvement building Android applications. I won’t go over the subtleties of setting up and Android project in an iDE like Eclipse. On the off chance that you have recently made Android applications, or possibly went through some model instructional exercises you ought to have the option to use this instructional exercise to make a continuous video web based client.

In the event that you haven’t proactively 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. best video chat app The java application layer is utilized to make the real Android application. The application code will communicate with a JNI layer to conjure the NGMS API schedules.

You will likewise have 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 connection point layer which fills in as the paste between the local code and Java application code. You ought to likewise have an essential comprehend of the C programming language.

You ought to initially start by making a skeleton Android application utilizing an IDE like 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 project index ought to contain an envelope called “jni” which will contain the local sources used to interact with the Java application code. The model beneath expects that you have a skeleton Android application working and will tell you the best way to incorporate an ExampleChat class into your Android project.

The Native Layer

The NGMS center implanted library is written in C and is bundled as a common item document. 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 parts 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 visit administrations.

The JNI Layer
We will construct a common library called ngmsglue.so which will act as the paste between the ngms API and our Java application code. The construction of the Java Native Interface (JNI) catalog inside your ngmsclient project index ought to seem to be this.

Author Image
admin

Leave a Reply

Your email address will not be published.