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