@sebbo2002/node-pyatv 5.0.0 → 5.1.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/lib/device.d.ts +46 -1
  3. package/dist/lib/device.js +55 -0
  4. package/dist/lib/device.js.map +1 -1
  5. package/dist/lib/index.d.ts +2 -1
  6. package/dist/lib/index.js +2 -1
  7. package/dist/lib/index.js.map +1 -1
  8. package/dist/lib/instance.js +13 -5
  9. package/dist/lib/instance.js.map +1 -1
  10. package/dist/lib/types.d.ts +24 -0
  11. package/docs/coverage/cobertura-coverage.xml +913 -791
  12. package/docs/coverage/device-event.ts.html +1 -1
  13. package/docs/coverage/device-events.ts.html +8 -8
  14. package/docs/coverage/device.ts.html +204 -18
  15. package/docs/coverage/fake-spawn.ts.html +41 -41
  16. package/docs/coverage/index.html +30 -30
  17. package/docs/coverage/index.ts.html +25 -16
  18. package/docs/coverage/instance.ts.html +51 -33
  19. package/docs/coverage/tools.ts.html +250 -250
  20. package/docs/coverage/types.ts.html +82 -4
  21. package/docs/reference/assets/highlight.css +4 -4
  22. package/docs/reference/assets/search.js +1 -1
  23. package/docs/reference/classes/NodePyATVDevice.html +85 -9
  24. package/docs/reference/classes/NodePyATVDeviceEvent.html +4 -4
  25. package/docs/reference/classes/{default.html → NodePyATVInstance.html} +34 -34
  26. package/docs/reference/enums/NodePyATVDeviceState.html +10 -10
  27. package/docs/reference/enums/NodePyATVExecutableType.html +65 -0
  28. package/docs/reference/enums/NodePyATVKeys.html +27 -27
  29. package/docs/reference/enums/NodePyATVListenerState.html +8 -8
  30. package/docs/reference/enums/NodePyATVMediaType.html +8 -8
  31. package/docs/reference/enums/NodePyATVPowerState.html +6 -6
  32. package/docs/reference/enums/NodePyATVProtocol.html +8 -8
  33. package/docs/reference/enums/NodePyATVRepeatState.html +7 -7
  34. package/docs/reference/enums/NodePyATVShuffleState.html +7 -7
  35. package/docs/reference/index.html +8 -5
  36. package/docs/reference/interfaces/NodePyATVDeviceOptions.html +55 -20
  37. package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +18 -18
  38. package/docs/reference/interfaces/NodePyATVFindOptions.html +13 -13
  39. package/docs/reference/interfaces/NodePyATVGetStateOptions.html +5 -5
  40. package/docs/reference/interfaces/NodePyATVInstanceOptions.html +9 -9
  41. package/docs/reference/interfaces/NodePyATVService.html +69 -0
  42. package/docs/reference/interfaces/NodePyATVState.html +19 -19
  43. package/docs/reference/interfaces/NodePyATVVersionResponse.html +6 -6
  44. package/docs/reference/modules.html +23 -8
  45. package/docs/reference/types/NodePyATVEventValueType.html +9 -6
  46. package/docs/tests/index.html +1 -1
  47. package/docs/tests/mochawesome.json +930 -602
  48. package/package.json +1 -1
  49. package/src/lib/device.ts +62 -0
  50. package/src/lib/index.ts +15 -12
  51. package/src/lib/instance.ts +8 -2
  52. package/src/lib/types.ts +26 -0
  53. package/test/device.ts +124 -1
  54. package/test/instance.ts +84 -5
@@ -1,16 +1,16 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDevice | node-pyatv - v5.0.0</title><meta name="description" content="Documentation for node-pyatv - v5.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDevice | node-pyatv - v5.1.0-develop.1</title><meta name="description" content="Documentation for node-pyatv - v5.1.0-develop.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
5
  <ul class="results">
