CocoaHTTPServer icon indicating copy to clipboard operation
CocoaHTTPServer copied to clipboard

video doesn't load with https url in wkwebview

Open anandparanjape opened this issue 8 years ago • 5 comments

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 ?

anandparanjape avatar Oct 05 '16 17:10 anandparanjape

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

iosappdeveloper avatar Jan 26 '17 23:01 iosappdeveloper

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 <[email protected]mailto:[email protected]> 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.

anandparanjape avatar Jan 27 '17 02:01 anandparanjape

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

iosappdeveloper avatar Jan 27 '17 14:01 iosappdeveloper

@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

charlymr avatar Jan 28 '17 06:01 charlymr

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

anandparanjape avatar Feb 07 '17 18:02 anandparanjape