Closed nadinengland closed 5 years ago
Hi @nadinengland, first of all thank you for contributing. Second, could you please adapt the android implementation as well?
From what I can tell it appears the android code is already setup to support this. I'll test it out locally and report back.
I've tested this on my real android device and it does instead appear to already work, which is brilliant news. I'll setup a pull request now.
Hey @bykof,
First off, superb Cordova plugin. It's been a life saver having GCGWebServer wrapped and packaged up neatly.
I am using the local webserver as a proxy for cdvfile:// urls, which works great but I've come across an issue. In order to get it working I've had to send the
Accept-Ranges
header when I am serving video files:This does indeed trigger the web view to request the content in chunks, however in order to get GCDWebServer to respond with partial content I've had to make changes to
Webserver.swift
:(I'm not 100% certain on the swift/obj-c inter-op, but I presume it is using this method: https://github.com/swisspol/GCDWebServer/blob/master/GCDWebServer/Responses/GCDWebServerFileResponse.h#L94)
Can you see any issues with doing this? If not, and you think it'd be useful I'll send over a pull request.