public class GeneratePlayListDemo extends Object
| Constructor and Description |
|---|
GeneratePlayListDemo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
describeMediaJob(COSClient client)
describeMediaJob 根据jobId查询任务信息
|
static void |
generatePlayList(COSClient client)
generatePlayList 提交生成播放列表任务
|
static String |
generateToken(String appId,
String bucketId,
String objectKey,
byte[] secret,
Date expires) |
static void |
getPlayList(COSClient client)
getPlayList 生成边转边播请求url地址
|
static void |
getPlayListSimple(COSClient client) |
static void |
main(String[] args) |
public static void generatePlayList(COSClient client)
public static void describeMediaJob(COSClient client)
public static void getPlayList(COSClient client)
public static void getPlayListSimple(COSClient client) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String generateToken(String appId, String bucketId, String objectKey, byte[] secret, Date expires) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2025. All rights reserved.