如何为Fairplay离线DRM设置ContentKeyPolicyFairPlayRentalAndLeaseKeyType [英] How to set ContentKeyPolicyFairPlayRentalAndLeaseKeyType for Fairplay offline DRM

查看:70
本文介绍了如何为Fairplay离线DRM设置ContentKeyPolicyFairPlayRentalAndLeaseKeyType的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Java SDK版本0.9.8中,无法设置

  • FairPlayConfiguration.createSerializedFairPlayOptionConfiguration.
  • .net代码具有以下选项:-

     FairPlayConfiguration = Microsoft.WindowsAzure.MediaServices.Client.FairPlay.FairPlayConfiguration.CreateSerializedFairPlayOptionConfiguration(
                objX509Certificate2,
                pfxPassword,
                pfxPasswordId,
                askId,
                iv,
                RentalAndLeaseKeyType.PersistentUnlimited,
                0x9999);
     

    但Java SDK方法没有这样的签名:-

    公共静态字符串createSerializedFairPlayOptionConfiguration(
              KeyStore keyStore,String pfxPassword,String pfxPasswordKeyId,String askId,
              字符串contentIv)
     

    我可以看到Enum ContentKeyPolicyFairPlayRentalAndLeaseKeyType.PERSISTENT_UNLIMITED 在预览版本(v2018_06_01_preview)中,但是在此版本中没有使用此选项的示例代码 新的MediaService对象.


    提前感谢.

    解决方案

    m-Kumaran,谢谢您的提问.目前,我们无法在外部找到任何代码示例以与您共享.我们目前正在内部寻找是否可以找到某些东西.我们希望能尽快为您提供更新.


    In the Java SDK version 0.9.8, there is no way to set RentalAndLeaseKeyType property while creating the OptionConfig

    • method name FairPlayConfiguration.createSerializedFairPlayOptionConfiguration.

    The .net code has the option:-

    FairPlayConfiguration = Microsoft.WindowsAzure.MediaServices.Client.FairPlay.FairPlayConfiguration.CreateSerializedFairPlayOptionConfiguration(
                objX509Certificate2,
                pfxPassword,
                pfxPasswordId,
                askId,
                iv, 
                RentalAndLeaseKeyType.PersistentUnlimited,
                0x9999);
    

    but the java SDK method has no such signature:-

    public static String createSerializedFairPlayOptionConfiguration(
              KeyStore keyStore, String pfxPassword, String pfxPasswordKeyId, String askId,
              String contentIv) 
    

    I can see the Enum ContentKeyPolicyFairPlayRentalAndLeaseKeyType.PERSISTENT_UNLIMITED  in the preview version (v2018_06_01_preview), but there is no sample code to use this option in the new MediaService object.  


    Thanks in advance.

    解决方案

    m-Kumaran, thank you for your question. At this time, we were not able to locate any code samples externally to share with you. We are currently looking internally to see if there is something we can locate. We hope to have an update for you shortly.


    这篇关于如何为Fairplay离线DRM设置ContentKeyPolicyFairPlayRentalAndLeaseKeyType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