Skip to content

Conversation

bahern
Copy link
Contributor

@bahern bahern commented Mar 10, 2016

Work related to #26

Added in additional structs to model SegmentTimeline and SegmentList and updated Period, AdaptationSet and Representation to include them as options.

bahern added 8 commits March 9, 2016 12:32
Adding structs based off the DASH XSDs to support SegmentTimeline and
SegmentList.  Reworked existing structs to allow adding timelines and
lists at different points in the manifest.
Renamed Intptr to Int64ptr since that is what it is and made a new
Intptr func to deal with a normal int.  Added a few others needed by
the newer structs’ properties and updated touch points as needed.
Timescale *uint32 `xml:"timescale,attr,omitempty"`
PresentationTimeOffset *uint64 `xml:"presentationTimeOffset,attr,omitempty"`
IndexRange *string `xml:"indexRange,attr,omitempty"`
indexRangeExact *bool `xml:"indexRangeExact,attr,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is private and doesn't seem to be used anywhere, any reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, will fix.

@@ -174,7 +171,7 @@ func (m *MPD) AddNewAdaptationSetAudio(mimeType string, segmentAlignment bool, s
as := &AdaptationSet{
MimeType: Strptr(mimeType),
SegmentAlignment: Boolptr(segmentAlignment),
StartWithSAP: Intptr(startWithSAP),
StartWithSAP: Int64ptr(startWithSAP),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note unrelated to your change: This certainly doesn't need to be an Int64

@philcluff
Copy link
Contributor

LGTM.

# Conflicts:
#	mpd/mpd.go

Updated tests to have correct element order in AdaptationSet.
philcluff added a commit that referenced this pull request Mar 10, 2016
Adding support for SegmentTimeline and SegmentList
@philcluff philcluff merged commit bac0279 into master Mar 10, 2016
@philcluff philcluff deleted the issue_26 branch March 10, 2016 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants