Open tianfeng98 opened 2 months ago
Hi, I added the ability to configure and parse custom unknown directives.
const customDataMapping: M3uCustomDataMapping = {
'#EXTCUSTOMPLAYLIST': false,
'#EXTCUSTOMMEDIA': true,
}
M3uParser.parse(playlistString, {customDataMapping})
See documentation https://m3u-parser-generator.netlify.app/interfaces/m3ucustomdatamapping Released under 2.0.0
This is a very good project, lightweight, simple, and commonly used. I think we also need to add some common parsing instructions, such as
#EXT-X-KEY
. Some videos are encrypted and need to be decrypted on the client before being played. The encryption information is described in#EXT-X-KEY
, which can be found in the RFC documentation