Getting user agent from serverinfo service

Hi,

is there a way to have the user agent information into the xml generated by the serverinfo service?

In the xml I see tag, but many of them are unknown (probably they are mobile devices or players like vlc).

I need the user agent to see in realtime how many mobile users are connected to a stream.

Probably on Wowza 3 there was the user agent into the xml generated by serverinfo.

Thanks for your help

Luke

Hi,

This data isn’t available right now. You can see user agent info written to the access log (for HTTP streams) and possibly parse that in real time, maybe using the Google Analytics module?

We also provide the source code for the ServerInfo HTTP Provider which you are free to use and extend.

Paul

Thank you Paul for your answer.

I think I’ll try to modify serverinfo http provider adding the user agent info.

Just a question about how to get the user agent from the server.

I see that serverinfo uses client.getIp() to get the ip address and client.getFlashVer() to get the flash player version.

What do I have to use to get the user agent?

Where I can find the list of attributes available using client.getXXXX ?

thanks a lot

Luca

Thanks Paul,

probably I’m missing something.

I installed on my Mac Eclipse Neon and Wowza IDE.

Then I click on FILE/NEW/OTHER and I select New Wowza Streaming Engine HTTPProvider Class , but I’m not able to go on from here.

Eclipse ask me the path of the source folder, but the box is empty (no entries found) and even if I write a path manually it doesn’t accept the path.

What am I doing wrong?

Luca

Hi,

I don’t believe you can obtain the user agent via that method. You could try something like

String userAgent = httpCupertinoStreamingSession.getUserAgent();

to get the HTTP user agent. This example module shows how it might be called.

Regards,

Paul

Hi,

I don’t believe you can obtain the user agent via that method. You could try something like

String userAgent = httpCupertinoStreamingSession.getUserAgent();

to get the HTTP user agent. This example module shows how it might be called.

Regards,

Paul

Hi Luca,

Unfortunately it’s difficult to say what could be the problem there. I just did a similar test and was able to create a new HTTP Provider class without any further prompting. I suspect your setup is not correct. Do make sure you’ve set up Eclipse as shown here.

Regards,

Paul