mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-19 21:44:36 +08:00
完善rtmp server
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
package rtmp
|
||||
|
||||
import "github.com/yangjiechina/live-server/stream"
|
||||
import (
|
||||
"github.com/yangjiechina/avformat/utils"
|
||||
"github.com/yangjiechina/live-server/stream"
|
||||
"net"
|
||||
)
|
||||
|
||||
type Sink struct {
|
||||
stream.SinkImpl
|
||||
func NewSink(id stream.SinkId, conn net.Conn) stream.ISink {
|
||||
return &stream.SinkImpl{Id_: id, Protocol_: stream.ProtocolRtmp, Conn: conn, DesiredAudioCodecId_: utils.AVCodecIdNONE, DesiredVideoCodecId_: utils.AVCodecIdNONE}
|
||||
}
|
||||
|
Reference in New Issue
Block a user