|
|
|
@ -127,7 +127,7 @@ func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDeco
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (self *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error) {
|
|
|
|
|
util.PrintCallTrace(1)
|
|
|
|
|
util.PrintCallTrace(1, "Handlers.Open")
|
|
|
|
|
|
|
|
|
|
listen := false
|
|
|
|
|
if strings.HasPrefix(uri, "listen:") {
|
|
|
|
@ -135,6 +135,8 @@ func (self *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error) {
|
|
|
|
|
listen = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
util.PrintCallTrace(1, "Handlers.Open")
|
|
|
|
|
|
|
|
|
|
for _, handler := range self.handlers {
|
|
|
|
|
if listen {
|
|
|
|
|
if handler.ServerDemuxer != nil {
|
|
|
|
@ -272,8 +274,7 @@ func (self *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.
|
|
|
|
|
var DefaultHandlers = &Handlers{}
|
|
|
|
|
|
|
|
|
|
func Open(url string) (demuxer av.DemuxCloser, err error) {
|
|
|
|
|
fmt.Println("avutil Open!")
|
|
|
|
|
util.PrintCallTrace(1)
|
|
|
|
|
util.PrintCallTrace(1, "avutil Open!")
|
|
|
|
|
return DefaultHandlers.Open(url)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|