video_player

package
v0.0.0-...-852b98d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REPLACE_ALL      = "REPLACE_ALL"
	REPLACE_ENQUEUED = "REPLACE_ENQUEUED"
	ENQUEUE          = "ENQUEUE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayDirective

type PlayDirective struct {
	directive.BaseDirective
	PlayBehavior string `json:"playBehavior"`
	VideoItem    struct {
		Stream struct {
			Url                  string `json:"url"`
			OffsetInMilliseconds int    `json:"offsetInMilliseconds"`
			ExpiryTime           string `json:"expiryTime,omitempty"`
			ProgressReport       struct {
				ProgressReportDelayInMilliseconds    int `json:"progressReportDelayInMilliseconds,omitempty"`
				ProgressReportIntervalInMilliseconds int `json:"progressReportIntervalInMilliseconds,omitempty"`
			} `json:"progressReport,omitempty"`
			Token                 string `json:"token"`
			ExpectedPreviousToken string `json:"expectedPreviousToken,omitempty"`
		} `json:"stream"`
	} `json:"VideoItem"`
}

func NewPlayDirective

func NewPlayDirective(url string) *PlayDirective

func (*PlayDirective) GetToken

func (this *PlayDirective) GetToken(token string) string

func (*PlayDirective) SetBehavior

func (this *PlayDirective) SetBehavior(behavior string) *PlayDirective

func (*PlayDirective) SetExpectedPreviousToken

func (this *PlayDirective) SetExpectedPreviousToken(expectedPreviousToken string) *PlayDirective

func (*PlayDirective) SetExpiryTime

func (this *PlayDirective) SetExpiryTime(expiryTime string) *PlayDirective

func (*PlayDirective) SetOffsetInMilliseconds

func (this *PlayDirective) SetOffsetInMilliseconds(milliseconds int) *PlayDirective

func (*PlayDirective) SetReportDelayInMs

func (this *PlayDirective) SetReportDelayInMs(reportDelayInMs int) *PlayDirective

func (*PlayDirective) SetReportIntervalInMs

func (this *PlayDirective) SetReportIntervalInMs(reportIntervalInMs int) *PlayDirective

func (*PlayDirective) SetToken

func (this *PlayDirective) SetToken(token string) *PlayDirective

func (*PlayDirective) SetUrl

func (this *PlayDirective) SetUrl(url string) *PlayDirective

type StopDirective

type StopDirective struct {
	directive.BaseDirective
}

func NewStopDirective

func NewStopDirective() *StopDirective

Jump to

Keyboard shortcuts

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