import "github.com/dueros/bot-sdk-go/bot/directive/video_player"
- Constants
- type PlayDirective
- func NewPlayDirective(url string) *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
const (
REPLACE_ALL = "REPLACE_ALL"
REPLACE_ENQUEUED = "REPLACE_ENQUEUED"
ENQUEUE = "ENQUEUE"
)
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(url string) *PlayDirective
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 (this *PlayDirective) SetToken(token string) *PlayDirective
func (this *PlayDirective) SetUrl(url string) *PlayDirective
type StopDirective struct {
directive.BaseDirective
}
func NewStopDirective() *StopDirective
Generated by godoc2md