#30 WIP on using the new apache mina library

This commit is contained in:
Denny
2016-12-18 09:09:47 -05:00
parent d085ecc0c9
commit 1d7354b4a8
6 changed files with 228 additions and 277 deletions

View File

@@ -151,6 +151,22 @@ public abstract class AudioBroadcaster implements IAudioPacketListener
}
}
/**
* Stream name for the broadcast configuration for this broadcaster
* @return stream name or null
*/
public String getStreamName()
{
BroadcastConfiguration config = getBroadcastConfiguration();
if(config != null)
{
return config.getName();
}
return null;
}
/**
* Size of recording queue for recordings awaiting streaming
*/
@@ -246,7 +262,7 @@ public abstract class AudioBroadcaster implements IAudioPacketListener
{
if(mBroadcastState != state)
{
mLog.debug("Changing State to: " + state);
mLog.debug("[" + getStreamName() + "] changing state to: " + state);
mBroadcastState = state;
broadcast(new BroadcastEvent(this, BroadcastEvent.Event.BROADCASTER_STATE_CHANGE));