tags 491403 + patch
thanks
[Petter Reinholdtsen]
> With VLC, this work out of the box, and this make me suspect it will
> automatically try TCP if UDP fail. Perhaps an idea for mplayer to
> get it workout out of the box when the client is behind NAT?
I ran wireshark on a vlc session, and discovered that vlc will use
RTSP over TCP by default. This is the reason it work out of the box
with vlc. Please change the default in mozilla-mplayer to do the
same. The required change in the plugin would be to change the
default rtsp-use-tcp configuration option from 0 to 1.
It would be great if this patch would be included in Lenny.
I believe this patch should be sufficient to change the default.
--- mplayerplug-in-3.55.orig/mplayerplug-in.conf
+++ mplayerplug-in-3.55/mplayerplug-in.conf
@@ -11,7 +11,7 @@
#enable-smil=1
#enable-helix=1
#qt-speed=med
-#rtsp-use-tcp=0
+#rtsp-use-tcp=1
#nomediacache=0
#framedrop=0
#autosync=0
--- mplayerplug-in-3.55.orig/Source/plugin.cpp
+++ mplayerplug-in-3.55/Source/plugin.cpp
@@ -293,7 +293,7 @@
ao = NULL;
af = NULL;
loop = -1;
- rtsp_use_tcp = 0;
+ rtsp_use_tcp = 1;
rtsp_use_http = 0;
keep_download = 0;
maintain_aspect = 1;
--- mplayerplug-in-3.55.orig/Source/plugin-setup.cpp
+++ mplayerplug-in-3.55/Source/plugin-setup.cpp
@@ -1454,6 +1454,8 @@
sscanf(parse, "%i", &instance->rtsp_use_tcp);
if (instance->rtsp_use_tcp != 0)
instance->rtsp_use_tcp = 1;
+ else
+ instance->rtsp_use_tcp = 0;
continue;
}
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]