Merge pull request #702 from dmitrylyzo/playback_remote

Add playback control from TV remote
This commit is contained in:
dkanada 2020-01-27 22:34:59 +09:00 committed by GitHub
commit 7af58a03dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 169 additions and 31 deletions

View file

@ -22,9 +22,7 @@ define(['playbackManager', 'focusManager', 'appRouter', 'dom'], function (playba
var eventListenerCount = 0;
function on(scope, fn) {
if (eventListenerCount) {
eventListenerCount++;
}
eventListenerCount++;
dom.addEventListener(scope, 'command', fn, {});
}