Posts

Post not yet marked as solved
1 Replies
574 Views
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 #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10.417000,ts #EXTINF:10.417000,ts #EXTINF:9.470000,ts #EXTINF:10.417000,ts #EXTINF:9.470000,ts #EXTINF:10.417000,ts #EXTINF:9.470000,ts #EXTINF:3.840611,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
Posted
by nshakeeb.
Last updated
.