mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
14 lines
351 B
Go
14 lines
351 B
Go
package plugin_rtmp
|
|
|
|
import (
|
|
"context"
|
|
gpb "m7s.live/m7s/v5/pb"
|
|
"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 *gpb.SuccessResponse, err error) {
|
|
go r.Push(req.StreamPath, req.RemoteURL, &rtmp.Client{})
|
|
return &gpb.SuccessResponse{}, nil
|
|
}
|