Hey list,
I'm trying to get some notification on incoming microphone streams,
I've made an application which extends ApplicationAdapter and implements IStreamAwareScopeHandler:

public void streamPublishStart(IBroadcastStream stream) {
        log.debug("stream publish start: " + stream.getPublishedName());
}

public void streamBroadcastStart(IBroadcastStream stream) {
        log.debug("stream object = " + stream);
        log.debug("stream broadcast start: " + stream.getPublishedName());
        log.debug("has audio? "+ stream.getCodecInfo().hasAudio());
        log.debug("codec = " + stream.getCodecInfo().getAudioCodecName());
        log.debug("stream name = " + stream.getName());
}

And in the flash app (snippets only, the flash app records audio correctly):
user_mic = Microphone.getMicrophone();
out_ns = new NetStream(client_nc);
out_ns.attachAudio(user_mic);
out_ns.publish("my_recorded_stream", "record");

but when I watch the log files I see these:
[DEBUG] 33176 pool-1-thread-5:( java.lang.Class.debug ) stream object = [EMAIL PROTECTED]
[DEBUG] 33177 pool-1-thread-5:( java.lang.Class.debug ) stream broadcast start: null
[DEBUG] 33177 pool-1-thread-5:( java.lang.Class.debug ) has audio? false
[DEBUG] 33178 pool-1-thread-5:( java.lang.Class.debug ) codec = null
[DEBUG] 33178 pool-1-thread-5:( java.lang.Class.debug ) stream name = b62442db-fd28-4321-979f-6b7595135073
[DEBUG] 37077 pool-1-thread-6:( java.lang.Class.debug ) stream broadcast close: null

so, streamPublishStart hasn't started and streamBroadcastStart doesn't seem to know that this is an audio stream.
am I missing something or red5 doesn't handle pure audio streams?
If it doesn't, where in the code can I start modifying?

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to