So basically, I’m trying to play a video from my website, it’s a business video. When I try to play it, Unity gives me this really confusing error message:
“WindowsVideoMedia error 0x80072f8f while reading”
I have this website with an SSL certificate, and when I open the video in Chrome or Firefox, it plays perfectly. If I use the regular non-secure “HTTP” version, it works fine in Unity on my computer, but then my Android app won’t play it.
I did figure out one thing though - when I uploaded the video directly to my website instead of using the other way, it started working everywhere. But I still don’t get why the first way won’t work.
Well, on most mobile devices using unencrypted HTTP is usually prevented for the user’s safety. I think it was possible to change a setting in the android manifest to allow unsecure HTTP connections, but as far as I know iOS doesn’t allow that at all.
“0x80072f8f” usually indicates an unsupported TLS version. I’m not sure if it’s necessarily the client or the server who is the culprit. It could be just that the TLS versions supported by the client doesn’t match any supported by the server. Or one of the two is trying to force a certain TLS version that the other doesn’t support. It’s difficult to pinpoint the issue. Though I would start with your server.
I also had a quick search for allowing clear text HTTP connections and I found this site. It has some examples how you can generally allow unencrypted connections or how to just allow specific domains. Though in this day and age I would always try to get TLS up and running properly.