6
6
  <li class="state loading">Preparing search index...</li>
7
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.0.0</a></div>
7
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0-develop.1</a></div>
8
8
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
9
9
  <div class="container container-main">
10
10
  <div class="col-8 col-content">
11
11
  <div class="tsd-page-title">
12
12
  <ul class="tsd-breadcrumb">
13
- <li><a href="../modules.html">node-pyatv - v5.0.0</a></li>
13
+ <li><a href="../modules.html">node-pyatv - v5.1.0-develop.1</a></li>
14
14
  <li><a href="NodePyATVDevice.html">NodePyATVDevice</a></li></ul>
15
15
  <h1>Class NodePyATVDevice</h1></div>
16
16
  <section class="tsd-panel tsd-comment">
@@ -42,8 +42,13 @@ It&#39;s also possible to send key commands by using <a href="NodePyATVDevice.ht
42
42
  <div class="tsd-index-list"><a href="NodePyATVDevice.html#debug" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>debug</span></a>
43
43
  <a href="NodePyATVDevice.html#host" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>host</span></a>
44
44
  <a href="NodePyATVDevice.html#id" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>id</span></a>
45
+ <a href="NodePyATVDevice.html#model" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>model</span></a>
46
+ <a href="NodePyATVDevice.html#modelName" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>model<wbr/>Name</span></a>
45
47
  <a href="NodePyATVDevice.html#name" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>name</span></a>
48
+ <a href="NodePyATVDevice.html#os" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>os</span></a>
46
49
  <a href="NodePyATVDevice.html#protocol" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>protocol</span></a>
50
+ <a href="NodePyATVDevice.html#services" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>services</span></a>
51
+ <a href="NodePyATVDevice.html#version" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>version</span></a>
47
52
  </div></section>
48
53
  <section class="tsd-index-section">
49
54
  <h3 class="tsd-index-heading">Methods - Basic</h3>
@@ -170,6 +175,32 @@ debugging method to use.</p>
170
175
  <div class="tsd-comment tsd-typography"><p>Get the ID of the Apple TV.</p>
171
176
  </div>
172
177
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section>
178
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="model" class="tsd-anchor"></a>
179
+ <h3 class="tsd-anchor-link"><span>model</span><a href="#model" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
180
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
181
+ <li class="tsd-signature" id="model.model-1"><span class="tsd-signature-symbol">get</span> model<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul>
182
+ <ul class="tsd-descriptions">
183
+ <li class="tsd-description">
184
+ <div class="tsd-comment tsd-typography"><p>Get the model identifier of the device. Only set, if the
185
+ device was found using find(). Requires pyatv ≧ 0.10.3.</p>
186
+
187
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">model</span><span class="hl-1"> → </span><span class="hl-2">&quot;Gen4K&quot;</span>
188
+ </code></pre>
189
+ </div>
190
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section>
191
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="modelName" class="tsd-anchor"></a>
192
+ <h3 class="tsd-anchor-link"><span>model<wbr/>Name</span><a href="#modelName" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
193
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
194
+ <li class="tsd-signature" id="modelName.modelName-1"><span class="tsd-signature-symbol">get</span> modelName<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul>
195
+ <ul class="tsd-descriptions">
196
+ <li class="tsd-description">
197
+ <div class="tsd-comment tsd-typography"><p>Get the model name of the device. Only set, if the device
198
+ was found with find(). Requires pyatv ≧ 0.10.3.</p>
199
+
200
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">modelName</span><span class="hl-1"> → </span><span class="hl-2">&quot;Apple TV 4K&quot;</span>
201
+ </code></pre>
202
+ </div>
203
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section>
173
204
  <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="name" class="tsd-anchor"></a>
174
205
  <h3 class="tsd-anchor-link"><span>name</span><a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
175
206
  <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -177,10 +208,23 @@ debugging method to use.</p>
177
208
  <ul class="tsd-descriptions">
