We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
SamplesWisePlay DRMClient Sample Code

Client Sample Code

WisePlay DRM Sample Code

The sample code contains an Android Studio project that demonstrates how to use APIs of WisePlay DRM to build your video app, mainly including license obtaining and management.

Expand

Sample Code

Find It on Gitee

Find It on GitHub

WisePlay DRM sample code

Click here

Click here

WisePlay DRM provides a set of APIs based on Android standards for video apps, supporting MPEG-DASH and HLS. This sample code demonstrates the following scenarios:

  1. Obtain an online license.
  2. Download an offline license.
  3. Use an offline license.
  4. Delete a downloaded offline license.

WisePlay DRM Sample Code Based on ExoPlayer

The sample code contains an Android Studio project that demonstrates how to perform modifications based on ExoPlayer to play online content encrypted by WisePlay DRM.

Expand

Sample Code

Find It on Gitee

Find It on GitHub

WisePlay DRM sample code based on ExoPlayer

Click here

Click here

For details about ExoPlayer, visit the official website. Based on ExoPlayer r2.11.4, the sample code: For details about the demo description and usage, please refer to the README.md or README_ZH.md file in the code repository.

1. Demonstrates how to play online content encrypted by WisePlay DRM, for example, the HLS content encrypted in SM4 mode.

2. Supports software decoding based on the WisePlay DRM SDK, implementing functions such as device certificate application, application for the encrypted video source certificate, video source decoding, and more.

NOTE
  • For security purposes, before playing the video in the demo project file (storage path: demos/main/src/main/assets/hw.media.exolist.json), contact the support engineer of Huawei or Huanyu Trust (Beijing) Technology Co., Ltd. (DRM Trust Authority, DTA), and provide the public IP address of the device that runs the demo for commissioning.
Search in Samples
Enter a keyword.