yes. But I will probably start out small, because I don't want to introduce 3rd party libs into the baseline, or pom.xml files for examples.
-- ..Cheers Mark On 5/8/07, Brigham Stevens <[EMAIL PROTECTED]> wrote:
I think having some bigger examples would be cool and audio serving sounds fun! ;) # -----Original Message----- # From: Maarten Bosteels [mailto:[EMAIL PROTECTED] # Sent: Tuesday, May 08, 2007 8:40 AM # To: [email protected] # Subject: Re: MINA and UDP # # Mark, # # I am sure that writing an audio-server based om MINA is very # cool :-) but I wonder if it's a good idea for a tutorial ? # IMHO a tutorial should concentrate on the MINA stuff and # really minimize everything that is not related to MINA. # It could be an interesting showcase however ... # # Just my two cents, # Maarten # # # On 5/8/07, Mark Webb <[EMAIL PROTECTED]> wrote: # > # > I have been messing around with writing a jitter buffer # class, but am # > running into roadblocks. The Piped*Stream stuff does not # seem to be # > working. Do you have any pointers? # > # > Thanks. # > -- # > ..Cheers # > Mark # > # > # > On 5/7/07, Greg Duffy <[EMAIL PROTECTED]> wrote: # > > First, pick a simple format to stick to: e.g. 8000Hz, 8-bit, mono, # > linear # > > PCM. # > > # > > You can open an audio output line through the Java AudioSystem # > (tutorials # > > for this can be Googled). Then, write some simple jitter # buffer code. # > For # > > example, with this format, you can buffer 800 bytes (100ms), and # > > just # > write # > > silence to the line until the buffer is full. (In the real world, # > > this # > would # > > be dynamically sized and do re-buffering, etc) # > > # > > Let the MINA DatagramConnector connect to a DatagramAcceptor. # > IoConnector # > > session sends a hello message. The IoAcceptor session # starts writing # > > the # > raw # > > PCM out in ~20ms (160 byte) packages. The IoConnector session # > > receives # > the # > > messages and stuffs the bytes into your jitter buffer to # be written # > > out # > to # > > the audio line in a separate thread. # > > # > > Does that cover it? I think that's a simple enough # example, and it # > > would # > be # > > pretty cool too! # > > # > > -Greg # > > # > > On 5/6/07, Mark Webb <[EMAIL PROTECTED]> wrote: # > > > # > > > That is about what I planned on doing for a tutorial. # Best case # > > > scenario, the tutorial would only rely on the JDK and need no # > > > outside libraries in order to function. Because after all, a # > > > tutorial should not be overly complex. # > > > # > > > What are your thoughts? # > > > # > > > # > > > On 5/6/07, Greg Duffy <[EMAIL PROTECTED]> wrote: # > > > > JMF is really in need of an update (and I'm being # nice), but I # > > > > have # > done # > > > > exactly that before. The SIP/RTP stuff I wrote doesn't use JMF # > (partly # > > > for # > > > > this reason), but it can do an echo back to a SIP # phone (X-lite, # > Ekiga, # > > > > etc). However, it is probably too much for a tutorial. # > > > > # > > > > What if you wrote a simple streaming audio client/server? The # > > > > client # > > > says # > > > > hello to the server which streams some raw linear PCM # audio from # > > > > a # > WAV # > > > file. # > > > > You could use JMF to play it back on the client. # > > > > # > > > > I can provide some pointers if you have any specific # questions ... # > > > > # > > > > -Greg # > > > > # > > > > On 5/6/07, Mark Webb <[EMAIL PROTECTED]> wrote: # > > > > > # > > > > > I actually thought about writing an example program # that uses # > > > > > the # > Java # > > > > > Media Framework to receive audio via UDP. I just started # > > > > > looking # > into # > > > > > the idea, so I can't say that I am some sort of # expert on JMF, # > > > > > or # > any # > > > > > type of multimedia using UDP. # > > > > > # > > > > > On 5/6/07, Greg Duffy <[EMAIL PROTECTED]> wrote: # > > > > > > I am working on a new datagram transport # implementation for # > MINA. # > > > Also, # > > > > > I # > > > > > > have some code for SIP/RTP (both UDP, SIP over TCP in the # > future) # > > > with # > > > > > MINA # > > > > > > that I will be open sourcing soon (for certain # values of 'soon' # > :). # > > > > > > # > > > > > > I am currently in flux moving to a new state # (TX->CA) and a # > > > > > > new # > job, # > > > but # > > > > > I # > > > > > > may be able to help out a bit. # > > > > > > # > > > > > > -Greg # > > > > > > # > > > > > > On 5/6/07, Mark Webb <[EMAIL PROTECTED]> wrote: # > > > > > > > # > > > > > > > Is there anyone who is doing work with MINA and UDP? I # > > > > > > > have # > been # > > > > > > > working on a UDP tutorial and also an example # program that # > > > > > > > I # > can # > > > add # > > > > > > > to the 2.0 baseline for people to take a look at. # > > > > > > > # > > > > > > > Let me know what you think. # > > > > > > > Thanks # > > > > > > > # > > > > > > > -- # > > > > > > > ..Cheers # > > > > > > > Mark # > > > > > > > # > > > > > > # > > > > > # > > > > > # > > > > > -- # > > > > > ..Cheers # > > > > > Mark # > > > > > # > > > > # > > > # > > > # > > > -- # > > > ..Cheers # > > > Mark # > > > # > > # > #
