[Live-devel] Multicast streams from multiple devices

Ross Finlayson finlayson at live.com
Sun Apr 24 19:38:24 PDT 2005


>On the other hand, we've been having a few issues while trying to
>stream from more than one device (camera). The folowing code is a
>method that let's us add a stream for a camera at any time, the
>problem, is that when we add more than one, the streams seems to
>overlap each other (i.e. we'll see part of the first camera and part
>of the second at the same time). Can you see anything wrong with my
>code?

Martin,

I haven't looked at your code in detail, because I first want to clarify 
what you're trying to do.  In particular, do you really want to stream from 
multiple cameras to the same multicast address and port?  Because that's 
what your code appears to do.  (It uses a single "rtpGroupsock", which will 
send to a single, specific (multicast address,port).)

If you really want to stream from multiple cameras to the same (multicast 
address,port), then - depending on which media player client you use - it's 
not surpising that the video from multiple cameras will 'overlap'.  (The 
only alternative is to pop up a separate window for each incoming video 
source, but most media players don't do that.)

If, instead, you want to stream to different (multicast address,port)s - 
one for each camera - then you will need to create separate 'groupsock' 
objects for each.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list