|
@@ -88,7 +88,7 @@ public class VodServiceImpl implements IVodService {
|
|
|
Integer AppId = 1306117675;
|
|
|
// String FileId = "4564972818519602447";
|
|
|
// String AudioVideoType = "RawAdaptive";
|
|
|
- String AudioVideoType = "Original";
|
|
|
+ String AudioVideoType = "ProtectedAdaptive";
|
|
|
Integer RawAdaptiveDefinition = 10;
|
|
|
Integer ImageSpriteDefinition = 10;
|
|
|
Long CurrentTime = DateUtils.getNowTime();
|
|
@@ -101,6 +101,9 @@ public class VodServiceImpl implements IVodService {
|
|
|
contentInfo.put("audioVideoType", AudioVideoType);
|
|
|
contentInfo.put("rawAdaptiveDefinition", RawAdaptiveDefinition);
|
|
|
contentInfo.put("imageSpriteDefinition", ImageSpriteDefinition);
|
|
|
+ HashMap<String, Object> drmAdaptiveInfo = new HashMap<String, Object>();
|
|
|
+ drmAdaptiveInfo.put("privateEncryptionDefinition", 12);
|
|
|
+ contentInfo.put("drmAdaptiveInfo", drmAdaptiveInfo);
|
|
|
try {
|
|
|
Algorithm algorithm = Algorithm.HMAC256(PlayKey);
|
|
|
String token = JWT.create().withClaim("appId", AppId).withClaim("fileId", FileId)
|