Package draken
(v1.10.9)
[up]
[repository]
Index
Types
type Dash
type Dash struct {
Body []byte
Url *url.URL
}
type Entitlement
type Entitlement struct {
Token string
Error *Error
}
type Error
type Error struct {
Message string
UserMessage string `json:"user_message"`
}
Methods
func (e *Error) Error() string
type Login
type Login struct {
Message string
Token string
}
Methods
func (l *Login) Entitlement(movie *MovieItem) (*Entitlement, error)
func (l *Login) Fetch(identity, accessKey string) error
func (l *Login) Playback(movie *MovieItem, title *Entitlement) (*Playback, error)
func (l *Login) Widevine(play *Playback, data []byte) ([]byte, error)
type MovieItem
type MovieItem struct {
DefaultPlayable struct {
Id string
}
}
Functions
func FetchMovie(customId string) (*MovieItem, error)
type Playback
type Playback struct {
Headers struct {
MaginePlayEntitlementId string `json:"Magine-Play-EntitlementId"`
MaginePlaySession string `json:"Magine-Play-Session"`
}
Playlist string
}
Methods
func (p *Playback) Dash() (*Dash, error)