Skip to content

Commit 068d8b0

Browse files
author
lilang
committed
修改demo
1 parent a2c02dc commit 068d8b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example/CI/media_process/generate_token.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type JwtTokens struct {
1616
Type string `json:"Type"`
1717
AppId string `json:"AppId"`
1818
BucketId string `json:"BucketId"`
19+
Object string `json:"Object"`
1920
Issuer string `json:"Issuer"`
2021
// time info
2122
IssuedTimeStamp int64 `json:"IssuedTimeStamp"`
@@ -28,8 +29,6 @@ type JwtTokens struct {
2829
ProtectSchema string `json:"ProtectSchema"`
2930
PublicKey string `json:"PublicKey"`
3031
ProtectContentKey int `json:"ProtectContentKey"`
31-
RequestAppId string `json:"RequestAppId"`
32-
RequestBucket string `json:"RequestBucket"`
3332
}
3433

3534
// 定义secret
@@ -50,6 +49,8 @@ func GenerateToken() (string, error) {
5049
AppId: "1234567890",
5150
// 播放文件所在的BucketId, 必填参数
5251
BucketId: "test-1234567890",
52+
// 播放文件名
53+
Object: "hls_test/no_uri_key.m3u8",
5354
// 固定为client,必填参数
5455
Issuer: "client",
5556
// token颁发时间戳,必填参数

0 commit comments

Comments
 (0)