log.debug("Name of CLient and Stream to be recorded: "+broadcastid);
//log.debug("Application.getInstance()"+Application.getInstance());
log.debug("Scope "+conn);
log.debug("Scope "+conn.getScope());
// Get a reference to the current broadcast stream.
ClientBroadcastStream stream = (ClientBroadcastStream) ScopeApplicationAdapter.getInstance()
.getBroadcastStream(conn.getScope(), broadcastid);
// Save the stream to disk.
if (isScreenData) {
stream.addStreamListener(new StreamScreenListener(streamName, conn.getScope(), flvRecordingMetaDataId, isScreenData, isInterview));
} else {
log.debug("### stream "+stream);
log.debug("### streamName "+streamName);
log.debug("### conn.getScope() "+conn.getScope());
log.debug("### flvRecordingMetaDataId "+flvRecordingMetaDataId);
log.debug("### isScreenData "+isScreenData);
log.debug("### isInterview "+isInterview);
if (isInterview) {
//Additionally record the Video Signal
stream.addStreamListener(new StreamScreenListener("AV_"+streamName, conn.getScope(), flvRecordingMetaDataId, isScreenData, isInterview));
}
stream.addStreamListener(new StreamAudioListener(streamName, conn.getScope(), flvRecordingMetaDataId, isScreenData, isInterview));
}
//Just for Debug Purpose
//stream.saveAs(streamName+"_DEBUG", false);
} catch (Exception e) {
log.error("Error while saving stream: " + streamName, e);