Hi , I have been struggling using ANDROID DRM and Exoplayer altogether.
Actually I want to play DRM Modular data on android devices , but I don't know from where to start and where to finish. We are using drmtoday.com to encrypt our video content and we want to play that content on our android devices, but problem is whenever I am using android Drm package to communicate with drmtoday.com I got exceptions. Below is the Code snippet. After executing this code I am using exoplayer to play Drm Content but nothing is playing . Any Help would be appreciated mDrmManager = new DrmManagerClient(context); // Check available plugin for Drm String engines[] = mDrmManager.getAvailableDrmEngines(); Log.e("Demo", "Available engines are " + engines.length); for (int i = 0; i <engines.length;i++){ Log.e("Demo"," Plugin Name at i "+i +" "+engines[i]); } // Step 2 rightsAcquisitionInfo = new DrmInfoRequest(DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO, "application/mp4"); rightsAcquisitionInfo.put("WVDRMServerKey","https://lic.drmtoday.com/license-proxy-widevine/"); rightsAcquisitionInfo.put("portal","portalID"); rightsAcquisitionInfo.put("dt-custom-data","{\"userId\":\"userID\", \"sessionId\":\"fcnbce-4cccnb-9417-4cea56a16e95\", \"merchant\":\"merchantname\"}"); DrmInfo drmInfo = mDrmManager.acquireDrmInfo(rightsAcquisitionInfo); mDrmManager.acquireRights(rightsAcquisitionInfo); mDrmManager.processDrmInfo(drmInfo); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/88ddf2cb-f6a8-481a-9f25-13d8fabdd8a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.