lib/m3u8/writer.rb in m3u8-0.4.0 vs lib/m3u8/writer.rb in m3u8-0.5.0
- old
+ new
@@ -28,9 +28,10 @@
end
def write_header(playlist)
io.puts "#EXT-X-PLAYLIST-TYPE:#{playlist.type}" unless playlist.type.nil?
io.puts "#EXT-X-VERSION:#{playlist.version}"
+ io.puts '#EXT-X-I-FRAMES-ONLY' if playlist.iframes_only
io.puts "#EXT-X-MEDIA-SEQUENCE:#{playlist.sequence}"
io.puts "#EXT-X-ALLOW-CACHE:#{cache(playlist)}"
io.puts "#EXT-X-TARGETDURATION:#{playlist.target}"
end