[Live-devel] How to create unicast streams?

Ross Finlayson finlayson at live.com
Fri Jan 30 09:47:37 PST 2004


>I am interested in creating a live video stream from an existing 
>visualization application.
>For this, I've implemented my own FramedSource which I'm using together 
>with a RTP video sink.
>Are there any parameters I should pass to the videoRTPSink to make it work 
>with unicast ?
>Or maybe to the Groupsock can be set somehow to use unicast ?  Looking in 
>the Groupsock code
>it seems that a Groupsock doesn't handle unicast. Is this true ?

No, although "Groupsock"s were originally designed to do multicast, they 
can also be used to send to a unicast destination address string.

See, for example, <http://www.live.com/liveMedia/faq.html#unicast> for 
(very easy) instructions on how to adapt the various "test*Streamer" 
multicast test programs to use unicast instead.

>Now, I'm creating a ServerMediaSession and adding a 
>PassiveServerMediaSubsession created from the video sink
>to stream out the video. I've looked at the testOnDemandRTSPServer 
>examples and there,
>FileServerMediaSubsession are used .. This I cannot do because my stream 
>is not a file stream,
>but on the other side PassiveServerMediaSubsession doesn't seem to be 
>suited for unicast.
>(looking at the getStreamParameters, the response to isMulticast is always 
>true)

At present, the "RTSPServer" implementation supports two kinds of stream: 
(1) a multicast stream from a live source, or (2) on-demand unicast streams 
from files.  (On-demand unicast streams from a live source are not yet 
supported.)


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



More information about the live-devel mailing list