File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ func (es *testPmtElementaryStream) IsSCTE35Content() bool {
76
76
return false
77
77
}
78
78
79
+ func (es * testPmtElementaryStream ) IsID3Content () bool {
80
+ return false
81
+ }
82
+
79
83
func (es * testPmtElementaryStream ) IsStreamWherePresentationLagsEbp () bool {
80
84
return es .presentationLagsEbp
81
85
}
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ const (
38
38
PmtStreamTypeEc3 uint8 = 135 // DD+
39
39
40
40
PmtStreamTypeScte35 uint8 = 134 // SCTE-35
41
+
42
+ PmtStreamTypeID3 uint8 = 21 // Nielsen ID3
41
43
)
42
44
43
45
// PmtStreamType is used to represent elementary steam type inside a PMT
@@ -48,6 +50,7 @@ type PmtStreamType interface {
48
50
IsAudioContent () bool
49
51
IsVideoContent () bool
50
52
IsSCTE35Content () bool
53
+ IsID3Content () bool
51
54
}
52
55
type pmtStreamType struct {
53
56
code uint8
@@ -84,6 +87,10 @@ func (st pmtStreamType) IsSCTE35Content() bool {
84
87
return st .code == PmtStreamTypeScte35
85
88
}
86
89
90
+ func (st pmtStreamType ) IsID3Content () bool {
91
+ return st .code == PmtStreamTypeID3
92
+ }
93
+
87
94
func (st pmtStreamType ) String () string {
88
95
return fmt .Sprintf ("streamType=%d" , st .code )
89
96
}
You can’t perform that action at this time.
0 commit comments