ktvineCdm

fun <Error class: unknown class>.ktvineCdm(config: ServeConfig)

Serve a ktvine CDM over the HTTP protocol pywidevine's serve command defines, so that either client — ktvine's RemoteCdm or pywidevine's — can drive it.

This installs routes only; the caller owns the engine and may mount it anywhere:

embeddedServer(CIO, port = 8786) {
routing { ktvineCdm(config) }
}.start(wait = true)

Callers authenticate with an X-Secret-Key header. A device's private key never leaves this process, so treat the secret keys as credentials and serve this over TLS.