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