uplink/internal/media/demuxed_stream.go

19 lines
290 B
Go
Raw Normal View History

2018-04-10 11:48:51 +00:00
package media
import (
"io"
"git.icedream.tech/icedream/uplink/internal/pubsub"
)
type DemuxedStream struct {
StreamId int
Pts int64
CodecInfo StreamCodecInfo
pubsub *pubsub.PubSubWriter
}
func (stream *DemuxedStream) Sub() io.ReadCloser {
return stream.pubsub.Sub()
}