he2802 1 gadu atpakaļ
vecāks
revīzija
20a8f8a4df

+ 4 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/tencentcloud/service/impl/VodServiceImpl.java

@@ -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)