Skip to content

Commit

Permalink
Merge pull request #21 from tjjwilson/master
Browse files Browse the repository at this point in the history
Adding Offset to SignalPointInsertion
  • Loading branch information
tjjwilson authored Jun 13, 2022
2 parents 64c2dca + 4d6a218 commit f054141
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/scte224v20180501/sctestructures.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ type SignalPointDeletionAction struct {
type SignalPointInsertionAction struct {
SignalPoints []*SignalPoint `xml:"urn:scte:224:action SignalPoint,omitempty" json:"signalPoint,omitempty"`
ActionProperty []Any `xml:",any" json:"actionProperty,omitempty"`
Offset Duration `xml:"offset,attr,omitempty" json:"offset,omitempty"`
}

type SignalPoint struct {
Expand Down
2 changes: 2 additions & 0 deletions types/scte224v20200407/avp.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (vp *ViewingPolicy) Get2018() scte224_2018.ViewingPolicy {

destination.SignalPointInsertion = &scte224_2018.SignalPointInsertionAction{
SignalPoints: signalPoints2018,
Offset: scte224_2018.Duration(vp.SignalPointInsertion.Offset),
}

vpActionProps2018 := make([]scte224_2018.Any, 0, len(vp.SignalPointInsertion.ActionProperty))
Expand Down Expand Up @@ -188,6 +189,7 @@ type SignalPointDeletionAction struct {
type SignalPointInsertionAction struct {
SignalPoints []*SignalPoint `xml:"urn:scte:224:action SignalPoint,omitempty" json:"signalPoint,omitempty"`
ActionProperty []Any `xml:",any" json:"actionProperty,omitempty"`
Offset Duration `xml:"offset,attr,omitempty" json:"offset,omitempty"`
}

type SignalPoint struct {
Expand Down
2 changes: 1 addition & 1 deletion types/scte224v20200407/constants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const vp2020Raw string = `<ViewingPolicy xmlns="http://www.scte.org/schemas/224"

const vpSignalPointInsertion_w_SpliceInfoSection string = `<ViewingPolicy xmlns="http://www.scte.org/schemas/224" id="test.com/viewingpolicy/test/testVP1" description="Test VP with SignalPointInsertion containing a SpliceInfoSection" lastUpdated="2022-04-27T22:09:55Z">
<Audience xmlns="http://www.scte.org/schemas/224" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="test.com/audience/test/testaudience"></Audience>
<SignalPointInsertion xmlns="urn:scte:224:action">
<SignalPointInsertion xmlns="urn:scte:224:action" offset="PT1M">
<SpliceInfoSection xmlns="http://www.scte.org/schemas/35" offset="PT1M">
<TimeSignal xmlns="http://www.scte.org/schemas/35">
<SpliceTime xmlns="http://www.scte.org/schemas/35" ptsTime="0"></SpliceTime>
Expand Down

0 comments on commit f054141

Please sign in to comment.