README.md in m3u8-0.2.1 vs README.md in m3u8-0.3.0

- old
+ new

@@ -64,10 +64,12 @@ f = Tempfile.new 'test' playlist.write f #You can also access the playlist as a string playlist.to_s + + #There is a M3u8::Writer class if you want more control over the write process #values for :audio (Codec name) #aac-lc, he-aac, mp3 #values for :profile (H.264 Profile) @@ -79,12 +81,11 @@ #not all Levels and Profiles can be combined, consult H.264 documentation ## Parsing Usage (new in v.2.0) file = File.open 'spec/fixtures/master.m3u8' - reader = M3u8::Reader.new - playlist = reader.read file + playlist = M3u8::Playlist.read file playlist.master? # => true #acess items in playlist: playlist.items @@ -99,9 +100,11 @@ profile: 'high', level: 4.1, audio: 'aac-lc', bitrate: 540, playlist: 'test.url' } item = M3u8::PlaylistItem.new options #add it to the top of the playlist playlist.items.insert 0, item + + #There is a M3u8::Reader class if you want more control over parsing ## Features * Distinction between segment and master playlists is handled automatically (no need to use a different class). * Automatically generates the audio/video codec string based on names and options you are familar with. * Provides validation of input when adding playlists or segments.