robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.59k stars 1.31k forks source link

video doesn't load with https url in wkwebview #168

Open anandparanjape opened 7 years ago

anandparanjape commented 7 years ago

html5 video loads fine using http web server in wkwebview on iOS10. But same doesn't load when I make server secure.

img loads up fine in html page inside wkwebview using http or https webserver.

below snapshot shows 2 wkwebviews. upper one loads html page with https url and lower one loads html page with http url

screen shot 2016-10-05 at 10 10 20 am

Modified code in iPhoneHTTPServer to host 2 webservers on different ports in the app. One secure and other unsecure.

Any suggestion to fix the issue ?

iosappdeveloper commented 7 years ago

Hi Anand, did you find any fix? I'm facing same issue with audio, video files after I made local host server secure/https.

anandparanjape commented 7 years ago

No. Ended up taking exception for local network. Its known bug in apple's code. Opened up bug on Apple but it was resolved as dupe to another bug.

Sent from my iPhone

On Jan 26, 2017, at 3:01 PM, iosappdeveloper notifications@github.com<mailto:notifications@github.com> wrote:

Hi Anand, did you find any fix? I'm facing same issue with audio, video files after I made local host server secure/https.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/robbiehanson/CocoaHTTPServer/issues/168#issuecomment-275541384, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGwkGWMiPbPskG98fA3GyOK57OEUWgLMks5rWSWTgaJpZM4KPEBM.

iosappdeveloper commented 7 years ago

Thanks for your quick response. If you get a chance, please put a link to the apple bug.

charlymr commented 7 years ago

@anandjp I am sure you checked, but double checking with you the URL of you video is https too in the 1st scenario, as loading insecure content in secure HTML will break the ability to start the video

anandparanjape commented 7 years ago

@iosappdeveloper, my bug was duped to Apple bug 28218873. @charlymr, yes! url of the video was https too.