I tried to use MediaPlayer to play back a resource defined an HTTPS url, and it says protocol not supported.
In the API reference they state FILE/HTTP/JAR are supported protocols (HTTPS not mentioned).
Is it possible to somehow use urls via HTTPS? This seems quite a big drawback in my opinion...
This was fixed for Java 9, and later backported to Java 8. Java 8 update 91 and later should therefore be working with HTTPS URLs without an issue.
If you're using an old version of Java that doesn't support it, then unfortunately the only option you have is to copy the file over HTTPS to a local temporary file, then play that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With