mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-12-24 12:27:57 +08:00
41 lines
1.0 KiB
Go
41 lines
1.0 KiB
Go
package youtube
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/xaionaro-go/streamctl/pkg/streamcontrol"
|
|
streamctl "github.com/xaionaro-go/streamctl/pkg/streamcontrol"
|
|
youtube "github.com/xaionaro-go/streamctl/pkg/streamcontrol/youtube/types"
|
|
)
|
|
|
|
const ID = youtube.ID
|
|
|
|
type OAuthHandler = youtube.OAuthHandler
|
|
type Config = youtube.Config
|
|
type StreamProfile = youtube.StreamProfile
|
|
type PlatformSpecificConfig = youtube.PlatformSpecificConfig
|
|
|
|
func init() {
|
|
streamctl.RegisterPlatform[PlatformSpecificConfig, StreamProfile](ID)
|
|
}
|
|
|
|
func InitConfig(cfg streamctl.Config) {
|
|
youtube.InitConfig(cfg)
|
|
}
|
|
|
|
func GetConfig(
|
|
ctx context.Context,
|
|
cfg streamcontrol.Config,
|
|
) *Config {
|
|
return streamcontrol.GetPlatformConfig[PlatformSpecificConfig, StreamProfile](ctx, cfg, ID)
|
|
}
|
|
|
|
type TemplateTags = youtube.TemplateTags
|
|
|
|
const (
|
|
TemplateTagsUndefined = youtube.TemplateTagsUndefined
|
|
TemplateTagsIgnore = youtube.TemplateTagsIgnore
|
|
TemplateTagsUseAsPrimary = youtube.TemplateTagsUseAsPrimary
|
|
TemplateTagsUseAsAdditional = youtube.TemplateTagsUseAsAdditional
|
|
)
|