I encrypted video by HLS AES-128 by using the apple tool, below is my m3u8 file
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-KEY:METHOD=AES-128,URI="https://xxxxx.com/api/xxx/xxxxx/xxxxxxxxxxxx/xxxxxxx.key"
#EXTINF:10,
#EXT-X-BITRATE:658
8ce9e1ef-4b15-4d22-b2dc-c7278757ffb5_0.ts
#EXTINF:10,
#EXT-X-BITRATE:1798
8ce9e1ef-4b15-4d22-b2dc-c7278757ffb5_1.ts
#EXTINF:1,
#EXT-X-BITRATE:620
8ce9e1ef-4b15-4d22-b2dc-c7278757ffb5_2.ts
#EXT-X-ENDLIST
The key URI is my API endpoint URL.. from the API I will be getting the key.
but whenever I copy-paste the key URI (https://xxxxx.com/api/xxx/xxxxx/xxxxxxxxxxxx/xxxxxxx.key) in the browser, the key gets downloaded.
how to pass header authorization whenever a player requests the key URI.
or is there is any way to secure the Key URI?
I am playing a video by Bitmovin player(Nodejs), can we pass the header authorization for the key request URI?
Thanks in advance.