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

September 19, 2018 by


If you want to build a live-streaming app for iOS, you don’t have to be a video expert. Using a mobile SDK and cloud streaming service can help you quickly and easily integrate live video into an existing app or service, or build a livestream app from the ground up.

This video tutorial will help you get started using the Wowza GoCoder™ SDK and the Wowza Streaming Cloud™ service. Using these tools, you can build anything from a basic one-way broadcasting platform to a fully interactive live-streaming app that allows users to create and share their own videos.

Watch this video to see how easy it is to build a sample livestream app for iOS that will allow you to both broadcast and play back a live video stream.

Want to learn more? Check out our documentation:

How to Install GoCoder SDK for iOS

How to Connect to Wowza Streaming Cloud With GoCoder SDK for iOS

Full Video Transcript:

Justin Miller:In this video, we’re going to build a sample live-streaming app for iOS using Wowza GoCoder SDK and Wowza Streaming Cloud. This app will allow us to both broadcast a live video stream, or play back a specific stream.

In this video, we’re going to build a sample live-streaming app, for iOS using Wowza GoCoder SDK and Wowza Streaming Cloud. This app will allow us to both broadcast a live video stream, or play back a specific stream.

First, let’s go to the Wowza Developer Site and start a trial for Wowza GoCoder SDK. This 30-day trial makes it easy to start developing streaming video apps using Wowza streaming services. When signing up, I recommend using an iOS Bundle Identifier, such as “[the name of your company].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 a live stream.

Download and then locate the .zip file on your Mac. Unzip the file, and within the “sample-apps” directory, you’ll need to open AllSampleApps.xcworkspace. This should open up in Xcode, once you “okay” the file. When it’s opened in Xcode, you can go to the top, and the select the scheme SDKSampleAppPlayer, 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 “object-c” folder, and select the SamplePlayerApp. Here, under “general,” we’ll enter our Bundle Identifier, make 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 SampleAppPlayer, find the “SDK Sample App” folder where the file VideoPlayerViewController.m is located. In this file, replace the SDKSampleAppLicenseKey with the one sent via Email.

When you’re ready, start the build to your iOS device. When it’s complete, you should see GoCoder SDK on your iOS device. For it to work, or in 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 Playback. This means you can both stream your broadcast from this iOS device, or play back a broadcast someone else is streaming. To do either requires a service to process your video stream. Processing includes the delivery to where it’s going to be played back, be that either one person, or a million people across the globe.

For processing, let’s go to the Wowza Developer Site and start a trial for Wowza Streaming Cloud. A Cloud trial is limited, but it’s great for test purposes. When you’re ready to get serious with API calls or low-latency streaming, you’ll need a full account.

Until we can start making API calls to create streams, we’ll need to do this manually though the Wowza Streaming Cloud account interface. In the top menu, select Add Live Stream There are a ton of configurations to perfect the stream we’re creating, but to keep it simple, let’s name it “GoCoder Test,” select the location closest to where you’ll be broadcasting from, then click Next. On the following screen, choose Wowza GoCoder as the encoder. We’ll click Next through all the additional screens, and then on the last screen, click Finish.

Now the stream has been created. The next step is to manually enter the Source Connection Information into GoCoder SDK on our iOS device. Remember, in the future you’ll be able to use API calls for this, including entering the broadcast and playback information. For now, we’ll need to do so manually.

For the sake of this demonstration, I’m going to use two iOS devices to show broadcast and playback functionality. But you can always broadcast using another live-streaming encoder system, or play back on your computer through our Wowza Player embedded on any web page.

Back on your iOS device, go to Broadcast, and using the cog, enter the Wowza Broadcast Settings. Be sure the primary server information is separated into Host Address and Application Name. I’ll also go on my other iOS device and enter the same information under Playback.

Once we’re ready to go, we’ll need to start the live stream on Wowza Streaming Cloud. Once it’s started, we can broadcast the stream on one iOS 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.