Skip to content

Instantly share code, notes, and snippets.

View peaBerberian's full-sized avatar

Paul Berberian peaBerberian

View GitHub Profile
// 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
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
/**
* 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):
{
availabilityStartTime: Date,
baseURL: string,
duration: number,
id: string,
locations: [string],
suggestedPresentationDelay: number,
timeShiftBufferDepth: number,
transportType: "dash",
type: string,
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[e]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.ar
<!DOCTYPE html>
<html>
<head>
<title>Player+</title>
<meta charset="utf-8" />
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="nuviplayer/css/nuviplayer.css" media="all"/><script>var PLAYER5_ID = 'standard';</script></head>
<body>
<script>
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[e]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
/**
* Store information about every EME Calls stubbed in this file.
* @type {Object}
*/
const EME_CALLS = {
requestMediaKeySystemAccess: [],
update: [],
load: [],
close: [],
remove: [],
/**
* Store information about every EME Calls stubbed in this file.
* @type {Object}
*/
const EME_CALLS = {
close: [],
createMediaKeys: [],
createSession: [],
generateRequest: [],
getConfiguration: [],
/**
* Store information about every EME Calls stubbed in this file.
* @type {Object}
*/
const EME_CALLS = {
close: [],
createMediaKeys: [],
createSession: [],
generateRequest: [],
getConfiguration: [],
getConfiguration: [],
load: [],
remove: [],
requestMediaKeySystemAccess: [],
setMediaKeys: [],
setServerCertificate: [],
update: [],
};
/**