Skip to content

Commit

Permalink
fix tests and rendition flags
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Oct 2, 2024
1 parent e245a86 commit 0d5ba55
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 63 deletions.
2 changes: 1 addition & 1 deletion muxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (m *Muxer) Start() error {
id = "audio" + strconv.FormatInt(int64(i+1), 10)
}

isRendition := !track.isLeading || !isVideo(track.Codec)
isRendition := !track.isLeading || (!isVideo(track.Codec) && len(m.Tracks) > 1)

var isDefaultRendition bool
if isRendition && !defaultRenditionChosen {
Expand Down
2 changes: 1 addition & 1 deletion muxer_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (s *muxerStream) populateMultivariantPlaylist(
GroupID: "audio",
Name: s.id,
Autoselect: true,
URI: &uri,
Default: s.isDefaultRendition,
}

// draft-pantos-hls-rfc8216bis:
Expand Down
Loading

0 comments on commit 0d5ba55

Please sign in to comment.