178
209
  <li class="tsd-description">
179
210
  <div class="tsd-comment tsd-typography"><p>Get the name of the Apple TV.</p>
180
- <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">devices</span><span class="hl-1">.</span><span class="hl-6">forEach</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1"> </span><span class="hl-4">=&gt;</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">name</span><span class="hl-1">)</span><br/><span class="hl-1">);</span>
211
+ <pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">devices</span><span class="hl-1">.</span><span class="hl-6">forEach</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1"> </span><span class="hl-4">=&gt;</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">name</span><span class="hl-1">)</span><br/><span class="hl-1">);</span>
181
212
  </code></pre>
182
213
  </div>
183
214
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section>
215
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="os" class="tsd-anchor"></a>
216
+ <h3 class="tsd-anchor-link"><span>os</span><a href="#os" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
217
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
218
+ <li class="tsd-signature" id="os.os-1"><span class="tsd-signature-symbol">get</span> os<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul>
219
+ <ul class="tsd-descriptions">
220
+ <li class="tsd-description">
221
+ <div class="tsd-comment tsd-typography"><p>Get the operating system of the device. Only set, if the
222
+ device was found with find(). Requires pyatv ≧ 0.10.3.</p>
223
+
224
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">os</span><span class="hl-1"> → </span><span class="hl-2">&quot;TvOS&quot;</span>
225
+ </code></pre>
226
+ </div>
227
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section>
184
228
  <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="protocol" class="tsd-anchor"></a>
185
229
  <h3 class="tsd-anchor-link"><span>protocol</span><a href="#protocol" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
186
230
  <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
@@ -189,7 +233,34 @@ debugging method to use.</p>
189
233
  <li class="tsd-description">
190
234
  <div class="tsd-comment tsd-typography"><p>Get the used protocol to connect to the Apple TV.</p>
191
235
  </div>
192
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVProtocol.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVProtocol</a></h4></li></ul></section></section>
236
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../enums/NodePyATVProtocol.html" class="tsd-signature-type" data-tsd-kind="Enumeration">NodePyATVProtocol</a></h4></li></ul></section>
237
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="services" class="tsd-anchor"></a>
238
+ <h3 class="tsd-anchor-link"><span>services</span><a href="#services" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
239
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
240
+ <li class="tsd-signature" id="services.services-1"><span class="tsd-signature-symbol">get</span> services<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/NodePyATVService.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVService</a><span class="tsd-signature-symbol">[]</span></li></ul>
241
+ <ul class="tsd-descriptions">
242
+ <li class="tsd-description">
243
+ <div class="tsd-comment tsd-typography"><p>Returns a list of services supported by the device. Ony set, if
244
+ the device was found during a scan using find(). Requires
245
+ pyatv ≧ 0.10.3.</p>
246
+
247
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">services</span><span class="hl-1"> → [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">&quot;protocol&quot;</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-2">&quot;airplay&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-2">&quot;port&quot;</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-7">7000</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">&quot;protocol&quot;</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-2">&quot;dmap&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-2">&quot;port&quot;</span><span class="hl-0">:</span><span class="hl-1"> </span><span class="hl-7">3689</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">]</span>
248
+ </code></pre>
249
+ </div>
250
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/NodePyATVService.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVService</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section>
251
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="version" class="tsd-anchor"></a>
252
+ <h3 class="tsd-anchor-link"><span>version</span><a href="#version" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
253
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
254
+ <li class="tsd-signature" id="version.version-1"><span class="tsd-signature-symbol">get</span> version<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul>
255
+ <ul class="tsd-descriptions">
256
+ <li class="tsd-description">
257
+ <div class="tsd-comment tsd-typography"><p>Get the device version. Only set, if the device was found
258
+ during a scan using find(). Requires pyatv ≧ 0.10.3.</p>
259
+
260
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-0">version</span><span class="hl-1"> → </span><span class="hl-2">&quot;15.5.1&quot;</span>
261
+ </code></pre>
262
+ </div>
263
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section></section>
193
264
  <section class="tsd-panel-group tsd-member-group">
