Important information
Android version: 12
mpv-android version: 2022-03-23-release
Which version of mpv-android introduced the problem (if known): 2022-03-06-release
Strictly speaking, the bug is not introduced in this version, but has not yet been resolved. After all, the previous version did not adapt to Android 12.
Description
When upgrading to Android 12, I found that mpv as default streaming player no longer works in my personal case.
By querying past issues(#497), I found that this problem should be caused by incompatible intent filter configuration, and should have been resolved in 2022-03-06-release. However, until 2022-03-23-release, my mpv still cannot be opened by the intent of Bubble Upnp.
So I used other apps to controllably send the intent, to compare the intent content and whether the mpv appeared in the menu, and finally identified a specific and very puzzling problem:
If and only if the host of the url in the intent is an ipv4 address, the system(or something else) will prevent all intents who's mimeType is also claimed by another intent filter which containing <data android:host="*"/>
being passed to the app.
I have absolutely no idea what this has to do with ipv4 addresses, and haven't found any useful documentation. However, through experimental comparison, the above-mentioned situation will only happen when the host is a legal (0-255.0-255.0-255.0-255) ipv4 address. There is no problem with an ipv6 address or domain name or simply empty host.
Additional information
The problem described above is resolved for me after removing another intent filter which containing <data android:host="*"/>
.
Even if the host is an ipv4 address, I have accidentally opened it several times without modifying the manifest, but the probability is extremely low, and I have no clue about it.
bug