mirror of
https://github.com/langhuihui/monibuca.git
synced 2026-04-23 19:39:25 +08:00
feat: add aac to opus , update quic version
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type Http2Quic struct {
|
||||
quic.Stream
|
||||
*quic.Stream
|
||||
}
|
||||
|
||||
func (q *Http2Quic) ServeSSE(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
type Puller struct {
|
||||
flv.Puller
|
||||
quic.Connection
|
||||
*quic.Conn
|
||||
}
|
||||
|
||||
func (p *Puller) GetPullJob() *m7s.PullJob {
|
||||
@@ -26,8 +26,8 @@ func (p *Puller) Start() (err error) {
|
||||
if err = p.PullJob.Publish(); err != nil {
|
||||
return
|
||||
}
|
||||
var stream quic.Stream
|
||||
stream, err = p.Connection.OpenStream()
|
||||
var stream *quic.Stream
|
||||
stream, err = p.Conn.OpenStream()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ func (c *RelayAPIConfig) Check(path string) bool {
|
||||
type ReceiveRequestTask struct {
|
||||
task.Task
|
||||
Plugin *m7s.Plugin
|
||||
quic.Connection
|
||||
quic.Stream
|
||||
*quic.Conn
|
||||
*quic.Stream
|
||||
http.Handler
|
||||
*RelayAPIConfig
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
|
||||
type Instance struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Secret sql.NullString `gorm:"unique;index:idx_secret"`
|
||||
IP string
|
||||
Online bool
|
||||
quic.Connection `gorm:"-"`
|
||||
Name string
|
||||
Secret sql.NullString `gorm:"unique;index:idx_secret"`
|
||||
IP string
|
||||
Online bool
|
||||
*quic.Conn `gorm:"-"`
|
||||
}
|
||||
|
||||
func (i *Instance) GetKey() uint {
|
||||
|
||||
Reference in New Issue
Block a user