Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PlayAuthSign1 = []int{52, 58, 53, 121, 116, 102} PlayAuthSign2 = []int{90, 91} )
Functions ¶
func GetPlayInfoRequestUrl ¶ added in v1.0.10
func GetPlayInfoRequestUrl(rand, playAuth string, opts ...OptionFunc) (string, error)
GetPlayInfoRequestUrl 获取阿里云视频信息
func GetVodPlayerInfo ¶
func GetVodPlayerInfo(rand, playAuth string, opts ...OptionFunc) (*simplejson.Json, error)
Types ¶
type OptionFunc ¶ added in v1.0.10
type OptionFunc func(opt *Option)
func WithFormats ¶ added in v1.0.10
func WithFormats(formats string) OptionFunc
func WithRegion ¶ added in v1.0.10
func WithRegion(region string) OptionFunc
func WithStreamType ¶ added in v1.0.10
func WithStreamType(streamType string) OptionFunc
func WithVideoId ¶ added in v1.0.11
func WithVideoId(videoId string) OptionFunc
Click to show internal directories.
Click to hide internal directories.