Compare commits

..

No commits in common. "0d8ecc64adbeb7a487fdec577d0fe46cda26bbb1" and "f8dce5ce9d100b76653226626553ea7c67655759" have entirely different histories.

2 changed files with 0 additions and 9 deletions

View File

@ -17,8 +17,6 @@ type Channel struct {
OutputStreams map[string]*media.MediaStream
Events *pubsub.PubSub
lastMetadata map[string]string
}
func (channel *Channel) AddInputStream(id string) *media.MediaStream {
@ -52,7 +50,6 @@ func (channel *Channel) AddOutputContainer(id string) *media.MediaStreamContaine
}
func (channel *Channel) SetMetadata(data map[string]string) {
channel.lastMetadata = data
channel.Events.Pub(data, "metadata")
}
@ -60,9 +57,6 @@ func (channel *Channel) Metadata() chan map[string]string {
outC := make(chan map[string]string)
go func() {
defer close(outC)
if channel.lastMetadata != nil {
outC <- channel.lastMetadata
}
c := channel.Events.Sub("metadata")
forloop:
for event := range c {

View File

@ -21,9 +21,6 @@ func NewServer() *Server {
Router: gin.New(),
}
server.Router.Use(gin.Logger())
server.Router.Use(gin.Recovery())
server.Http.Handler = server.Router
server.Http.Addr = ":8000"