From 566c7e042d24ff9f51603423d4c0fb91f3058aa2 Mon Sep 17 00:00:00 2001 From: tjjwilson Date: Sun, 12 Jun 2022 22:13:39 -0500 Subject: [PATCH 1/3] Adding Offset to SignalPointInsertion --- types/scte224v20180501/sctestructures.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types/scte224v20180501/sctestructures.go b/types/scte224v20180501/sctestructures.go index 2709147..1098039 100644 --- a/types/scte224v20180501/sctestructures.go +++ b/types/scte224v20180501/sctestructures.go @@ -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 { From 90481db34886fea6a1ab493d870d63b09b0de35e Mon Sep 17 00:00:00 2001 From: tjjwilson Date: Sun, 12 Jun 2022 22:17:10 -0500 Subject: [PATCH 2/3] Adding Offset to SignalPointInsertion --- types/scte224v20200407/avp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/scte224v20200407/avp.go b/types/scte224v20200407/avp.go index 4ee509b..8d17cd2 100644 --- a/types/scte224v20200407/avp.go +++ b/types/scte224v20200407/avp.go @@ -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)) @@ -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 { From a4d2b07ed51a269b58bb40ec5adf51dfdefc5400 Mon Sep 17 00:00:00 2001 From: tjjwilson Date: Sun, 12 Jun 2022 22:18:29 -0500 Subject: [PATCH 3/3] Adding offset to SignalPointInsertion --- types/scte224v20200407/constants_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/scte224v20200407/constants_test.go b/types/scte224v20200407/constants_test.go index 1d67499..7da23b8 100644 --- a/types/scte224v20200407/constants_test.go +++ b/types/scte224v20200407/constants_test.go @@ -25,7 +25,7 @@ const vp2020Raw string = ` - +