Skip to content

Commit 5b55db8

Browse files
authored
Merge pull request #139 from jheitz200/nielsen_feature
Support Nielsen SDK
2 parents 2373d6a + 9e3535e commit 5b55db8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

psi/pmt_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ func (es *testPmtElementaryStream) IsSCTE35Content() bool {
7676
return false
7777
}
7878

79+
func (es *testPmtElementaryStream) IsID3Content() bool {
80+
return false
81+
}
82+
7983
func (es *testPmtElementaryStream) IsStreamWherePresentationLagsEbp() bool {
8084
return es.presentationLagsEbp
8185
}

psi/pmtstreamtype.go

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const (
3838
PmtStreamTypeEc3 uint8 = 135 // DD+
3939

4040
PmtStreamTypeScte35 uint8 = 134 // SCTE-35
41+
42+
PmtStreamTypeID3 uint8 = 21 // Nielsen ID3
4143
)
4244

4345
// PmtStreamType is used to represent elementary steam type inside a PMT
@@ -48,6 +50,7 @@ type PmtStreamType interface {
4850
IsAudioContent() bool
4951
IsVideoContent() bool
5052
IsSCTE35Content() bool
53+
IsID3Content() bool
5154
}
5255
type pmtStreamType struct {
5356
code uint8
@@ -84,6 +87,10 @@ func (st pmtStreamType) IsSCTE35Content() bool {
8487
return st.code == PmtStreamTypeScte35
8588
}
8689

90+
func (st pmtStreamType) IsID3Content() bool {
91+
return st.code == PmtStreamTypeID3
92+
}
93+
8794
func (st pmtStreamType) String() string {
8895
return fmt.Sprintf("streamType=%d", st.code)
8996
}

0 commit comments

Comments
 (0)