Skip to content

Instantly share code, notes, and snippets.

View peaBerberian's full-sized avatar

Paul Berberian peaBerberian

View GitHub Profile
{
availabilityStartTime: Date,
baseURL: string,
duration: number,
id: string,
locations: [string],
suggestedPresentationDelay: number,
timeShiftBufferDepth: number,
transportType: "dash",
type: string,
/**
* MW:
* 1. Provides a generic API (can be adapted to other platform) for low-level
* calls.
* 2. Platform-dependent.
* 3. Mostly stateless.
* 4. Uses RxJS observables because of heavy event handling (STB events,
* multiple requests).
*
* Core (Well, only the Modules/Dispatcher part):
import { RKeyboard } from 'rkeyboard';

// creating a SimpleKeyboard
const kb = RKeyboard.create();

// simply listening to the 'Enter', 'Up' and 'a' keys
kb('Enter', 'Up', 'a', pushCallback, releaseCallback);

// listen to key press event on Up key configured with `after` and
// Brainstorm pour l'ecoute de la remote
// ---- Remote instanciation
const remote = new RemoteListener();
// RemoteListener being a class with the method listen (only method?)
// ---- Remote calls