Files
streamctl/pkg/streamserver/implementations/libav/streamforward/stream_forwards.go
Dmitrii Okunev f676a7416f Random fixes
2025-03-23 22:52:20 +00:00

26 lines
574 B
Go

package streamforward
import (
"context"
"github.com/xaionaro-go/recoder"
"github.com/xaionaro-go/recoder/libav"
"github.com/xaionaro-go/streamctl/pkg/streamserver/streamforward"
"github.com/xaionaro-go/streamctl/pkg/streamserver/types"
)
type StreamForwards = streamforward.StreamForwards
func NewStreamForwards(
s StreamServer,
platformsController types.PlatformsController,
) *StreamForwards {
return streamforward.NewStreamForwards(
s,
func(ctx context.Context) (recoder.Factory, error) {
return libav.NewFactory(ctx)
},
platformsController,
)
}