How to Build a GoCoder Sample App for Android With Wowza Streaming Engine

September 20, 2018 by


Want to build live video streaming into your iOS app to better engage users, but don’t have streaming expertise? If you use the Wowza GoCoder SDK, you don’t have to. Its robust developer toolkit gives even those without experience the ability to easily integrate professional-grade live video streaming into new or existing mobile apps, minimizing development time and maximizing user engagement.

In this video, we’ll walk you through the process of using the GoCoder SDK and Wowza Streaming Engine™ media server software to build a sample live streaming app for Android devices. Before you get started, make sure you’ve downloaded Wowza GoCoder for free. Don’t have Wowza Streaming Engine yet? Sign up for a free trial to see how easy the process of building an end-to-end live video streaming solution can be.

Full Video Transcript:

Justin Miller: Hi. In this video, we’re going build a sample live-streaming app for Android, using Wowza GoCoder SDK and Wowza Streaming Engine. This app will allow us to both broadcast and play back live video streams, as well as demonstrate a few other things you can do with live broadcasts.

First, let’s go to the Wowza developer’s site and start a trial with Wowza GoCoder SDK. This 30-day trial makes it easy to start developing streaming video apps in conjunction with the Wowza Streaming Engine instance. When signing up, I recommend using an Android package name, such as “[thenameofyourcompany].com.wowza,” just to keep it simple for this trial.

Once you’re signed up, you’ll receive an email containing your license key and a link to download the most recent GoCoder SDK.

Download the .zip file, and then locate the .zip file on your computer. Extract the .zip file to your hard drive and then open up Android Studio, choosing to open an existing studio project by selecting the sample app directory.

You may also, during this process, need to upgrade the Android Gradle version. But when everything is loaded, go to the top and build the app in your Android device. It’s that simple.

Once the build’s complete, you’ll see GoCoder SDK open up on your Android device. Now, as I mentioned, the sample app can do more than just broadcast and play back. There are a number of sample functions you can test out. But let’s focus on streaming your broadcast from this Android device and playing back a broadcast.

To do either requires a service to process your video stream. For processing, let’s go to the Wowza developer site and start a trial for Wowza Streaming Engine. An engine trial is limited, but it’s great for test purposes. After signing up for Wowza Streaming Engine, you’ll receive an email with your license key. Download the most recent version of Wowza Streaming Engine for your specific operating system and install it on your computer. In the future, you may want to think about a server setup or using Azure or an EC2 instance on AWS.

For now, we’ll enter our license and then set up the admin account with a username and password. Once the install’s finished, open up Wowza Streaming Engine and sign into the interface. Go to “Server” and locate “Source Authentication.” You’ll need to create a source username in order to connect to Wowza Streaming Engine for broadcast.

Now go under “Applications.” You’ll see, under “Live Applications,” that one named “Live” has already been made for you. Click on it and go to Sources Live. Using the configure information for Wowza GoCoder, we’ll manually enter this into GoCoder SDK on our Android device.

For the sake of this demonstration, I’m going to use two Android devices to show broadcast and playback functionality. Back on your Android device, go to Stream Live Video and Audio, and using the cog, enter the connection settings. When entering these settings, be sure to reference the source authentication username and password. While we’re entering this information, let’s also go to the other Android device and enter the same information under Play a Live Stream.

Now we’re ready to go. We can start the broadcast to stream on one Android device and then play back that broadcast on another.

That’s it for building the sample app. Start developing your own app with GoCoder SDK today with Wowza.