M3u media object

Example

code example

const media1 = new M3uMedia('http://my-stream-ulr.com/playlist.m3u8');

Example

example output in final m3u string

#EXTINF:-1 tvg-id="Test tv 1" tvg-country="CZ" tvg-language="CS" tvg-logo="logo1.png" group-title="Test1" unknown="0",Test tv 1 [CZ]
#EXTGRP:Test TV group 1
http://iptv.test1.com/playlist.m3u8

Hierarchy

  • M3uMedia

Constructors

Properties

album?: string = undefined

album

artist?: string = undefined

artist

attributes: M3uAttributes = ...

Attributes of media. Default value is empty attributes object.

bytes?: number = undefined

Size of media in bytes.

customData: M3uCustomData[] = []

Unknown directives, that belong to the specific media

duration: number = DEFAULT_MEDIA_DURATION

Duration of media. Default value is -1 (infinity).

extraAttributesFromUrl?: string = undefined

Extra attributes from url

extraHttpHeaders?: unknown = undefined

Extra HTTP headers

genre?: string = undefined

genre

group?: string

Group of media

image?: string = undefined

image (e.g. cover) URL

kodiProps?: Map<string, string> = ...

Kodi props

location: string
name?: string

Name of media

Generated using TypeDoc