URL parameters - sharkiller/Reproductor-MPD-M3U8 GitHub Wiki

🔴 Clearkey

🟢 URL parameter: &ck={string in base64}

Example: &ck=eyIwMTIzNDU2Nzg5YWJjZGVmMDEyMzQ1Njc4OWFiY2RlZiI6ImZlZGNiYTk4NzY1NDMyMTBmZWRjYmE5ODc2NTQzMjEwIn0=

The string is a Base64 with the clearkey information:

Supported formats:

0123456789abcdef0123456789abcdef:fedcba9876543210fedcba9876543210

"0123456789abcdef0123456789abcdef":"fedcba9876543210fedcba9876543210"

{"0123456789abcdef0123456789abcdef":"fedcba9876543210fedcba9876543210"}

{"keys":[{"kty":"oct","k":"/ty6mHZUMhD+3LqYdlQyEA","kid":"ASNFZ4mrze8BI0VniavN7w"}],"type":"temporary"}

Multiple keys are also supported:

{"0123456789abcdef0123456789abcdef":"fedcba9876543210fedcba9876543210", "fedcba9876543210fedcba9876543210":"0123456789abcdef0123456789abcdef"}

{"keys":[{"kty":"oct","k":"/ty6mHZUMhD+3LqYdlQyEA","kid":"ASNFZ4mrze8BI0VniavN7w"},{"kty":"oct","k":"ASNFZ4mrze8BI0VniavN7w","kid":"/ty6mHZUMhD+3LqYdlQyEA"}],"type":"temporary"}

URL that returns any of the above formats:

https://servidor-de-clearkey.com/channel1.php

If a valid format is not returned by the url then it make a POST to the same url with key ids data in EME spec request format:

{"kids":["ASNFZ4mrze8BI0VniavN7w","/ty6mHZUMhD+3LqYdlQyEA"],"type":"temporary"}

That need to respond with a valid EME spec license format:

{"keys":[{"kty":"oct","k":"/ty6mHZUMhD+3LqYdlQyEA","kid":"ASNFZ4mrze8BI0VniavN7w"},{"kty":"oct","k":"ASNFZ4mrze8BI0VniavN7w","kid":"/ty6mHZUMhD+3LqYdlQyEA"}],"type":"temporary"}

🔴 Widevine Server

🟢 URL parameter: &wv={string in base64}

Example: &wv=aHR0cHM6Ly9taS1zZXJ2aWRvci5jb20vd2lkZXZpbmU=

The string is a Base64 of the url of the widevine license server https://my-server.com/widevine

🔴 Widevine Certificate

🟢 URL parameter: &wvc={string in base64}

Example: &wvc=aHR0cHM6Ly9taS1zZXJ2aWRvci5jb20vd2lkZXZpbmUvY2VydGlmaWNhZG8=

The string is a Base64 of the url of the widevine license certificate https://my-server.com/widevine/certificate

Some widevine servers do not allow you to request the certificate in the service itself, so you need to configure the certificate URL.

🔴 Custom Headers

🟢 URL parameter: &headers={string in Base64}

Example: &headers=eyJvcmlnaW4iOiJodHRwczovL215c2VydmVyLmNvbSIsInJlZmVyZXIiOiJodHRwczovL215c2VydmVyLmNvbS8ifQ==

The string is a Base64 of the JSON that includes the header you want to modify {"origin":"https://myserver.com","referer":"https://myserver.com/"}

The most common headers to modify are origin, referer, user-agent or any other header that the video URL needs to play.

🔴 Title

🟢 URL parameter: &title={Channel name}

Example: &title=Chanel One

🔴 Image

🟢 URL parameter: &image={string in base64}

Example: &image=aHR0cHM6Ly9kb21pbmlvMS5uZXQvbG9nb3MvY2FuYWwxLnBuZw==

The string is Base64 of the logo image url for the channel or video.

⚠️ **GitHub.com Fallback** ⚠️