Verimatrix MultiRights on Android
This article describes how to configure Verimatrix MultiRights with THEOplayer. MultiRights is a multi-DRM solution by Verimatrix.
Head to our page on DRM for more general information.
Integration
We provide open-source DRM integrations which are easy to maintain and allow for a modular approach. You can find them in the DRM integration samples repository, alongside guides on how to integrate and use them.
The Verimatrix Core integration can be found here.
Code example
DRMConfiguration drmConfiguration = new DRMConfiguration.Builder()
.widevine(
new KeySystemConfiguration(
"<LICENSE_KEY_URL_WIDEVINE>"
)
)
.build();
TypedSource typedSource = new TypedSource.Builder()
.src("<DASH_STREAM_URL>")
.drm(drmConfiguration)
.build();
SourceDescription sourceDescription = SourceDescription.Builder.sourceDescription()
.sources(typedSource)
.build();
theoplayer.getPlayer().setSource(sourceDescription);