Extra HTTP headers

All the requests will be recorded down, and we will consider them one by one.

Extra HTTP headers

Postby Raptor399 » Tue Aug 16, 2011 8:31 pm

Hi there,

First of all, thank you for creating one of the greatest players on the iPhone/iPad!

I am a developer on the PS3 Media Server project and we are trying to get the maximum out of the PMS / AirPlayer combo.
It would help us a lot if you could enrich the HTTP header information so we can positively identify AirPlayer and the device it is playing on on the server side.

Currently headers are:
Code: Select all
User-Agent: AirPlayer/1.1.00 CFNetwork/485.13.9 Darwin/11.0.0
User-Agent: MPlayer SVN-r493-4.2.1

It would be nice if they could be something like:
Code: Select all
User-Agent: AirPlayer/1.1.00 CFNetwork/485.13.9 Darwin/11.0.0 (AirPlayer/iPad)
User-Agent: MPlayer SVN-r493-4.2.1 (AirPlayer/iPhone)

Or an extra custom header for each request would also do the trick:
Code: Select all
X-Client: AirPlayer/iPad


You get the idea. :-)

Feel free to join the discussion at the PMS forum if you have tips or suggestions to improve AirPlayer support.
Raptor399
Beignner
Beignner
 
Posts: 4
Joined: Tue Aug 16, 2011 8:13 pm

Re: Extra HTTP headers

Postby admin » Wed Aug 17, 2011 2:51 am

Thanks for your suggestion, we will use User-Agent as below in the next update:
User-Agent: AirPlayer/1.1.00 CFNetwork/485.13.9 Darwin/11.0.0 (AirPlayer/iPad)
User-Agent: MPlayer SVN-r493-4.2.1 (AirPlayer/iPhone)
admin
Site Admin
Site Admin
 
Posts: 2487
Joined: Tue Nov 02, 2010 5:00 pm

Re: Extra HTTP headers

Postby Raptor399 » Wed Aug 17, 2011 6:00 am

admin wrote:Thanks for your suggestion, we will use User-Agent as below in the next update:
User-Agent: AirPlayer/1.1.00 CFNetwork/485.13.9 Darwin/11.0.0 (AirPlayer/iPad)
User-Agent: MPlayer SVN-r493-4.2.1 (AirPlayer/iPhone)

So from next version on we can detect any user agent used by AirPlayer on iPhone by simply checking for "(Airplayer/iPhone)" and on iPad by checking for "(Airplayer/iPad)"?

Sweet! Thanks a lot!
Raptor399
Beignner
Beignner
 
Posts: 4
Joined: Tue Aug 16, 2011 8:13 pm

Re: Extra HTTP headers

Postby Raptor399 » Tue Aug 23, 2011 10:02 pm

Hi!

The new AirPlayer update has hit the AppStore, and I get the following User-Agents on iPad:
Code: Select all
User-Agent: AirPlayer/1.1.01 CFNetwork/485.13.9 Darwin/11.0.0
User-Agent: MPlayer SVN-r33766-snapshot-4.2.1(AirPlayer/iPad)

and on the iPhone:
Code: Select all
User-Agent: AirPlayer/1.1.01 CFNetwork/485.13.9 Darwin/11.0.0
User-Agent: MPlayer SVN-r33766-snapshot-4.2.1(AirPlayer/iPhone)

This is almost perfect, except for that first call: that still does not contain the device name. As a result it still is not possible to decide which config to choose.

Can you add "(AirPlayer/iPad)" and "(AirPlayer/iPhone)" at the end of those initial calls as well?

Thanks for your great efforts!
Raptor399
Beignner
Beignner
 
Posts: 4
Joined: Tue Aug 16, 2011 8:13 pm

Re: Extra HTTP headers

Postby admin » Wed Aug 24, 2011 11:41 am

Okay, then we will add an extra custom header X-Client: AirPlayer/iPad in HTTP header when open a file in the next update.

or AirPlayer/iPhone
admin
Site Admin
Site Admin
 
Posts: 2487
Joined: Tue Nov 02, 2010 5:00 pm

Re: Extra HTTP headers

Postby Raptor399 » Wed Aug 24, 2011 5:24 pm

If you could send that with every request, that'd be great!
Thank you very much!
Raptor399
Beignner
Beignner
 
Posts: 4
Joined: Tue Aug 16, 2011 8:13 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron