Documentation ¶
Index ¶
- Constants
- func InitConfig(cfg streamctl.Config)
- type Config
- type FlagBroadcastTemplateIDs
- type LiveBroadcast
- type PlatformSpecificConfig
- type StreamProfile
- type YouTube
- func (yt *YouTube) ApplyProfile(ctx context.Context, profile StreamProfile, customArgs ...any) error
- func (yt *YouTube) EndStream(ctx context.Context) error
- func (yt *YouTube) Flush(ctx context.Context) error
- func (yt *YouTube) InsertAdsCuePoint(ctx context.Context, ts time.Time, duration time.Duration) error
- func (yt *YouTube) ListBroadcasts(ctx context.Context) ([]*youtube.LiveBroadcast, error)
- func (yt *YouTube) ListStreams(ctx context.Context) ([]*youtube.LiveStream, error)
- func (yt *YouTube) SetDescription(ctx context.Context, description string) error
- func (yt *YouTube) SetTitle(ctx context.Context, title string) error
- func (yt *YouTube) StartStream(ctx context.Context, title string, description string, profile StreamProfile, ...) error
Constants ¶
View Source
const ID = streamctl.PlatformName("youtube")
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type Config ¶
type Config = streamctl.PlatformConfig[PlatformSpecificConfig, StreamProfile]
type FlagBroadcastTemplateIDs ¶
type FlagBroadcastTemplateIDs []string
type LiveBroadcast ¶
type LiveBroadcast = youtube.LiveBroadcast
type PlatformSpecificConfig ¶
type StreamProfile ¶
type StreamProfile struct { streamctl.StreamProfileBase `yaml:",omitempty,inline,alias"` TemplateBroadcastIDs []string Tags []string }
type YouTube ¶
type YouTube struct {
YouTubeService *youtube.Service
}
func (*YouTube) ApplyProfile ¶
func (*YouTube) InsertAdsCuePoint ¶
func (*YouTube) ListBroadcasts ¶
func (*YouTube) ListStreams ¶
func (*YouTube) SetDescription ¶
func (*YouTube) StartStream ¶
Click to show internal directories.
Click to hide internal directories.