Table of Contents

Interface IWidevine

Namespace
DotNetBrowser.Engine
Assembly
DotNetBrowser.dll

The Widevine DRM (Digital Rights Management) component.

public interface IWidevine

Remarks

Widevine is used to protect digital content and ensure that it is accessed and used in compliance with licensing agreements.

To use Widevine, you must activate it every time you create a new IEngine instance. By default, Widevine is not activated. Once activated, you can play protected content such as Netflix, Amazon Prime Video, etc. in the browsers of the engine.

The Widevine component files are stored in the user data directory of the engine.

On Windows and macOS, you can activate Widevine without specifying a custom user data directory. There's no need to restart the engine after first activation or update, as the changes are applied automatically.

On Linux, you must specify a custom user data directory to activate Widevine. It is required due to the way Widevine is implemented on Linux. When the component is activated for the first time, or it is updated to the latest version during activation, the engine must be restarted to apply the changes. To find out if the restart is required, check the activation status:

var status = engine.Widevine.Activate().Result;
if (status == WidevineActivationStatus.RestartRequired)
{
    // Engine restart is required.
}

Important: Widevine is a Google proprietary component, governed by its own terms of use. For more information, see https://www.widevine.com/. TeamDev shall not be responsible for your use of Widevine.

Properties

Engine

Gets the IEngine instance that this Widevine service belongs to.

IsActivated

Indicates whether Widevine is activated.

Methods

Activate()

Activates the Widevine component and updates it to the latest version if it is available.