This code sample is a web proxy for making Token Authroized AES encrypted HLS stream working in Safari. Please check out this blog for more details: https://azure.microsoft.com/en-us/blog/how-to-make-token-authorized-aes-encrypted-hls-stream-working-in-safari/.
In order to use the project, you need to update the urlencoded_proxyurl to your site in index.cshtml file. All the manifest manipulation login is in manifestproxycontroller.cs file.
You could see a working version of this site at: http://mingfeiy.azurewebsites.net/.