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