tedconf / node-m3u8

Streaming parser for m3u8 files in node
MIT License
189 stars 77 forks source link

Filtering streamItems #21

Open kaihendry opened 7 years ago

kaihendry commented 7 years ago

I need to create several m3u8 files that requires different orderings and filterings of StreamItems of an existing m3u8.

I'm a little puzzled how to manipulate your internal data structure.

Do I create my individual playlists, e.g.

var newPlaylist = m3u8.M3U.create()
newPlaylist.addStreamItem(..

But how do I filter m3u.items.StreamItem by a name that I want to include into my new playlist?