refactor: device change to pullproxy

This commit is contained in:
langhuihui
2024-12-04 14:07:22 +08:00
parent 645596d319
commit 04fbefd537
34 changed files with 3678 additions and 1562 deletions

View File

@@ -10,6 +10,6 @@ import (
func (r *RTMPPlugin) PushOut(ctx context.Context, req *pb.PushRequest) (res *gpb.SuccessResponse, err error) {
pusher := rtmp.NewPusher()
err = pusher.GetPushJob().Init(pusher, &r.Plugin, req.StreamPath, config.Push{URL: req.RemoteURL}).WaitStarted()
err = pusher.GetPushJob().Init(pusher, &r.Plugin, req.StreamPath, config.Push{URL: req.RemoteURL}, nil).WaitStarted()
return &gpb.SuccessResponse{}, err
}