mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-18 21:04:42 +08:00
feat: rtmp add pb
This commit is contained in:
13
plugin/rtmp/api.go
Normal file
13
plugin/rtmp/api.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package plugin_rtmp
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"m7s.live/m7s/v5/plugin/rtmp/pb"
|
||||
rtmp "m7s.live/m7s/v5/plugin/rtmp/pkg"
|
||||
)
|
||||
|
||||
func (r *RTMPPlugin) PushOut(ctx context.Context, req *pb.PushRequest) (res *pb.PushResponse, err error) {
|
||||
go r.Push(req.StreamPath, req.RemoteURL, &rtmp.Client{})
|
||||
return &pb.PushResponse{}, nil
|
||||
}
|
Reference in New Issue
Block a user