How To Build A Video Streaming App For Android Native (Java/Kotlin)

Jason Wills
EnableX.io
Published in
3 min readFeb 7, 2022

In this post, we will look at how to build a video streaming app for Android Native EnableX Low-Code Video Embed and Android Native (Java/Kotlin).

To gain understanding about the Low Code Video Embed, read the following blogs:

Prerequisites

Create a Project

To start with, create a Video Embed Project in the EnableX portal:

  • Go to the EnableX portal. If you do not have an account, Signup here.
  • Next, “Create Projects”, enter relevant information.
  • Now, select “Video Embed” in the “Service” section.
  • Once you are done with project creation, “APP ID” and “APP Key” are generated. You will require these credentials (“APP ID” and “APP Key”) later to gain access in the EnableX Meeting Room.

Therefore, it is advisable to save this for further use (see Embed the Meeting URL).

Let’s Start Building

  • Open Android Studio and select — Start a new Android Studio project.
  • On the Choose your project panel, select > Phone and Tablet > Empty Activity, and then click Next.
  • Now, click Finish. Follow the on-screen instructions if you need to install any plug-ins.

Add Required App Permissions

Add required permissions (for camera/audio media) in the /App/Src/Main/AndroidManifest.Xml file for device access according to your needs:

You need to use Webview class. Create custom WebChromeClient class and override onPermissionRequest method:

Then, create a WebUtils helper class to configure the WebView. Here is a possible configuration:

Finally, setup your activity following these steps:

  • Configure the webView.
  • Request the permissions if needed.
  • Add the? skipMediaPermissionPrompt parameter to the room URL and load it.

Here is an example:

Hey! You can go live now.

To conclude

We hope you will find this blog useful and easy to follow, even if you have not built a livestreaming app before.

To try it out, simply sign up here for free

--

--

EnableX.io
EnableX.io

Published in EnableX.io

Leading Full Stack Communication Platform as a Service (CPaaS) provider

Jason Wills
Jason Wills

Written by Jason Wills

Hi there. I am a product specialist with great interest in WebRTC, mobile app development, and anything that is relating to producing engaging communications