Page 1 of 1
[User-agent] VLC
Posted: 30 Oct 2006 11:52
by papisco
Hello,
How can we change the VLC client User-Agent fir RTSP with the activeX?
thank you
RTSP User-Agent
Posted: 17 Nov 2006 14:00
by BusyBox
User-Agent: VLC media player (LIVE555 Streaming Media v"LIVE555 version")
The part between the () is clear. It comes from LIVE555's RTSPClient.cpp and liveMedia_version.hh files.
The question is (considering RTSP using LIVE555 library) from witch file "User-Agent: VLC media player " is taken from?
There's a part in /modules/access/rtsp/rtsp.c:
if( psz_user_agent ) s->user_agent = strdup( psz_user_agent );
else s->user_agent = strdup( "User-Agent: RealMedia Player Version "
"6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)" );
which should give the user-agent string, but it's not.
So can anybody point the real place of this User-Agent stuff?
Posted: 17 Nov 2006 21:22
by The DJ
From module/demux/live555.cpp
Code: Select all
#if LIVEMEDIA_LIBRARY_VERSION_INT > 1130457500
if( ( p_sys->rtsp = RTSPClient::createNew(*p_sys->env, 1 /*verbose*/,
"VLC media player", i_http_port ) ) == NULL )
#else
if( ( p_sys->rtsp = RTSPClient::createNew(*p_sys->env, 1 /*verbose*/,
"VLC media player" ) ) == NULL )
#endif
The VLC media player part is customizible (if compile your own VLC). The party in () cannot be changed and is added automatically by the liveMedia RTSP library
RE
Posted: 18 Nov 2006 09:53
by BusyBox
At last!
As usual, the most obvious and logical place. How have I missed it ...
Works like a charm
Thank You very much for the support!