mediafragment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(streamID kvm.StreamID, sess client.ConfigProvider, cfgs ...*aws.Config) (*Client, error)

func (*Client) GetMediaForFragmentList

func (c *Client) GetMediaForFragmentList(fragments FragmentIDs, handler func(kvm.Fragment), errHandler func(error)) error

func (*Client) ListFragments

func (c *Client) ListFragments(opts ...ListFragmentsOption) (*ListFragmentsOutput, error)

type FragmentError

type FragmentError struct {
	FragmentNumber string
	Code           string
	Message        string
}

func (*FragmentError) Error

func (e *FragmentError) Error() string

type FragmentIDs

type FragmentIDs []*string

func NewFragmentIDs

func NewFragmentIDs(ids ...string) FragmentIDs

type ListFragmentsOption

type ListFragmentsOption func(input *kvam.ListFragmentsInput)

func WithMaxResults

func WithMaxResults(maxResults int64) ListFragmentsOption

func WithNextToken

func WithNextToken(nextToken *string) ListFragmentsOption

func WithProducerTimestampRange

func WithProducerTimestampRange(startTime, endTime time.Time) ListFragmentsOption

func WithServerTimestampRange

func WithServerTimestampRange(startTime, endTime time.Time) ListFragmentsOption

type ListFragmentsOutput

type ListFragmentsOutput struct {
	*kvam.ListFragmentsOutput
}

func (*ListFragmentsOutput) FragmentIDs

func (l *ListFragmentsOutput) FragmentIDs() FragmentIDs

func (ListFragmentsOutput) Len

func (l ListFragmentsOutput) Len() int

func (*ListFragmentsOutput) Sort deprecated

func (l *ListFragmentsOutput) Sort()

Sort is alias of SortByFragmentNumber.

Deprecated: use SortByFragmentNumber or SortByProducerTimestamp

func (*ListFragmentsOutput) SortByFragmentNumber added in v0.5.3

func (l *ListFragmentsOutput) SortByFragmentNumber()

func (*ListFragmentsOutput) SortByProducerTimestamp added in v0.5.3

func (l *ListFragmentsOutput) SortByProducerTimestamp()

func (*ListFragmentsOutput) Swap

func (l *ListFragmentsOutput) Swap(i, j int)

func (*ListFragmentsOutput) Uniq added in v0.6.0

func (l *ListFragmentsOutput) Uniq()

Uniq removes duplicated fragments. Fragments with same ProducerTimestamp excepting the longest one will be removed. List of the fragments must be sorted by ProducerTimestamp before calling Uniq.

type SortByFragmentNumber added in v0.5.3

type SortByFragmentNumber struct {
	*ListFragmentsOutput
}

func (SortByFragmentNumber) Less added in v0.5.3

func (l SortByFragmentNumber) Less(i, j int) bool

type SortByProducerTimestamp added in v0.5.3

type SortByProducerTimestamp struct {
	*ListFragmentsOutput
}

func (SortByProducerTimestamp) Less added in v0.5.3

func (l SortByProducerTimestamp) Less(i, j int) bool

Jump to

Keyboard shortcuts

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