JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
wrappingS-MEDIA-CAPABILITIES.js File Reference

This file contains wrappers for the Media Capabilities APIs. More...

Functions

function prepareConfig (config)
 

Variables

var wrappers
 

Detailed Description

This file contains wrappers for the Media Capabilities APIs.

See also
https://developer.mozilla.org/en-US/docs/Web/API/Media_Capabilities_API
Author
Copyright (C) 2022 Libor Polcak
License:
SPDX-License-Identifier: GPL-3.0-or-later

`provides access toMediaKeySystemAccess` object that allows to query supported codecs and other informations about the system.

For example, visit https://www.fit.vutbr.cz/~polcak/jsr/hdcp/ and try a different browser or computer.

See also
https://w3c.github.io/media-capabilities/

We provide two modes of protection:

  1. Strict approach prevents accessing the API.
  2. Farbling approach changes the output to a non-existing codec with 12.5% probability.

Function Documentation

◆ prepareConfig()

function prepareConfig (   config)

Variable Documentation

◆ wrappers

var wrappers