Local server on iPad

2019-08-15 17:58发布

问题:

We have an application which would involve HTTP live streaming. As per the documentation, I can encode my streams and provide the encryption key url (if the key is stored on remote server) in the index file (m3u8). I want to know if it is possible to store the key locally on the ipad and refer to it locally somehow in the index file. Is it possible to have a local server running on the ipad and provide a localhost url in index files? If so, would the server be bundled with the app build?

Thanks, Hetal

回答1:

cocoahttpserver is a HTTP Server on top of ASIHTTPRequest

I haven't done streaming with it, but the homepage says

Asynchronous networking using standard Cocoa sockets/streams