Where should I send the channelbuffer in streaming media program?
Michael Tan
fantasysoft at gmail.com
Mon Jul 26 23:50:45 EDT 2010
Dear all, I'm developing some program that sends streaming media, such as
audio and video. Now is very beginning stage. To me, the first important
question is where should I send the channelbuffer.
According to the Netty Guide, I try to put the channel.write(channelbuffer)
into event handler, such as channelBound, messageReceived methods. If only
call channel.write(channelbuffer) in concrete times, this way works. But for
the streaming media, we need one infinite loop for sending channelbuffer. If
I put the infinite loop into channelBound and messageReceived method, any
channelbuffer isn't sent through channel.
So I put the infinite loop into main tread, it works as I expect. But is
this way OK? And why the way putting infinit loop into event handler fails?
I'm waiting for any reply. Thanks!
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Where-should-I-send-the-channelbuffer-in-streaming-media-program-tp5340776p5340776.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list