ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HLS #EXT-X-ALLOW-CACHE deprecated

andrew867 opened this issue · comments

From Apple's mediastreamvalidator:

--------------------------------------------------------------------------------
SHOULD fix issues
--------------------------------------------------------------------------------

Warning: #EXT-X-ALLOW-CACHE has been deprecated
--> Detail:  Line: #EXT-X-ALLOW-CACHE:YES
--> Source:  hls/HLSTest.m3u8

It looks like it is hardcoded:

<< "#EXT-X-ALLOW-CACHE:YES" << SRS_CONSTS_LF;

Would be great to make an option in the HLS config to disable or enable output of that line in HLS m3u8 playlists.

Why deprecated?

Will it cause any problem? Or just a warning? Or is there any substitution for this field?

It appears that it was deprecated in v7 and removed from the draft in v14 https://tools.ietf.org/html/draft-pantos-http-live-streaming-14#section-7 with no direct replacement.

It seems we can remove it.
I will remove it from SRS3.