Documentation ¶
Index ¶
- func NewProvider(ctx context.Context, youtube *youtube.Service) (media.Provider, error)
- type VideoProvider
- func (s *VideoProvider) BasicMediaInfoFromPlayedMedia(playedMedia *types.PlayedMedia) (media.BasicInfo, error)
- func (c *VideoProvider) BeginEnqueueRequest(ctx transaction.WrappingContext, ...) (media.InitialInfo, media.EnqueueRequestCreationResult, error)
- func (c *VideoProvider) CanHandleRequestType(mediaParameters proto.IsEnqueueMediaRequest_MediaInfo) bool
- func (c *VideoProvider) ContinueEnqueueRequest(ctx transaction.WrappingContext, genericInfo media.InitialInfo, ...) (media.EnqueueRequest, media.EnqueueRequestCreationResult, error)
- func (s *VideoProvider) SerializePlayedMediaMediaInfo(playedMedia *types.PlayedMedia) (proto.IsPlayedMedia_MediaInfo, error)
- func (s *VideoProvider) SerializeUserProfileResponseFeaturedMedia(playedMedia *types.PlayedMedia) (proto.IsUserProfileResponse_FeaturedMedia, error)
- func (c *VideoProvider) SetMediaQueue(mediaQueue media.MediaQueueStub)
- func (s *VideoProvider) UnmarshalQueueEntryJSON(ctx context.Context, b []byte) (media.QueueEntry, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VideoProvider ¶
type VideoProvider struct {
// contains filtered or unexported fields
}
VideoProvider provides YouTube videos
func (*VideoProvider) BasicMediaInfoFromPlayedMedia ¶
func (s *VideoProvider) BasicMediaInfoFromPlayedMedia(playedMedia *types.PlayedMedia) (media.BasicInfo, error)
func (*VideoProvider) BeginEnqueueRequest ¶
func (c *VideoProvider) BeginEnqueueRequest(ctx transaction.WrappingContext, mediaParameters proto.IsEnqueueMediaRequest_MediaInfo) (media.InitialInfo, media.EnqueueRequestCreationResult, error)
func (*VideoProvider) CanHandleRequestType ¶
func (c *VideoProvider) CanHandleRequestType(mediaParameters proto.IsEnqueueMediaRequest_MediaInfo) bool
func (*VideoProvider) ContinueEnqueueRequest ¶
func (c *VideoProvider) ContinueEnqueueRequest(ctx transaction.WrappingContext, genericInfo media.InitialInfo, unskippable, concealed, anonymous, allowUnpopular, skipLengthChecks, skipDuplicationChecks bool) (media.EnqueueRequest, media.EnqueueRequestCreationResult, error)
func (*VideoProvider) SerializePlayedMediaMediaInfo ¶
func (s *VideoProvider) SerializePlayedMediaMediaInfo(playedMedia *types.PlayedMedia) (proto.IsPlayedMedia_MediaInfo, error)
func (*VideoProvider) SerializeUserProfileResponseFeaturedMedia ¶
func (s *VideoProvider) SerializeUserProfileResponseFeaturedMedia(playedMedia *types.PlayedMedia) (proto.IsUserProfileResponse_FeaturedMedia, error)
func (*VideoProvider) SetMediaQueue ¶
func (c *VideoProvider) SetMediaQueue(mediaQueue media.MediaQueueStub)
func (*VideoProvider) UnmarshalQueueEntryJSON ¶
func (s *VideoProvider) UnmarshalQueueEntryJSON(ctx context.Context, b []byte) (media.QueueEntry, bool, error)
Click to show internal directories.
Click to hide internal directories.