目录


  1.   The SP obtains the index and segment information of encrypted video content from the CDN, checks whether WisePlay DRM is used for the content, and uses MediaDrm.isCryptoSchemeSupported to determine whether your mobile phone supports WisePlay DRM.

  2. If your mobile phone supports WisePlay DRM, the SP callsnew MediaDRM(UUID)API to initialize the DRM.

  3. The SP calls MediaDrm.openSession() to create a session.

  4. The SP calls payload=MediaDrm.KeyRequest(sessionID,pssh box,keyType) to obtain the license request.

  5.  The SP sends payload and psshbox to the SP server.

  6. The SP server obtains the content decryption key information from the KMS based on pssh box.

  7. The SP server requests a license from the WisePlay DRM Server based on the format requirements of the license obtaining request from the WisePlay DRM Server, payload, and KeyInfo. The WisePlay DRM Server authenticates the request, generates a license, and returns the license to the SP server. The SP server returns the license to the client.

  8. After receiving the license response, the SP calls MediaDrm.provideKeyResponse(license) to import the license information.

  9. The SP calls MediaCrypto(uuid, sessionID) to initialize video decoding.

  10. The SP cyclically calls Decrypt(subsample) to import the encrypted video segment files for video decryption and playback.

  11. After the video is played, the SP calls MediaDrm.closeSession() to close the session.