mirror of https://bitbucket.org/ausocean/av.git
21 lines
359 B
Go
21 lines
359 B
Go
package packet
|
|
|
|
type RtpToTsConverter interface {
|
|
New() *rtpToTsConverter
|
|
}
|
|
|
|
type rtpToTsConverter struct {
|
|
TsOutChan <-chan MpegTsPacket
|
|
RtpInChan chan<- RtpPacket
|
|
}
|
|
|
|
func New() c *rtpToTsConverter {
|
|
c = new(rtpToTsConverter)
|
|
c.TsOutChan = make(chan, MpegTsPacket)
|
|
c.RtpInChan = make(chan, RtpPacket)
|
|
}
|
|
|
|
func (c* RtpToTsConverter) convert() {
|
|
|
|
}
|