Skip to content

Commit

Permalink
v1.3.0: add alivodkit
Browse files Browse the repository at this point in the history
  • Loading branch information
mizuki1412 committed Mar 28, 2022
1 parent ef4ef5f commit 7f853cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service-third/alivodkit/alivod.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var once sync.Once
// InitVodClient accessKeyId string, accessKeySecret string
func InitVodClient(keys ...string) {
once.Do(func() {
println(12)
var accessKeyId string
var accessKeySecret string
if len(keys) == 2 {
Expand Down Expand Up @@ -81,6 +82,7 @@ func SearchMediaInfoList(p SearchMediaInfoListParam) []map[string]any {

// GetPlayInfo https://help.aliyun.com/document_detail/56124.html
func GetPlayInfo(videoId string) []map[string]any {
InitVodClient()
request := vod.CreateGetPlayInfoRequest()
request.VideoId = videoId
// Definition Url
Expand Down

0 comments on commit 7f853cb

Please sign in to comment.