Skip to content

Instantly share code, notes, and snippets.

View Aztorius's full-sized avatar

William Bonnaventure Aztorius

View GitHub Profile
@themasch
themasch / doc.md
Last active October 31, 2023 05:41
unofficial docs of the LoL Spectator API

REST Service for LoL spectators

This is an unofficial, uncomplete and (pretty sure) wrong documentation of the RESTful service which powers the League of Legends spectator mode.

This documentation is desgined to be community driven and should be extended by everyone. If you find things missing, add them please!

How it works

Riot's spectator mode works by requesting replay data via HTTP form a service. The data is split in chunks which usually contain about 30 seconds of gameplay. Additionally there are key frames which seem to contain more information then a single chunk. They seem to be used to support

@1lann
1lann / replays.md
Last active April 24, 2023 09:06
Storing and playing back replays in League of Legends

Storing and playing back replays in League of Legends

How it works

When you spectate a game in League of Legends, you tell the client to use a HTTP server, and make HTTP requests to it to retrieve data in chunks which make up a game. But what if you could return back the exact same data at a later time, simulating the spectate but viewing it at anytime? That's the concept behind replays and that's how they work.

There is some behavior in the API which I do not fully understand yet, so there are if statements to catch these edge cases.

Current game information

Before you can even get the game's metadata, you'll need to retrieve necessary information for the game. This call is part of the official Riot Games API.

/observer-mode/rest/consumer/getSpectatorGameInfo/{platformId}/{summonerId}

@HenkPoley
HenkPoley / KEYDB.cfg
Last active July 16, 2021 08:28
KEYDB.cfg of 2017 september 2nd - 14:04:55, originally from http://labdv.com/aacs/ . downloaded from https://web.archive.org/web/20170902140455id_/http://www.labdv.com/aacs/KEYDB.cfg - you can use it with VLC 2.2.4 (not newer! - http://download.videolan.org/pub/videolan/vlc/2.2.4/ ) and libaacs.dll from https://vlc-bluray.whoknowsmy.name
; KEYDB.cfg
; 2017-09-02 16:04:54
;
; server: http://www.labdv.com/aacs
; processing keys: 18 (18 from doom9.org forum)
; host certificates: 8 (7 from doom9.org forum)
; disc VUK keys: 24010 keys for 23999 discs (0 from doom9.org forum)
; processing keys
| PK | 0x810827A76E5B2CC1685E3217A23E2186 ; DK_V01-V12