Skip to content

Commit

Permalink
Merge pull request #139 from jheitz200/nielsen_feature
Browse files Browse the repository at this point in the history
Support Nielsen SDK
  • Loading branch information
mikereedell committed Jan 31, 2020
2 parents 2373d6a + 9e3535e commit 5b55db8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions psi/pmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ func (es *testPmtElementaryStream) IsSCTE35Content() bool {
return false
}

func (es *testPmtElementaryStream) IsID3Content() bool {
return false
}

func (es *testPmtElementaryStream) IsStreamWherePresentationLagsEbp() bool {
return es.presentationLagsEbp
}
Expand Down
7 changes: 7 additions & 0 deletions psi/pmtstreamtype.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const (
PmtStreamTypeEc3 uint8 = 135 // DD+

PmtStreamTypeScte35 uint8 = 134 // SCTE-35

PmtStreamTypeID3 uint8 = 21 // Nielsen ID3
)

// PmtStreamType is used to represent elementary steam type inside a PMT
Expand All @@ -48,6 +50,7 @@ type PmtStreamType interface {
IsAudioContent() bool
IsVideoContent() bool
IsSCTE35Content() bool
IsID3Content() bool
}
type pmtStreamType struct {
code uint8
Expand Down Expand Up @@ -84,6 +87,10 @@ func (st pmtStreamType) IsSCTE35Content() bool {
return st.code == PmtStreamTypeScte35
}

func (st pmtStreamType) IsID3Content() bool {
return st.code == PmtStreamTypeID3
}

func (st pmtStreamType) String() string {
return fmt.Sprintf("streamType=%d", st.code)
}
Expand Down

0 comments on commit 5b55db8

Please sign in to comment.