View logs and reports with GoCoder SDK for iOS

Learn how to collect device information, status and error reports, and logs with Wowza GoCoder™ SDK for iOS.

Before you begin


Before adding the functionality below to an 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 Xcode project to use the SDK.

See Download and install GoCoder SDK for iOS for detailed instructions.

Collect device and SDK information


Use the WOWZVersionInfo and WOWZPlatformInfo classes, respectively, to retrieve information about the Wowza GoCoder SDK version and the device running the app.

// Retrieve the SDK version information
NSLog(@"SDK Version Information: %@", [WOWZVersionInfo string]);
// Retrieve the device and platform information
NSLog(@"Platform and Device Information: %@", [WOWZPlatformInfo string]);

Collect status and error reports


Many of the Wowza GoCoder SDK classes use instances of the WOWZBroadcastStatus class and WOWZPlayerStatus class to return the status of components and processes.

Collect status and errors for broadcast

The WOWZBroadcastStatus class contains two types of properties:

  • State indicates that a component, such as a broadcast stream, is broadcasting, ready, or idle. 
  • Error indicates that an error occurred. The error property is an instance of the standard iOS NSError class.

The following example shows how to check the broadcast status for an error:

// Retrieve the SDK broadcast status and check for an error
if (self.goCoderSDK.status.state == WOWZBroadcastStateIdle && self.goCoderSDK.status.error != nil) {
  NSLog(@"An SDK error occurred: %@", [self.goCoderSDK.status.error localizedDescription]);
}

Collect status and errors for playback

The WOWZPlayerStatus class contains two types of properties:

  • State indicates that a component, such as a playback stream, is idle, connecting, buffering, playing, or stopping. 
  • Error indicates that an error occurred. The error property is an instance of the standard iOS NSError class.

The following example shows how to check the player status for an error:

// Retrieve the SDK player status and check for an error
if (self.goCoderSDK.status.state == WOWZPlayerStateIdle && self.goCoderSDK.status.error != nil) {
  NSLog(@"An SDK error occurred: %@", [self.goCoderSDK.status.error localizedDescription]);
}

Collect logs


The Wowza GoCoder SDK uses the iOS NSLog function to send log outputs to the Apple System Log facility.

More resources