HLS - AVPlayer's option to add query string at the end of media url.

AVPlayer gets the list of URLs from the m3u8 file. I need to add some query string at the end of each URL.

Is there any option in the AVPlayer to do this?

Example:

HLS URL : http://example.com/hls.m3u8

Code Block
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.417000,
1.ts
#EXTINF:10.417000,
2.ts
#EXTINF:9.470000,
3.ts
#EXTINF:10.417000,
4.ts
#EXTINF:9.470000,
5.ts
#EXTINF:10.417000,
6.ts
#EXTINF:9.470000,
7.ts
#EXTINF:3.840611,
8.ts
#EXT-X-ENDLIST


AVPlayer is trying to download http://example.com/1.ts

But I want the AVPlayer to add

"?st=2020-09-01T13%3A59%3A03Z&se=2020-09-02T13%3A59%3A03Z&sp=rl&sv=2018-03-28&sr=b&sig=Pua9sv8mgvPF6gNwuBSghdEq%2BefMFmwBuyUdjCetmw4%3D"

So AVPlayer will try
http://example.com/1.ts?st=2020-09-01T13%3A59%3A03Z&se=2020-09-02T13%3A59%3A03Z&sp=rl&sv=2018-03-28&sr=b&sig=Pua9sv8mgvPF6gNwuBSghdEq%2BefMFmwBuyUdjCetmw4%3D instead of http://example.com/1.ts

Did you find an answer for this? Have similar use case for my app.

Have you find any solution?

HLS - AVPlayer's option to add query string at the end of media url.
 
 
Q