Documentation ¶
Index ¶
- Constants
- type PlayDirective
- func (this *PlayDirective) GetToken(token string) string
- func (this *PlayDirective) SetBehavior(behavior string) *PlayDirective
- func (this *PlayDirective) SetExpectedPreviousToken(expectedPreviousToken string) *PlayDirective
- func (this *PlayDirective) SetExpiryTime(expiryTime string) *PlayDirective
- func (this *PlayDirective) SetOffsetInMilliseconds(milliseconds int) *PlayDirective
- func (this *PlayDirective) SetReportDelayInMs(reportDelayInMs int) *PlayDirective
- func (this *PlayDirective) SetReportIntervalInMs(reportIntervalInMs int) *PlayDirective
- func (this *PlayDirective) SetToken(token string) *PlayDirective
- func (this *PlayDirective) SetUrl(url string) *PlayDirective
- type StopDirective
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
Click to show internal directories.
Click to hide internal directories.