Connect to Wowza Streaming Engine with GoCoder SDK for iOS

You can configure an iOS app created with Wowza GoCoder™ SDK to broadcast or play a live stream from a Wowza Streaming Engine™ media server software instance. First create a live application in Wowza Streaming Engine, then use the application's connection settings in a WOWZStreamConfig object created in the SDK.

Create a live application in Wowza Streaming Engine


Configure the stream in GoCoder SDK for iOS


  • Use the information from your Wowza Streaming Engine instance and application in a WOWZStreamConfig object.
Property Description
applicationName The name of the live streaming application in Wowza Streaming Engine, for example, live.
hostAddress The IP address for your Wowza Streaming Engine instance. Use the Host - Server specified in the Application Connection Settings panel on the Home page of Wowza Streaming Engine Manager.
password The password for source authentication, if any. Use the Source Password specified on the Source Authentication page of Wowza Streaming Engine Manager.
portNumber The port number for the server connection. Use the Host - Port specified in the Application Connection Settings panel on the Home page of Wowza Streaming Engine Manager (1935 by default).
streamName The name of the stream, for example myStream.
username The user name for source authentication, if any. Use the Source Username specified on the Source Authentication page of Wowza Streaming Engine Manager.
 
Note: Your mobile device must be able to reach your Wowza Streaming Engine server. To see if it can, enter the following URL in your mobile device's browser: http://[hostAddress]:[portNumber]/crossdomain.xml.

Connect a WOWZStreamConfig object to Wowza Streaming Engine.

goCoderBroadcastConfig.hostAddress = @"192.168.1.120";
goCoderBroadcastConfig.portNumber = 1935;
goCoderBroadcastConfig.applicationName = @"live";
goCoderBroadcastConfig.streamName = @"myStream";
goCoderBroadcastConfig.username= @"[username]";
goCoderBroadcastConfig.password = @"[password]";

More resources