document

package
v0.0.0-...-732ec5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context) media.Provider

NewProvider returns a new document provider

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) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL