There are two main technical solutions for integrating ChinaDRM client into set-top boxes:
1) Plugin method: The system layer (such as MediaDRM Service) integrates DRM client plugins, and the applications use the system standard interface (such as MediaDRM) to call the DRM Plugin. The MediaPlayer and MediaCodec Based Player both should support DRM.
2) APP method: Integrate DRM client SDK within the application, without relying on system DRM capabilities.
The strategy for deploying DRM Client on set-top boxes is as follows:
1) For live-network set-top boxes (usually without TEE high security enabled), OS software level DRM plugins can be deployed through ROM update(if OTA is achievable). Chip and set-top box manufacturers generate new versions of ROM and distribute it to the set-top box through OTA. Before the ROM upgrade is completed, The APP Method is used, without relying on the system's DRM capabilities.
2) For newly manufactured set-top boxes, use the Plugin Method.TEE high security and DRM plugin both should be deployed by default.
Applications can adopt an adaptive strategy of selecting DRM clients through querying whether the system layer supports DRM plugin by the system standard API(such as MediaDRM) . If it supports, the terminal's built-in capabilities can be used directly, and if not, the APP's built-in client SDK capabilities can be used.