You can configure an Android app created with the Wowza GoCoder™ SDK to broadcast to a Wowza Streaming Engine™ media server software instance. First create a live application in Wowza Streaming Engine, then use the application and server's connection settings in a WOWZBroadcastConfig object created in the SDK.
Before you begin
Before adding the functionality below to your app, make sure you've set up the Wowza GoCoder SDK for your project:
- Request a free license and download the latest version of the SDK.
- Configure your Android Studio project to use the SDK.
See Download and install GoCoder SDK for Android for detailed instructions.
Create a live application in Wowza Streaming Engine
- Configure a live application in Wowza Streaming Engine to use an RTMP stream from your SDK app. For instructions, see Set up live streaming using an RTMP-based encoder in Wowza Streaming Engine.
Configure the broadcast in GoCoder SDK for Android
- Use the information from your Wowza Streaming Engine instance and application in a WOWZBroadcastConfig 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 WOWZBroadcastConfig object to Wowza Streaming Engine.
goCoderBroadcastConfig.setHostAddress = @"192.168.1.120"; goCoderBroadcastConfig.setPortNumber = 1935; goCoderBroadcastConfig.setApplicationName = @"live"; goCoderBroadcastConfig.setStreamName = @"myStream"; goCoderBroadcastConfig.setUsername= @"[username]"; goCoderBroadcastConfig.setPassword = @"[password]";