[User-agent] VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
papisco
New Cone
New Cone
Posts: 2
Joined: 26 Oct 2006 12:20

[User-agent] VLC

Postby papisco » 30 Oct 2006 11:52

Hello,

How can we change the VLC client User-Agent fir RTSP with the activeX?

thank you

BusyBox
New Cone
New Cone
Posts: 9
Joined: 09 Apr 2005 12:05

RTSP User-Agent

Postby BusyBox » 17 Nov 2006 14:00

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?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 17 Nov 2006 21:22

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
Don't use PMs for support questions.

BusyBox
New Cone
New Cone
Posts: 9
Joined: 09 Apr 2005 12:05

RE

Postby BusyBox » 18 Nov 2006 09:53

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!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests