+ 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
.getBroadcastStream(conn.getScope(), broadcastid);
if (stream == null) {
log.debug("Unable to get stream: " + streamName);
return;
}
// Save the stream to disk.
if (isScreenData) {
StreamVideoListener streamScreenListener = new StreamVideoListener(streamName,
conn.getScope(), flvRecordingMetaDataId, isScreenData,
isInterview, flvRecordingMetaDataDao);
streamListeners.put(flvRecordingMetaDataId, streamScreenListener);
stream.addStreamListener(streamScreenListener);
} 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);
StreamAudioListener streamAudioListener = new StreamAudioListener(streamName,
conn.getScope(), flvRecordingMetaDataId, isScreenData,
isInterview, flvRecordingMetaDeltaDao, flvRecordingMetaDataDao);
streamListeners.put(flvRecordingMetaDataId, streamAudioListener);
stream.addStreamListener(streamAudioListener);
}
// Just for Debug Purpose
// stream.saveAs(streamName+"_DEBUG", false);
} catch (Exception e) {
log.error("Error while saving stream: " + streamName, e);