AIMP Forum

AIMP for PC => Предложения / Suggestions => Topic started by: 𝗞𝗡𝗧𝗥𝗢 on November 30, 2019, 09:42:53

Title: AIMP for Windows & AIMP for Android user agent strings
Post by: 𝗞𝗡𝗧𝗥𝗢 on November 30, 2019, 09:42:53
Hi everyone,

I would like to talk about the AIMP's UA strings, as for Windows as for Android.

Humbly, I would like to suggest adding these user agent strings below to each AIMP build, so we have these:

Suggested default user agent strings for AIMP for Windows

Suggested default user agent strings for AIMP for Android

For both cases (Windows & Android):
(1) This string says: "Hey, this is who I am". This is the simplest user agent string.
(2) This string says: "Hey, this is who I am, and if you want to know in what platform do I work, now you know". This string includes not only the AIMP version, but the OS name and OS version as well.
(3) This string says: "So, you don't know what AIMP is, and therefore don't you allow me to stream? OK, here I include some more popular references if you need some well-known standard things". This string is probably the most standard-compliant.

By the way, these user agent strings below (from the Windows' build) should be removed:

Deprecated, useless user agent strings

Please, remember all these things are just my humble suggestions. Please, don't take it so serious —I'm just trying to help AIMP becoming more widely compatible, globally. ;)
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: Artem on December 01, 2019, 13:23:25
You are absolutely right, but it not so easy as it looks at first time. AIMP's settings are too easy - you just specifies the user-agent string and done, but all version codes in it must be dynamically changes depended what player's version, what OS's version where app is running. Mobile version, even does not have a list of predefined templates for that...
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: 𝗞𝗡𝗧𝗥𝗢 on December 02, 2019, 02:35:54
Yes, I understand. But is it not possible to make user agent strings as follow?


I mean, just let the system replaces the x by its custom values. Some examples of 4 diferent OSes (2 desktops and 2 mobiles):
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: Artem on December 02, 2019, 07:56:50
Yep, or add the %VER macro
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: 𝗞𝗡𝗧𝗥𝗢 on October 12, 2025, 20:20:04
Hello, Artem!
Sorry for replying to this old topic.  :-[ However, now that AIMP6 will also be available for GNU/Linux distributions natively, I was wondering about unifying the AIMP's user agent string.
You previously said:
You are absolutely right, but it not so easy as it looks at first time. AIMP's settings are too easy - you just specifies the user-agent string and done, but all version codes in it must be dynamically changes depended what player's version, what OS's version where app is running. Mobile version, even does not have a list of predefined templates for that...
OK. In that case, can we use a user agent string that only exposes the major AIMP version, as well as only the platform where AIMP is running, with no further detail?
Some examples:In fact, if implementing these examples are somehow difficult to do, we could create a unique, still, fixed user agent string per platform, like:
And, if in the future AIMP is available for even more platforms, its user agent strings could be:
I don't want to bore you nor be heavy with this thing. I am only saying that AIMP needs an official user agent string, to be coherent in each platform. Then, if the user wants to change it and use anything else, that is OK too.

As always, thank you so much for reading!  8)
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: Artem on October 15, 2025, 09:55:10
Instead of AIMP/4.20.1525; Android 10, we could simply use AIMP/4; Android

1) OS version must be specified. Because different versions has different capabilities.
2) In app version the build number may be omitted, minor version must be defined
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: 𝗞𝗡𝗧𝗥𝗢 on October 15, 2025, 10:04:53
Understood.
So, user agent strings like these could work?What are your thoughts?
Title: Re: AIMP for Windows & AIMP for Android user agent strings
Post by: Artem on October 15, 2025, 10:32:09
In app version the build number may be omitted, minor version must be defined

It seems it already implemented.