swisspol / GCDWebServer

The #1 HTTP server for iOS, macOS & tvOS (also includes web based uploader & WebDAV server)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to play remote mp4 file with avplayer via GCDwebServer

ronaldoandjames opened this issue · comments

commented

Hi swisspol:
I have a url which is a mp4 file,such as http://xxxx.test.mp4 .but it is encrypted with AES. so i cant play it directly with avplayer.
So I want to use GCDwebServer to reroute it and decode the data. I searched many times,the closest answer is using GCDWebServerStreamedResponse something . but there is no full demo, only part of codes.I still cant solve it.
could you give me some tips please. thank you very much!

same question

I am also stucked here. But my file is of type .m3u8 not mp4

I am also stucked here. But my file is of type .m3u8 not mp4

I use something like this https://gist.github.com/maximkrouk/1b46995ce06bfc9a5632967d54c5c3ea

(Almost the same as this https://github.com/StyleShare/HLSCachingReverseProxyServer, but I use my own abstraction for caching)