A web proxy for making Token Authroized AES encrypted HLS stream output from Azure Media Services to work in Safari on both macOS and iOS systems.
This code repository is implemented based on the idea and implemention by Mingfei Yan, please access the original code repository at https://github.com/AzureMediaServicesSamples/HLSSafariProxy
It seems the code in original repo is out of maintaince, and there is some small issues in the code. Additionally, I want to make this pure "functional" API to be a real Azure Function.
Now, it's online and availabe to you to test your media now: https://amshlsproxy.azurewebsites.net/api/Manifest Just put your stream url and token in URI encoded format into following URL pattern, then you get a final URL that is playable for Safari browsers and iOS builtin AVPlayer control:
https://amshlsproxy.azurewebsites.net/api/Manifest?playbackUrl={streamUrl}&token={token}
Note: Pleasse DO NOT use this function as production use, I've set a quota limitation in case of unexpected cost. :-)