mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-17 08:21:12 +08:00
14 lines
318 B
Go
14 lines
318 B
Go
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
|
|
}
|