Search code examples
androidhtmluriandroid-mediaplayermedia-player

How can I pass a url to an android app using href?


I'm trying to pass a link to mpv-android. I want to do it via href using intents Something like this : <a href="mpv//https://video/url.mp4"> But its not working. Can someone help me with this.

mpv-android github:https://github.com/mpv-android/mpv-android/blob/master/app/src/main/AndroidManifest.xml


Solution

  • Found the solution here. Since the manifest filters depending on MIME type or URLs with a few select extensions (mkv, mp4, webm, m3u, ...) you need to trick Android into opening mpv anyway by specifying a valid-looking type.