diff --git a/track.go b/track.go index 64309790..f4d116fa 100644 --- a/track.go +++ b/track.go @@ -45,6 +45,10 @@ func NewTrackH264(id int, sps []byte, pps []byte) (*Track, error) { "sprop-parameter-sets=" + spropParameterSets + "; " + "profile-level-id=" + profileLevelId, }, + { + Key: "control", + Value: "trackID=" + strconv.FormatInt(int64(id), 10), + }, }, }, }, nil @@ -95,6 +99,10 @@ func NewTrackAac(id int, config []byte) (*Track, error) { "indexdeltalength=3; " + "config=" + hex.EncodeToString(config), }, + { + Key: "control", + Value: "trackID=" + strconv.FormatInt(int64(id), 10), + }, }, }, }, nil