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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
availabilityStartTime: Date, | |
baseURL: string, | |
duration: number, | |
id: string, | |
locations: [string], | |
suggestedPresentationDelay: number, | |
timeShiftBufferDepth: number, | |
transportType: "dash", | |
type: string, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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_"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Store information about every EME Calls stubbed in this file. | |
* @type {Object} | |
*/ | |
const EME_CALLS = { | |
requestMediaKeySystemAccess: [], | |
update: [], | |
load: [], | |
close: [], | |
remove: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Store information about every EME Calls stubbed in this file. | |
* @type {Object} | |
*/ | |
const EME_CALLS = { | |
close: [], | |
createMediaKeys: [], | |
createSession: [], | |
generateRequest: [], | |
getConfiguration: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Store information about every EME Calls stubbed in this file. | |
* @type {Object} | |
*/ | |
const EME_CALLS = { | |
close: [], | |
createMediaKeys: [], | |
createSession: [], | |
generateRequest: [], | |
getConfiguration: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getConfiguration: [], | |
load: [], | |
remove: [], | |
requestMediaKeySystemAccess: [], | |
setMediaKeys: [], | |
setServerCertificate: [], | |
update: [], | |
}; | |
/** |
OlderNewer