mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-12-24 12:27:57 +08:00
26 lines
574 B
Go
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,
|
|
)
|
|
}
|