mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-10-05 06:56:50 +08:00
add hints
This commit is contained in:
@@ -144,6 +144,9 @@ func (c *SrtMpegTs) fillStreamInfoFromMpegTS(streamInfo map[entities.Codec]entit
|
||||
}
|
||||
|
||||
if mpegTSDemuxData.PMT != nil {
|
||||
// TODO: add timing information
|
||||
// pts https://github.com/asticode/go-astits/blob/b0b19247aa31633650c32638fb55f597fa6e2468/cmd/astits-es-split/main.go#L206
|
||||
// https://github.com/asticode/go-astits/blob/master/packet.go#L46
|
||||
for _, es := range mpegTSDemuxData.PMT.ElementaryStreams {
|
||||
streamInfo[c.m.FromMpegTsStreamTypeToCodec(es.StreamType)] = c.m.FromStreamTypeToEntityStream(es)
|
||||
}
|
||||
|
@@ -70,7 +70,7 @@ func (h *SignalingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) err
|
||||
}
|
||||
|
||||
// TODO: introduce a mode to deal with transcoding recipes
|
||||
// selects prober media that client and server has adverted.
|
||||
// selects proper media that client and server has adverted.
|
||||
compatibleStreams := donutEngine.CompatibleStreamsFor(serverStreamInfo, clientStreamInfo)
|
||||
if compatibleStreams == nil || len(compatibleStreams) == 0 {
|
||||
return entities.ErrMissingCompatibleStreams
|
||||
|
Reference in New Issue
Block a user