Copying/duplicating an RTP stream?

  • Thread starter Thread starter Claes Mogren
  • Start date Start date
C

Claes Mogren

Hey!

I'm wondering what the best way to clone/duplicate/copy a stream is?
The application is supposed to accept an RTP stream and forward the
data (video frames) to one or more clients. Is the best way really to
buffer everything in an array? (Low latency is important)

Thankful for hints on what to use!
/Claes Mogren
 
Claes,

There is really no support for this in .NET (unlike in COM, where the
IStream interface defined a copy method).

The only way I can think of is to copy it into memory, into a
MemoryStream, and then play that back as you wish. As low latency is
important, I would make sure that you have a good amount of physical memory
on the machine as well.

Hope this helps.
 
Thanks a lot Nicholas!

Then a MemoryStream it is. Just wanted to make sure I didn't do some
stupid mistake.

/C.M :)
 
Back
Top