Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from Makombo/patch-2
Browse files Browse the repository at this point in the history
Export count of mediaplaylist segments
  • Loading branch information
grafov committed Feb 2, 2015
2 parents 2bd01c3 + 2ce8e8f commit 40d2845
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ func (p *MediaPlaylist) DurationAsInt(yes bool) {
p.durationAsInt = yes
}

// Count tells us the number of items that are currently in the media playlist
func (p *MediaPlaylist) Count() (uint) {
return p.count
}

// Close sliding playlist and make them fixed.
func (p *MediaPlaylist) Close() {
if p.buf.Len() > 0 {
Expand Down

0 comments on commit 40d2845

Please sign in to comment.