Documentation ¶
Index ¶
- Constants
- func InitConfig(cfg streamctl.Config)
- type Config
- type FlagBroadcastTemplateIDs
- type LiveBroadcast
- type OAuthHandler
- type PlatformSpecificConfig
- type StreamProfile
- type StreamStatusCustomData
- type YouTube
- func (yt *YouTube) ApplyProfile(ctx context.Context, profile StreamProfile, customArgs ...any) error
- func (yt *YouTube) Close() error
- func (yt *YouTube) DeleteActiveBroadcasts(ctx context.Context) error
- func (yt *YouTube) EndStream(ctx context.Context) error
- func (yt *YouTube) Flush(ctx context.Context) error
- func (yt *YouTube) GetStreamStatus(ctx context.Context) (_ret *streamcontrol.StreamStatus, _err error)
- func (yt *YouTube) InsertAdsCuePoint(ctx context.Context, ts time.Time, duration time.Duration) error
- func (yt *YouTube) IterateActiveBroadcasts(ctx context.Context, callback func(broadcast *youtube.LiveBroadcast) error, ...) error
- func (yt *YouTube) IterateUpcomingBroadcasts(ctx context.Context, callback func(broadcast *youtube.LiveBroadcast) error, ...) error
- func (yt *YouTube) ListBroadcasts(ctx context.Context) ([]*youtube.LiveBroadcast, error)
- func (yt *YouTube) ListStreams(ctx context.Context) ([]*youtube.LiveStream, error)
- func (yt *YouTube) Ping(ctx context.Context) 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 = youtube.ID
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type FlagBroadcastTemplateIDs ¶
type FlagBroadcastTemplateIDs []string
type LiveBroadcast ¶
type LiveBroadcast = youtube.LiveBroadcast
type OAuthHandler ¶
type OAuthHandler = youtube.OAuthHandler
type PlatformSpecificConfig ¶
type PlatformSpecificConfig = youtube.PlatformSpecificConfig
type StreamProfile ¶
type StreamProfile = youtube.StreamProfile
type StreamStatusCustomData ¶
type StreamStatusCustomData = youtube.StreamStatusCustomData
type YouTube ¶
type YouTube struct { Config Config YouTubeService *youtube.Service CancelFunc context.CancelFunc SaveConfigFunc func(Config) error // contains filtered or unexported fields }
func (*YouTube) ApplyProfile ¶
func (*YouTube) DeleteActiveBroadcasts ¶
func (*YouTube) GetStreamStatus ¶
func (yt *YouTube) GetStreamStatus( ctx context.Context, ) (_ret *streamcontrol.StreamStatus, _err error)
func (*YouTube) InsertAdsCuePoint ¶
func (*YouTube) IterateActiveBroadcasts ¶
func (*YouTube) IterateUpcomingBroadcasts ¶
func (*YouTube) ListBroadcasts ¶
func (*YouTube) ListStreams ¶
func (*YouTube) SetDescription ¶
func (*YouTube) StartStream ¶
Click to show internal directories.
Click to hide internal directories.