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

September 18, 2018 by


So you want to build live video streaming into your iOS app in order to create a unique experience and engage your end users—but you don’t have streaming expertise. With the Wowza GoCoder SDK, you don’t have to. This robust developer toolkit gives even those with only basic knowledge 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 below, 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 iOS. 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 to build a sample live streaming app for iOS using Wowza GoCoder SDK and Wowza Streaming Engine. This app will both broadcast live video as well as play back a specific stream.

First, let’s go to the Wowza developer’s site and start a trial for Wowza GoCoder SDK. This 30-day trial makes it easy to start developing streaming video apps in conjunction with a Wowza Streaming Engine instance. When signing up, I recommend using an iOS bundle identifier, 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. It’s the most recent release that allows you to build a sample app that both broadcasts and plays back the live stream.

Download the .zip file and then locate it on your Mac. Unzip the file. And within the sample apps directory, you’ll need to open all sample apps.xc workspace. You should open this up in Xcode once you’ve okayed the file. When it’s open in Xcode, you can go to the top and select the scheme “SDK sample app player” and your iOS device where you’ll build the app.

For this build to run, we’ll need to change a few settings. Go into the Objective-C folder and select “Wowza GoCoder SDK sample player app.” Here, under “general,” we’ll enter our bundle identifier, making sure we’re using the correct Apple ID. And then once we know our Apple ID is working, we’ll set up our team.

Now, we’ll also need to add the license key. Under the sample app player, find the SDK sample app folder where a file video player view, controller.m, is located. In this file, replace the sample app player license key with the one sent via email. When you’re ready, start the build on your iOS device. When it’s complete, you should see GoCoder SDK on your iOS device. For it to work, or even some cases build, you’ll need to go to “settings” and in “general,” find “device management.”

Here, select your developer app and choose to trust that developer. Once you’ve done this, you should be able to open the app. As I mentioned, the sample app has two options: broadcast and play back. This means you can both stream your broadcast from the iOS device and play back a broadcast someone else is streaming. To do either requires processing your video stream.

Now for processing, let’s go back to the Wowza developer’s 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 set up or using Azure or an EC2 instance on AWS.

For now, let’s enter our license key and then set up the admin account with the user name and password. I recommend unchecking “start Wowza Streaming Engine automatically” before completing the install. Once the install is finished, you can then go under applications to the install directory and start services. It’s from this directory, you can manually start and stop Wowza Streaming Engine whenever you want to. Now, we’ll use the shortcut to open up Wowza Streaming Engine and sign into the interface.

Once signed in, go to server and locate source authentication. You’ll need to create a source user name in order to connect to Wowza Streaming Engine for broadcast. Now let’s go under “applications”; you’ll see under “live applications” that one named “live” has already been created for you. Click on it and go to “sources live.” Using the configure information for Wowza GoCoder, we’ll manually enter this information into GoCoder SDK on our iOS device.

Now of the sake of this demonstration, I’m going to use two iOS devices to show broadcast and playback functionality. Back on your iOS device, go to “broadcast.” And using the cog, enter the Wowza broadcast settings. When entering these settings, be sure to reference the source authentication user name and password. And while we’re entering this information, let’s also go onto the other iOS device and enter the same information under “playback.”

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

Well, that’s it for building a sample app. Start developing on your own today with GoCoder SDK from Wowza.