194
265
  <h2>Basic Methods</h2>
195
266
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toJSON" class="tsd-anchor"></a>
@@ -310,11 +381,11 @@ Can be used to initiate a new device instance.</p>
310
381
  <ul class="tsd-descriptions">
311
382
  <li class="tsd-description">
312
383
  <div class="tsd-comment tsd-typography"><p>Send a key press to the Apple TV</p>
313
- <pre><code class="language-typescript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">pressKey</span><span class="hl-1">(</span><span class="hl-0">NodePyATVKeys</span><span class="hl-1">.</span><span class="hl-0">home</span><span class="hl-1">);</span>
384
+ <pre><code class="language-typescript"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">pressKey</span><span class="hl-1">(</span><span class="hl-0">NodePyATVKeys</span><span class="hl-1">.</span><span class="hl-0">home</span><span class="hl-1">);</span>
314
385
  </code></pre>
315
386
  <br />
316
387
 
317
- <pre><code class="language-javascript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">pressKey</span><span class="hl-1">(</span><span class="hl-3">&#39;home&#39;</span><span class="hl-1">);</span>
388
+ <pre><code class="language-javascript"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">pressKey</span><span class="hl-1">(</span><span class="hl-2">&#39;home&#39;</span><span class="hl-1">);</span>
318
389
  </code></pre>
319
390
  </div>
320
391
  <div class="tsd-parameters">
@@ -957,7 +1028,7 @@ Apple TV if this was the last event listener.</p>
957
1028
  <div class="tsd-comment tsd-typography"><p>Returns an <a href="../interfaces/NodePyATVState.html">NodePyATVState</a> object representing the current state
958
1029
  of the device. Has an internal cache, which has a default TTL of 5s.
959
1030
  You can change this default value by passing the <code>maxAge</code> option.</p>
960
- <pre><code class="language-typescript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getState</span><span class="hl-1">({</span><span class="hl-0">maxAge:</span><span class="hl-1"> </span><span class="hl-7">10000</span><span class="hl-1">}); </span><span class="hl-8">// cache TTL: 10s</span>
1031
+ <pre><code class="language-typescript"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getState</span><span class="hl-1">({</span><span class="hl-0">maxAge:</span><span class="hl-1"> </span><span class="hl-7">10000</span><span class="hl-1">}); </span><span class="hl-8">// cache TTL: 10s</span>
961
1032
  </code></pre>
962
1033
  </div>
963
1034
  <div class="tsd-parameters">
@@ -1011,7 +1082,7 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
1011
1082
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
1012
1083
  <div class="tsd-accordion-details">
1013
1084
  <ul>
1014
- <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.0.0</a>
1085
+ <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0-<wbr/>develop.1</a>
1015
1086
  <ul></ul></li></ul></div></details></nav>
1016
1087
  <nav class="tsd-navigation secondary menu-sticky">
1017
1088
  <ul>
@@ -1021,8 +1092,13 @@ You can change this default value by passing the <code>maxAge</code> option.</p>
1021
1092
  <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#debug" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>debug</a></li>
1022
1093
  <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#host" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>host</a></li>
1023
1094
  <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#id" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>id</a></li>
1095
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#model" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>model</a></li>
1096
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#modelName" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>model<wbr/>Name</a></li>
1024
1097
  <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>name</a></li>
1098
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#os" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>os</a></li>
1025
1099
  <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#protocol" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>protocol</a></li>
1100
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#services" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>services</a></li>
1101
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="NodePyATVDevice.html#version" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>version</a></li>
1026
1102
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#addListener" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>add<wbr/>Listener</a></li>
1027
1103
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#clearState" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>clear<wbr/>State</a></li>
1028
1104
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVDevice.html#down" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>down</a></li>
@@ -1,16 +1,16 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDeviceEvent | node-pyatv - v5.0.0</title><meta name="description" content="Documentation for node-pyatv - v5.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDeviceEvent | node-pyatv - v5.1.0-develop.1</title><meta name="description" content="Documentation for node-pyatv - v5.1.0-develop.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
5
  <ul class="results">
6
6
  <li class="state loading">Preparing search index...</li>
7
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.0.0</a></div>
7
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0-develop.1</a></div>
8
8
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
9
9
  <div class="container container-main">
10
10
  <div class="col-8 col-content">
11
11
  <div class="tsd-page-title">
12
12
  <ul class="tsd-breadcrumb">
13
- <li><a href="../modules.html">node-pyatv - v5.0.0</a></li>
13
+ <li><a href="../modules.html">node-pyatv - v5.1.0-develop.1</a></li>
14
14
  <li><a href="NodePyATVDeviceEvent.html">NodePyATVDeviceEvent</a></li></ul>
15
15
  <h1>Class NodePyATVDeviceEvent</h1></div>
16
16
  <section class="tsd-panel tsd-hierarchy">
@@ -98,7 +98,7 @@ before the value was changed.</p>
98
98
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
99
99
  <div class="tsd-accordion-details">
100
100
  <ul>
101
- <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.0.0</a>
101
+ <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0-<wbr/>develop.1</a>
102
102
  <ul></ul></li></ul></div></details></nav>
103
103
  <nav class="tsd-navigation secondary menu-sticky">
104
104
  <ul>
@@ -1,28 +1,28 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | node-pyatv - v5.0.0</title><meta name="description" content="Documentation for node-pyatv - v5.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVInstance | node-pyatv - v5.1.0-develop.1</title><meta name="description" content="Documentation for node-pyatv - v5.1.0-develop.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
5
  <ul class="results">
6
6
  <li class="state loading">Preparing search index...</li>
7
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.0.0</a></div>
7
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0-develop.1</a></div>
8
8
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
9
9
  <div class="container container-main">
10
10
  <div class="col-8 col-content">
11
11
  <div class="tsd-page-title">
12
12
  <ul class="tsd-breadcrumb">
13
- <li><a href="../modules.html">node-pyatv - v5.0.0</a></li>
14
- <li><a href="default.html">default</a></li></ul>
15
- <h1>Class default</h1></div>
13
+ <li><a href="../modules.html">node-pyatv - v5.1.0-develop.1</a></li>
14
+ <li><a href="NodePyATVInstance.html">NodePyATVInstance</a></li></ul>
15
+ <h1>Class NodePyATVInstance</h1></div>
16
16
  <section class="tsd-panel tsd-comment">
17
- <div class="tsd-comment tsd-typography"><p>Default class exported by <code>@sebbo2002/node-pyatv</code>. Use <a href="default.html#find">find</a> to scan for devices in your local network. Use
18
- <a href="default.html#device">device</a> to connect to a known device by passing (at least) it&#39;s name and IP.</p>
19
- <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span>
17
+ <div class="tsd-comment tsd-typography"><p>Default class exported by <code>@sebbo2002/node-pyatv</code>. Use <a href="NodePyATVInstance.html#find">find</a> to scan for devices in your local network. Use
18
+ <a href="NodePyATVInstance.html#device">device</a> to connect to a known device by passing (at least) it&#39;s name and IP.</p>
19
+ <pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span>
20
20
  </code></pre>
21
21
  </div></section>
22
22
  <section class="tsd-panel tsd-hierarchy">
23
23
  <h4>Hierarchy</h4>
24
24
  <ul class="tsd-hierarchy">
25
- <li><span class="target">default</span></li></ul></section>
25
+ <li><span class="target">NodePyATVInstance</span></li></ul></section>
26
26
  <section class="tsd-panel-group tsd-index-group">
27
27
  <section class="tsd-panel tsd-index-panel">
28
28
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -30,30 +30,30 @@
30
30
  <div class="tsd-accordion-details">
31
31
  <section class="tsd-index-section">
32
32
  <h3 class="tsd-index-heading">Constructors</h3>
33
- <div class="tsd-index-list"><a href="default.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
33
+ <div class="tsd-index-list"><a href="NodePyATVInstance.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
34
34
  </div></section>
35
35
  <section class="tsd-index-section">
36
36
  <h3 class="tsd-index-heading">Methods</h3>
37
- <div class="tsd-index-list"><a href="default.html#check" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>check</span></a>
38
- <a href="default.html#device" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>device</span></a>
39
- <a href="default.html#find" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>find</span></a>
40
- <a href="default.html#version" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>version</span></a>
41
- <a href="default.html#check-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>check</span></a>
42
- <a href="default.html#device-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>device</span></a>
43
- <a href="default.html#find-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>find</span></a>
44
- <a href="default.html#version-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>version</span></a>
37
+ <div class="tsd-index-list"><a href="NodePyATVInstance.html#check" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>check</span></a>
38
+ <a href="NodePyATVInstance.html#device" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>device</span></a>
39
+ <a href="NodePyATVInstance.html#find" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>find</span></a>
40
+ <a href="NodePyATVInstance.html#version" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>version</span></a>
41
+ <a href="NodePyATVInstance.html#check-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>check</span></a>
42
+ <a href="NodePyATVInstance.html#device-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>device</span></a>
43
+ <a href="NodePyATVInstance.html#find-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>find</span></a>
44
+ <a href="NodePyATVInstance.html#version-2" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>version</span></a>
45
45
  </div></section></div></details></section></section>
46
46
  <section class="tsd-panel-group tsd-member-group">
47
47
  <h2>Constructors</h2>
48
48
  <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
49
49
  <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
50
50
  <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
51
- <li class="tsd-signature" id="constructor.new_default">new default<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVInstanceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVInstanceOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="default.html" class="tsd-signature-type" data-tsd-kind="Class">default</a></li></ul>
51
+ <li class="tsd-signature" id="constructor.new_NodePyATVInstance">new <wbr/>Node<wbr/>PyATVInstance<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/NodePyATVInstanceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVInstanceOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="NodePyATVInstance.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVInstance</a></li></ul>
52
52
  <ul class="tsd-descriptions">
53
53
  <li class="tsd-description">
54
54
  <div class="tsd-comment tsd-typography"><p>Use this to apply <a href="../interfaces/NodePyATVInstanceOptions.html">NodePyATVInstanceOptions</a>
55
55
  (e.g. debug log method) to all further requests</p>
56
- <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">myPyatv</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">pyatv</span><span class="hl-1">({</span><span class="hl-0">debug:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">});</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-0">myPyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
56
+ <pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">myPyatv</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">pyatv</span><span class="hl-1">({</span><span class="hl-0">debug:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">});</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-0">myPyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
57
57
  </code></pre>
58
58
  </div>
59
59
  <div class="tsd-parameters">
@@ -61,7 +61,7 @@
61
61
  <ul class="tsd-parameter-list">
62
62
  <li>
63
63
  <h5>options: <a href="../interfaces/NodePyATVInstanceOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">NodePyATVInstanceOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
64
- <h4 class="tsd-returns-title">Returns <a href="default.html" class="tsd-signature-type" data-tsd-kind="Class">default</a></h4></li></ul></section></section>
64
+ <h4 class="tsd-returns-title">Returns <a href="NodePyATVInstance.html" class="tsd-signature-type" data-tsd-kind="Class">NodePyATVInstance</a></h4></li></ul></section></section>
65
65
  <section class="tsd-panel-group tsd-member-group">
66
66
  <h2>Methods</h2>
67
67
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="check" class="tsd-anchor"></a>
@@ -103,7 +103,7 @@ At least <code>host</code> and <code>name</code> are required.</p>
103
103
  <div class="tsd-comment tsd-typography"><p>Scan the network for Apple TVs by using pyatv&#39;s atvscript. See <a href="../interfaces/NodePyATVFindAndInstanceOptions.html">NodePyATVFindAndInstanceOptions</a>
104
104
  for the options allowed. Use the <code>host</code> / <code>hosts</code> attribute to filter by IP addresses. Resolves with
105
105
  an array of <a href="NodePyATVDevice.html">NodePyATVDevice</a>.</p>
106
- <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">myPyATV</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">pyatv</span><span class="hl-1">({</span><span class="hl-0">debug:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">});</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">myPyATV</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
106
+ <pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">myPyATV</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">pyatv</span><span class="hl-1">({</span><span class="hl-0">debug:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">});</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">myPyATV</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
107
107
  </code></pre>
108
108
  </div>
109
109
  <div class="tsd-parameters">
@@ -166,7 +166,7 @@ At least <code>host</code> and <code>name</code> are required.</p>
166
166
  <div class="tsd-comment tsd-typography"><p>Scan the network for Apple TVs by using pyatv&#39;s atvscript. See <a href="../interfaces/NodePyATVFindAndInstanceOptions.html">NodePyATVFindAndInstanceOptions</a>
167
167
  for the options allowed. Use the <code>host</code> / <code>hosts</code> attribute to filter by IP addresses. Resolves with
168
168
  an array of <a href="NodePyATVDevice.html">NodePyATVDevice</a>.</p>
169
- <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
169
+ <pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1"> </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&#39;@sebbo2002/node-pyatv&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">();</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">devices</span><span class="hl-1">);</span>
170
170
  </code></pre>
171
171
  </div>
172
172
  <div class="tsd-parameters">
@@ -207,21 +207,21 @@ If a value can&#39;t be found, null is returned instead.</p>
207
207
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
208
208
  <div class="tsd-accordion-details">
209
209
  <ul>
210
- <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.0.0</a>
210
+ <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0-<wbr/>develop.1</a>
211
211
  <ul></ul></li></ul></div></details></nav>
212
212
  <nav class="tsd-navigation secondary menu-sticky">
213
213
  <ul>
214
- <li class="current tsd-kind-class"><a href="default.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>default</span></a>
214
+ <li class="current tsd-kind-class"><a href="NodePyATVInstance.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Node<wbr/>PyATVInstance</span></a>
215
215
  <ul>
216
- <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="default.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
217
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#check" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>check</a></li>
218
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#device" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>device</a></li>
219
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#find" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>find</a></li>
220
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#version" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>version</a></li>
221
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#check-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>check</a></li>
222
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#device-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>device</a></li>
223
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#find-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>find</a></li>
224
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#version-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>version</a></li></ul></li></ul></nav></div></div>
216
+ <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="NodePyATVInstance.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
217
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#check" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>check</a></li>
218
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#device" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>device</a></li>
219
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#find" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>find</a></li>
220
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#version" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>version</a></li>
221
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#check-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>check</a></li>
222
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#device-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>device</a></li>
223
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#find-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>find</a></li>
224
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="NodePyATVInstance.html#version-2" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>version</a></li></ul></li></ul></nav></div></div>
225
225
  <div class="container tsd-generator">
226
226
  <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
227
227
  <div class="overlay"></div><script src="../assets/main.js"></script></body></html>
@@ -1,16 +1,16 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDeviceState | node-pyatv - v5.0.0</title><meta name="description" content="Documentation for node-pyatv - v5.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVDeviceState | node-pyatv - v5.1.0-develop.1</title><meta name="description" content="Documentation for node-pyatv - v5.1.0-develop.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
5
  <ul class="results">
6
6
  <li class="state loading">Preparing search index...</li>
7
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.0.0</a></div>
7
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0-develop.1</a></div>
8
8
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
9
9
  <div class="container container-main">
10
10
  <div class="col-8 col-content">
11
11
  <div class="tsd-page-title">
12
12
  <ul class="tsd-breadcrumb">
13
- <li><a href="../modules.html">node-pyatv - v5.0.0</a></li>
13
+ <li><a href="../modules.html">node-pyatv - v5.1.0-develop.1</a></li>
14
14
  <li><a href="NodePyATVDeviceState.html">NodePyATVDeviceState</a></li></ul>
15
15
  <h1>Enumeration NodePyATVDeviceState</h1></div>
16
16
  <section class="tsd-panel-group tsd-index-group">
@@ -33,32 +33,32 @@
33
33
  <h3 class="tsd-anchor-link"><span>idle</span><a href="#idle" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
34
34
  <div class="tsd-signature">idle<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;idle&quot;</span></div><aside class="tsd-sources">
35
35
  <ul>
36
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L24">src/lib/types.ts:24</a></li></ul></aside></section>
36
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L24">src/lib/types.ts:24</a></li></ul></aside></section>
37
37
  <section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="loading" class="tsd-anchor"></a>
38
38
  <h3 class="tsd-anchor-link"><span>loading</span><a href="#loading" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
39
39
  <div class="tsd-signature">loading<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;loading&quot;</span></div><aside class="tsd-sources">
40
40
  <ul>
41
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L25">src/lib/types.ts:25</a></li></ul></aside></section>
41
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L25">src/lib/types.ts:25</a></li></ul></aside></section>
42
42
  <section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="paused" class="tsd-anchor"></a>
43
43
  <h3 class="tsd-anchor-link"><span>paused</span><a href="#paused" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
44
44
  <div class="tsd-signature">paused<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;paused&quot;</span></div><aside class="tsd-sources">
45
45
  <ul>
46
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L26">src/lib/types.ts:26</a></li></ul></aside></section>
46
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L26">src/lib/types.ts:26</a></li></ul></aside></section>
47
47
  <section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="playing" class="tsd-anchor"></a>
48
48
  <h3 class="tsd-anchor-link"><span>playing</span><a href="#playing" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
49
49
  <div class="tsd-signature">playing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;playing&quot;</span></div><aside class="tsd-sources">
50
50
  <ul>
51
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L27">src/lib/types.ts:27</a></li></ul></aside></section>
51
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L27">src/lib/types.ts:27</a></li></ul></aside></section>
52
52
  <section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="seeking" class="tsd-anchor"></a>
53
53
  <h3 class="tsd-anchor-link"><span>seeking</span><a href="#seeking" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
54
54
  <div class="tsd-signature">seeking<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;seeking&quot;</span></div><aside class="tsd-sources">
55
55
  <ul>
56
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L28">src/lib/types.ts:28</a></li></ul></aside></section>
56
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L28">src/lib/types.ts:28</a></li></ul></aside></section>
57
57
  <section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="stopped" class="tsd-anchor"></a>
58
58
  <h3 class="tsd-anchor-link"><span>stopped</span><a href="#stopped" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
59
59
  <div class="tsd-signature">stopped<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;stopped&quot;</span></div><aside class="tsd-sources">
60
60
  <ul>
61
- <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/b553b40/src/lib/types.ts#L29">src/lib/types.ts:29</a></li></ul></aside></section></section></div>
61
+ <li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/e58764c/src/lib/types.ts#L29">src/lib/types.ts:29</a></li></ul></aside></section></section></div>
62
62
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
63
63
  <div class="tsd-navigation settings">
64
64
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -76,7 +76,7 @@
76
76
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
77
77
  <div class="tsd-accordion-details">
78
78
  <ul>
79
- <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.0.0</a>
79
+ <li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0-<wbr/>develop.1</a>
80
80
  <ul></ul></li></ul></div></details></nav>
81
81
  <nav class="tsd-navigation secondary menu-sticky">
82
82
  <ul>