Skip to content

Using with Remote CDM

FoxRefire edited this page May 30, 2024 · 8 revisions

For users

If you are a normal user, just place the remote.json provided by the server operator in the root directory of the extension.

Requirements

  • Working WVD
  • Server with pywidevine installed

Guide

  1. Open Python shell on your terminal

    python3
    
  2. Run the following script to check the system ID of your WVD.

    Device.load("/path/to/=FILENAME=.wvd").system_id
    
  3. Go to following website to create a 32-character API key

    https://bitwarden.com/password-generator/

    Characters: 32

    • A-Z
    • a-z
    • 0-9
    • !@#$%^&*
  4. Create serve.yml according to the following format

    devices:
      - '/path/to/FILENAME.wvd'
    
    users:
      APIKEY:
        username: jane
        devices:
          - FILENAME
    
    force_privacy_mode: false
    
  5. Start the server by run the following command on your terminal

    pywidevine serve /path/to/serve.yml
    
  6. Create remote.json according to the following format

    {
        "device_type":"ANDROID",
        "system_id":SYSTEMID,
        "security_level":3,
        "host":"https://YOURSERVER:PORT",
        "secret":"APIKEY",
        "device_name":"FILENAME"
    }
    

Clone this wiki locally