Static
generateGenerate is static method to generate m3u playlist string from playlist object
final m3u playlist string
const playlist = new M3uPlaylist();
playlist.title = 'Test playlist';
M3uGenerator.generate(playlist);
playlist object to generate m3u playlist string
Static
Private
getPrivate
Get generated attributes media part string from m3u attributes object
attributes generated string (attributeName="attributeValue" ...)
attributes object
Static
Private
getPrivate
Get generated string of custom directives for both, playlist and media
custom data object, that represents unknown directives
Static
Private
getStatic
Private
shouldPrivate
Method to determine if we need to add info directive or not based on media object and attributes string. At least media duration, media name or some attributes must be present to return true
boolean if we should add info directive into final media
m3u media object
m3u attributes string
Generated using TypeDoc
M3u generator class to generate m3u playlist string from playlist object