Files
streamctl/pkg/streamcontrol/obs/config.go
2024-12-07 16:20:22 +00:00

31 lines
694 B
Go

package obs
import (
"context"
"github.com/xaionaro-go/streamctl/pkg/streamcontrol"
streamctl "github.com/xaionaro-go/streamctl/pkg/streamcontrol"
"github.com/xaionaro-go/streamctl/pkg/streamcontrol/obs/types"
)
const ID = types.ID
type Config = types.Config
type StreamProfile = types.StreamProfile
type PlatformSpecificConfig = types.PlatformSpecificConfig
func init() {
streamctl.RegisterPlatform[PlatformSpecificConfig, StreamProfile](ID)
}
func InitConfig(cfg streamctl.Config) {
types.InitConfig(cfg)
}
func GetConfig(
ctx context.Context,
cfg streamcontrol.Config,
) *Config {
return streamcontrol.GetPlatformConfig[PlatformSpecificConfig, StreamProfile](ctx, cfg, ID)
}