File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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颁发时间戳,必填参数
You can’t perform that action at this time.
0 commit comments