[MPlayer-dev-eng] Re: [PATCH] for optional RTP/RTCP streaming over TCP
Ross Finlayson
finlayson at live.com
Wed Oct 9 06:36:19 CEST 2002
>Anyway, works well for me with your example, I just wondering if it's possible
>to have a timeout on the udp connection if no udp packets come back , do a
>tearsdown and reinitiate the connection using TCP
Implementing that would be a bit messy, because by the time we get a UDP
timeout, a lot of state has already been set up, and to retry the streaming
using TCP, it would have to get torn down and rebuilt from scratch. This
would make the code significantly more complex.
Something much simpler, which I'll probably add at some point, will be to
print a warning message if we get a UDP timeout, telling the user that no
UDP packets have been received, and noting that he can try rerunning
mplayer with the TCP streaming option.
>that would be awesome.
>There will be no need to specify any option, everything will be handle
>automatically.
IMHO, that's a bad idea. People with broken Internet connections (that,
for whatever reason, don't allow incoming UDP packets) need to be made
aware of the fact that they have a deficient Internet connection, and
encouraged to fix it. Playing media streams over TCP is something that
should be done only as a last resort.
Ross.
More information about the MPlayer-dev-eng
mailing list