UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

How to use IP instead of domain name to request video.

Open hubaoyu opened this issue 2 years ago • 6 comments

I use httpdns to resolve the IP of the domain name. then ,I use IP directory to play videos with "Host" header. while, https server can not verify cert successfully, what can i do for this?

I use OpenMedia method with customheaders such as "Host:xxx.com"

error logs: Caused by: javax.net. ssl. SSLPeerUnverifiedException: Hostname 117.177.133.244 not verified: certificate:sha1/nbw5Jhg18LoQP5If6EEv3380jSw= DN: CN=* .alicdn.com, O=Alibaba (China) Technology Co. , Ltd. , L=HangZhou, ST=ZheJiang, C=CN subjectAltNames: [*.alicdn.com, *.cmos.greencompute.org, cmos.greencompute.org, m.intl.taobao.com, * .mobgslb.tbcach at com.android.okhttp.internal.io. RealConnection. connectTls(RealConnection.java:205)

hubaoyu avatar Dec 19 '22 08:12 hubaoyu

You would have to switch to plain HTTP. Your server's certificate specifies a domain name so you need your request to be to that domain, an IP address is not good enough.

MorrisRH avatar Dec 19 '22 09:12 MorrisRH

but, It is a common practice to use httpdns to resolve domain names to obtain the optimal IP.

hubaoyu avatar Dec 19 '22 09:12 hubaoyu

We think the Host header is being overwritten by the underlying system, we're currently investigating.

MorrisRH avatar Dec 19 '22 11:12 MorrisRH

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 31 '22 19:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 16 '23 05:01 stale[bot]

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.

stale[bot] avatar Jan 21 '23 13:01 stale[bot]