Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {ChildProcess, SpawnOptions} from 'child_process';
import {FakeChildProcess} from './fake-spawn';
export enum NodePyATVExecutableType {
atvremote = 'atvremote',
atvscript = 'atvscript',
}
export enum NodePyATVProtocol {
dmap = 'dmap',
mrp = 'mrp',
airplay = 'airplay',
mdns = 'mdns',
}
export enum NodePyATVMediaType {
music = 'music',
tv = 'tv',
video = 'video',
unknown = 'unknown'
}
export enum NodePyATVDeviceState {
idle = 'idle',
loading = 'loading',
paused = 'paused',
playing = 'playing',
seeking = 'seeking',
stopped = 'stopped'
}
export enum NodePyATVRepeatState {
all = 'all',
track = 'track',
off = 'off'
}
export enum NodePyATVShuffleState {
albums = 'albums',
songs = 'songs',
off = 'off'
}
export enum NodePyATVPowerState {
on = 'on',
off = 'off'
}
export enum NodePyATVKeys {
down = 'down',
home = 'home',
homeHold = 'homeHold',
left = 'left',
menu = 'menu',
next = 'next',
pause = 'pause',
play = 'play',
playPause = 'playPause',
previous = 'previous',
right = 'right',
select = 'select',
skipBackward = 'skipBackward',
skipForward = 'skipForward',
stop = 'stop',
suspend = 'suspend',
topMenu = 'topMenu',
up = 'up',
volumeDown = 'volumeDown',
volumeUp = 'volumeUp',
wakeup = 'wakeup'
}
/**
* @internal
*/
export enum NodePyATVInternalKeys {
down = 'down',
home = 'home',
homeHold = 'home_hold',
left = 'left',
menu = 'menu',
next = 'next',
pause = 'pause',
play = 'play',
playPause = 'play_pause',
previous = 'previous',
right = 'right',
select = 'select',
skipBackward = 'skip_backward',
skipForward = 'skip_forward',
stop = 'stop',
suspend = 'suspend',
topMenu = 'top_menu',
up = 'up',
volumeDown = 'volume_down',
volumeUp = 'volume_up',
wakeup = 'wakeup'
}
export enum NodePyATVListenerState {
stopped,
starting,
started,
stopping
}
export type NodePyATVStateIndex = keyof NodePyATVState;
export type NodePyATVEventValueType = (string | number | NodePyATVMediaType | NodePyATVDeviceState |
NodePyATVShuffleState | NodePyATVRepeatState);
export interface NodePyATVInstanceOptions {
atvremotePath?: string;
atvscriptPath?: string;
debug?: true | ((msg: string) => void);
noColors?: true;
spawn?: (command: string, args: Array<string>, options: SpawnOptions) => (ChildProcess | FakeChildProcess);
}
export interface NodePyATVVersionResponse {
pyatv: string | null;
module: string | null;
}
export interface NodePyATVFindOptions {
host?: string;
hosts?: string[];
id?: string;
protocol?: NodePyATVProtocol;
dmapCredentials?: string;
mrpCredentials?: string;
airplayCredentials?: string;
}
export interface NodePyATVFindAndInstanceOptions extends NodePyATVInstanceOptions, NodePyATVFindOptions {
}
export interface NodePyATVDeviceOptions extends NodePyATVFindAndInstanceOptions {
host: string;
name: string;
}
export interface NodePyATVGetStateOptions {
maxAge?: number;
}
/**
* @internal
*/
export interface NodePyATVInternalState {
result?: string | unknown,
datetime?: string | unknown,
hash?: string | unknown,
media_type?: string | unknown,
device_state?: string | unknown,
title?: string | unknown,
artist?: string | unknown,
album?: string | unknown,
genre?: string | unknown,
total_time?: number | unknown,
position?: 1 | unknown,
shuffle?: string | unknown,
repeat?: string | unknown,
app?: string | unknown,
app_id?: string | unknown,
power_state?: string | unknown,
push_updates?: string | unknown,
exception?: string | unknown,
connection?: string | unknown
}
export interface NodePyATVState {
dateTime: Date | null;
hash: string | null;
mediaType: NodePyATVMediaType | null,
deviceState: NodePyATVDeviceState | null,
title: string | null,
artist: string | null,
album: string | null,
genre: string | null,
totalTime: number | null,
position: number | null,
shuffle: NodePyATVShuffleState | null,
repeat: NodePyATVRepeatState | null,
app: string | null,
appId: string | null,
powerState: NodePyATVPowerState | null
}
|