// // The callback invoked upon changes to the state of the broadcast //
@Override public void onWZStatus(final WOWZBroadcastStatus goCoderStatus) {
// A successful status transition has been reported by the GoCoder SDK
final StringBuffer statusMessage = new StringBuffer("Broadcast status: ");
switch (goCoderStatus.getState()) {
case WOWZBroadcastStatus.BroadcastState.READY:
statusMessage.append(“Ready to begin broadcasting”);
break;
case WOWZBroadcastStatus.BroadcastState.BROADCASTING:
statusMessage.append(“Broadcast is active”);
break;
case WOWZBroadcastStatus.BroadcastState.IDLE:
statusMessage.append(“The broadcast is stopped”);
break;
default:
return; }