@jellyfin/sdk 0.0.0-unstable.202212091849

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 (880) hide show
  1. package/.gitattributes +5 -0
  2. package/LICENSE +373 -0
  3. package/README.md +153 -0
  4. package/lib/api.d.ts +42 -0
  5. package/lib/api.js +70 -0
  6. package/lib/discovery/discovery-service.d.ts +41 -0
  7. package/lib/discovery/discovery-service.js +76 -0
  8. package/lib/discovery/index.d.ts +7 -0
  9. package/lib/discovery/index.js +7 -0
  10. package/lib/discovery/recommended-server-discovery.d.ts +23 -0
  11. package/lib/discovery/recommended-server-discovery.js +110 -0
  12. package/lib/generated-client/api/activity-log-api.d.ts +113 -0
  13. package/lib/generated-client/api/activity-log-api.js +146 -0
  14. package/lib/generated-client/api/api-key-api.d.ts +161 -0
  15. package/lib/generated-client/api/api-key-api.js +251 -0
  16. package/lib/generated-client/api/artists-api.d.ts +751 -0
  17. package/lib/generated-client/api/artists-api.js +634 -0
  18. package/lib/generated-client/api/audio-api.d.ts +1985 -0
  19. package/lib/generated-client/api/audio-api.js +1465 -0
  20. package/lib/generated-client/api/branding-api.d.ts +127 -0
  21. package/lib/generated-client/api/branding-api.js +229 -0
  22. package/lib/generated-client/api/channels-api.d.ts +419 -0
  23. package/lib/generated-client/api/channels-api.js +487 -0
  24. package/lib/generated-client/api/client-log-api.d.ts +86 -0
  25. package/lib/generated-client/api/client-log-api.js +125 -0
  26. package/lib/generated-client/api/collection-api.d.ts +223 -0
  27. package/lib/generated-client/api/collection-api.js +290 -0
  28. package/lib/generated-client/api/configuration-api.d.ts +293 -0
  29. package/lib/generated-client/api/configuration-api.js +446 -0
  30. package/lib/generated-client/api/dashboard-api.d.ts +132 -0
  31. package/lib/generated-client/api/dashboard-api.js +189 -0
  32. package/lib/generated-client/api/devices-api.d.ts +291 -0
  33. package/lib/generated-client/api/devices-api.js +407 -0
  34. package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
  35. package/lib/generated-client/api/display-preferences-api.js +230 -0
  36. package/lib/generated-client/api/dlna-api.d.ts +292 -0
  37. package/lib/generated-client/api/dlna-api.js +441 -0
  38. package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
  39. package/lib/generated-client/api/dlna-server-api.js +1107 -0
  40. package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
  41. package/lib/generated-client/api/dynamic-hls-api.js +3380 -0
  42. package/lib/generated-client/api/environment-api.d.ts +289 -0
  43. package/lib/generated-client/api/environment-api.js +451 -0
  44. package/lib/generated-client/api/filter-api.d.ts +242 -0
  45. package/lib/generated-client/api/filter-api.js +263 -0
  46. package/lib/generated-client/api/genres-api.d.ts +299 -0
  47. package/lib/generated-client/api/genres-api.js +299 -0
  48. package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
  49. package/lib/generated-client/api/hls-segment-api.js +426 -0
  50. package/lib/generated-client/api/image-api.d.ts +6744 -0
  51. package/lib/generated-client/api/image-api.js +5880 -0
  52. package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
  53. package/lib/generated-client/api/image-by-name-api.js +442 -0
  54. package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
  55. package/lib/generated-client/api/instant-mix-api.js +925 -0
  56. package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
  57. package/lib/generated-client/api/item-lookup-api.js +798 -0
  58. package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
  59. package/lib/generated-client/api/item-refresh-api.js +150 -0
  60. package/lib/generated-client/api/item-update-api.d.ts +197 -0
  61. package/lib/generated-client/api/item-update-api.js +269 -0
  62. package/lib/generated-client/api/items-api.d.ts +1824 -0
  63. package/lib/generated-client/api/items-api.js +1364 -0
  64. package/lib/generated-client/api/library-api.d.ts +1482 -0
  65. package/lib/generated-client/api/library-api.js +1887 -0
  66. package/lib/generated-client/api/library-structure-api.d.ts +486 -0
  67. package/lib/generated-client/api/library-structure-api.js +634 -0
  68. package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
  69. package/lib/generated-client/api/live-tv-api.js +3349 -0
  70. package/lib/generated-client/api/localization-api.d.ts +159 -0
  71. package/lib/generated-client/api/localization-api.js +293 -0
  72. package/lib/generated-client/api/media-info-api.d.ts +516 -0
  73. package/lib/generated-client/api/media-info-api.js +550 -0
  74. package/lib/generated-client/api/movies-api.d.ts +123 -0
  75. package/lib/generated-client/api/movies-api.js +150 -0
  76. package/lib/generated-client/api/music-genres-api.d.ts +303 -0
  77. package/lib/generated-client/api/music-genres-api.js +303 -0
  78. package/lib/generated-client/api/notifications-api.d.ts +332 -0
  79. package/lib/generated-client/api/notifications-api.js +503 -0
  80. package/lib/generated-client/api/package-api.d.ts +319 -0
  81. package/lib/generated-client/api/package-api.js +462 -0
  82. package/lib/generated-client/api/persons-api.d.ts +253 -0
  83. package/lib/generated-client/api/persons-api.js +269 -0
  84. package/lib/generated-client/api/playlists-api.d.ts +427 -0
  85. package/lib/generated-client/api/playlists-api.js +489 -0
  86. package/lib/generated-client/api/playstate-api.d.ts +720 -0
  87. package/lib/generated-client/api/playstate-api.js +821 -0
  88. package/lib/generated-client/api/plugins-api.d.ts +477 -0
  89. package/lib/generated-client/api/plugins-api.js +667 -0
  90. package/lib/generated-client/api/quick-connect-api.d.ts +199 -0
  91. package/lib/generated-client/api/quick-connect-api.js +311 -0
  92. package/lib/generated-client/api/remote-image-api.d.ts +243 -0
  93. package/lib/generated-client/api/remote-image-api.js +300 -0
  94. package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
  95. package/lib/generated-client/api/scheduled-tasks-api.js +399 -0
  96. package/lib/generated-client/api/search-api.d.ts +240 -0
  97. package/lib/generated-client/api/search-api.js +230 -0
  98. package/lib/generated-client/api/session-api.d.ts +985 -0
  99. package/lib/generated-client/api/session-api.js +1263 -0
  100. package/lib/generated-client/api/startup-api.d.ts +296 -0
  101. package/lib/generated-client/api/startup-api.js +489 -0
  102. package/lib/generated-client/api/studios-api.d.ts +289 -0
  103. package/lib/generated-client/api/studios-api.js +293 -0
  104. package/lib/generated-client/api/subtitle-api.d.ts +764 -0
  105. package/lib/generated-client/api/subtitle-api.js +889 -0
  106. package/lib/generated-client/api/suggestions-api.d.ts +132 -0
  107. package/lib/generated-client/api/suggestions-api.js +156 -0
  108. package/lib/generated-client/api/sync-play-api.d.ts +937 -0
  109. package/lib/generated-client/api/sync-play-api.js +1407 -0
  110. package/lib/generated-client/api/system-api.d.ts +355 -0
  111. package/lib/generated-client/api/system-api.js +648 -0
  112. package/lib/generated-client/api/time-sync-api.d.ts +69 -0
  113. package/lib/generated-client/api/time-sync-api.js +117 -0
  114. package/lib/generated-client/api/tmdb-api.d.ts +69 -0
  115. package/lib/generated-client/api/tmdb-api.js +119 -0
  116. package/lib/generated-client/api/trailers-api.d.ts +841 -0
  117. package/lib/generated-client/api/trailers-api.js +632 -0
  118. package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
  119. package/lib/generated-client/api/tv-shows-api.js +587 -0
  120. package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
  121. package/lib/generated-client/api/universal-audio-api.js +395 -0
  122. package/lib/generated-client/api/user-api.d.ts +826 -0
  123. package/lib/generated-client/api/user-api.js +1135 -0
  124. package/lib/generated-client/api/user-library-api.d.ts +732 -0
  125. package/lib/generated-client/api/user-library-api.js +896 -0
  126. package/lib/generated-client/api/user-views-api.d.ts +160 -0
  127. package/lib/generated-client/api/user-views-api.js +209 -0
  128. package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
  129. package/lib/generated-client/api/video-attachments-api.js +136 -0
  130. package/lib/generated-client/api/videos-api.d.ts +2205 -0
  131. package/lib/generated-client/api/videos-api.js +1716 -0
  132. package/lib/generated-client/api/years-api.d.ts +272 -0
  133. package/lib/generated-client/api/years-api.js +281 -0
  134. package/lib/generated-client/api.d.ts +71 -0
  135. package/lib/generated-client/api.js +73 -0
  136. package/lib/generated-client/base.d.ts +54 -0
  137. package/lib/generated-client/base.js +55 -0
  138. package/lib/generated-client/common.d.ts +64 -0
  139. package/lib/generated-client/common.js +139 -0
  140. package/lib/generated-client/configuration.d.ts +82 -0
  141. package/lib/generated-client/configuration.js +37 -0
  142. package/lib/generated-client/index.d.ts +13 -0
  143. package/lib/generated-client/index.js +15 -0
  144. package/lib/generated-client/models/access-schedule.d.ts +48 -0
  145. package/lib/generated-client/models/access-schedule.js +13 -0
  146. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
  147. package/lib/generated-client/models/activity-log-entry-query-result.js +13 -0
  148. package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
  149. package/lib/generated-client/models/activity-log-entry.js +13 -0
  150. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
  151. package/lib/generated-client/models/add-virtual-folder-dto.js +13 -0
  152. package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
  153. package/lib/generated-client/models/admin-notification-dto.js +13 -0
  154. package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
  155. package/lib/generated-client/models/album-info-remote-search-query.js +13 -0
  156. package/lib/generated-client/models/album-info.d.ts +106 -0
  157. package/lib/generated-client/models/album-info.js +13 -0
  158. package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
  159. package/lib/generated-client/models/all-theme-media-result.js +13 -0
  160. package/lib/generated-client/models/architecture.d.ts +27 -0
  161. package/lib/generated-client/models/architecture.js +28 -0
  162. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
  163. package/lib/generated-client/models/artist-info-remote-search-query.js +13 -0
  164. package/lib/generated-client/models/artist-info.d.ts +92 -0
  165. package/lib/generated-client/models/artist-info.js +13 -0
  166. package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
  167. package/lib/generated-client/models/authenticate-user-by-name.js +13 -0
  168. package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
  169. package/lib/generated-client/models/authentication-info-query-result.js +13 -0
  170. package/lib/generated-client/models/authentication-info.d.ts +89 -0
  171. package/lib/generated-client/models/authentication-info.js +13 -0
  172. package/lib/generated-client/models/authentication-result.d.ts +43 -0
  173. package/lib/generated-client/models/authentication-result.js +13 -0
  174. package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
  175. package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +13 -0
  176. package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
  177. package/lib/generated-client/models/base-item-dto-query-result.js +13 -0
  178. package/lib/generated-client/models/base-item-dto.d.ts +953 -0
  179. package/lib/generated-client/models/base-item-dto.js +13 -0
  180. package/lib/generated-client/models/base-item-kind.d.ts +55 -0
  181. package/lib/generated-client/models/base-item-kind.js +56 -0
  182. package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
  183. package/lib/generated-client/models/base-item-person-image-blur-hashes.js +13 -0
  184. package/lib/generated-client/models/base-item-person.d.ts +54 -0
  185. package/lib/generated-client/models/base-item-person.js +13 -0
  186. package/lib/generated-client/models/base-item.d.ts +84 -0
  187. package/lib/generated-client/models/base-item.js +13 -0
  188. package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
  189. package/lib/generated-client/models/book-info-remote-search-query.js +13 -0
  190. package/lib/generated-client/models/book-info.d.ts +91 -0
  191. package/lib/generated-client/models/book-info.js +13 -0
  192. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
  193. package/lib/generated-client/models/box-set-info-remote-search-query.js +13 -0
  194. package/lib/generated-client/models/box-set-info.d.ts +85 -0
  195. package/lib/generated-client/models/box-set-info.js +13 -0
  196. package/lib/generated-client/models/branding-options.d.ts +35 -0
  197. package/lib/generated-client/models/branding-options.js +13 -0
  198. package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
  199. package/lib/generated-client/models/buffer-request-dto.js +13 -0
  200. package/lib/generated-client/models/channel-features.d.ts +92 -0
  201. package/lib/generated-client/models/channel-features.js +13 -0
  202. package/lib/generated-client/models/channel-item-sort-field.d.ts +25 -0
  203. package/lib/generated-client/models/channel-item-sort-field.js +26 -0
  204. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
  205. package/lib/generated-client/models/channel-mapping-options-dto.js +13 -0
  206. package/lib/generated-client/models/channel-media-content-type.d.ts +26 -0
  207. package/lib/generated-client/models/channel-media-content-type.js +27 -0
  208. package/lib/generated-client/models/channel-media-type.d.ts +21 -0
  209. package/lib/generated-client/models/channel-media-type.js +22 -0
  210. package/lib/generated-client/models/channel-type.d.ts +20 -0
  211. package/lib/generated-client/models/channel-type.js +21 -0
  212. package/lib/generated-client/models/chapter-info.d.ts +47 -0
  213. package/lib/generated-client/models/chapter-info.js +13 -0
  214. package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
  215. package/lib/generated-client/models/client-capabilities-dto.js +13 -0
  216. package/lib/generated-client/models/client-capabilities.d.ts +79 -0
  217. package/lib/generated-client/models/client-capabilities.js +13 -0
  218. package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
  219. package/lib/generated-client/models/client-log-document-response-dto.js +13 -0
  220. package/lib/generated-client/models/codec-profile.d.ts +49 -0
  221. package/lib/generated-client/models/codec-profile.js +13 -0
  222. package/lib/generated-client/models/codec-type.d.ts +21 -0
  223. package/lib/generated-client/models/codec-type.js +22 -0
  224. package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
  225. package/lib/generated-client/models/collection-creation-result.js +13 -0
  226. package/lib/generated-client/models/collection-type-options.d.ts +26 -0
  227. package/lib/generated-client/models/collection-type-options.js +27 -0
  228. package/lib/generated-client/models/config-image-types.d.ts +59 -0
  229. package/lib/generated-client/models/config-image-types.js +13 -0
  230. package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
  231. package/lib/generated-client/models/configuration-page-info.js +13 -0
  232. package/lib/generated-client/models/container-profile.d.ts +37 -0
  233. package/lib/generated-client/models/container-profile.js +13 -0
  234. package/lib/generated-client/models/control-response.d.ts +37 -0
  235. package/lib/generated-client/models/control-response.js +13 -0
  236. package/lib/generated-client/models/country-info.d.ts +41 -0
  237. package/lib/generated-client/models/country-info.js +13 -0
  238. package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
  239. package/lib/generated-client/models/create-playlist-dto.js +13 -0
  240. package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
  241. package/lib/generated-client/models/create-user-by-name.js +13 -0
  242. package/lib/generated-client/models/culture-dto.d.ts +47 -0
  243. package/lib/generated-client/models/culture-dto.js +13 -0
  244. package/lib/generated-client/models/day-of-week.d.ts +25 -0
  245. package/lib/generated-client/models/day-of-week.js +26 -0
  246. package/lib/generated-client/models/day-pattern.d.ts +21 -0
  247. package/lib/generated-client/models/day-pattern.js +22 -0
  248. package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
  249. package/lib/generated-client/models/default-directory-browser-info-dto.js +13 -0
  250. package/lib/generated-client/models/device-identification.d.ts +72 -0
  251. package/lib/generated-client/models/device-identification.js +13 -0
  252. package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
  253. package/lib/generated-client/models/device-info-query-result.js +13 -0
  254. package/lib/generated-client/models/device-info.d.ts +78 -0
  255. package/lib/generated-client/models/device-info.js +13 -0
  256. package/lib/generated-client/models/device-options-dto.d.ts +35 -0
  257. package/lib/generated-client/models/device-options-dto.js +13 -0
  258. package/lib/generated-client/models/device-options.d.ts +35 -0
  259. package/lib/generated-client/models/device-options.js +13 -0
  260. package/lib/generated-client/models/device-profile-info.d.ts +36 -0
  261. package/lib/generated-client/models/device-profile-info.js +13 -0
  262. package/lib/generated-client/models/device-profile-type.d.ts +20 -0
  263. package/lib/generated-client/models/device-profile-type.js +21 -0
  264. package/lib/generated-client/models/device-profile.d.ts +259 -0
  265. package/lib/generated-client/models/device-profile.js +13 -0
  266. package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
  267. package/lib/generated-client/models/direct-play-profile.js +13 -0
  268. package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
  269. package/lib/generated-client/models/display-preferences-dto.js +13 -0
  270. package/lib/generated-client/models/dlna-options.d.ts +83 -0
  271. package/lib/generated-client/models/dlna-options.js +13 -0
  272. package/lib/generated-client/models/dlna-profile-type.d.ts +22 -0
  273. package/lib/generated-client/models/dlna-profile-type.js +23 -0
  274. package/lib/generated-client/models/dynamic-day-of-week.d.ts +28 -0
  275. package/lib/generated-client/models/dynamic-day-of-week.js +29 -0
  276. package/lib/generated-client/models/embedded-subtitle-options.d.ts +22 -0
  277. package/lib/generated-client/models/embedded-subtitle-options.js +23 -0
  278. package/lib/generated-client/models/encoding-context.d.ts +20 -0
  279. package/lib/generated-client/models/encoding-context.js +21 -0
  280. package/lib/generated-client/models/encoding-options.d.ts +245 -0
  281. package/lib/generated-client/models/encoding-options.js +13 -0
  282. package/lib/generated-client/models/end-point-info.d.ts +29 -0
  283. package/lib/generated-client/models/end-point-info.js +13 -0
  284. package/lib/generated-client/models/external-id-info.d.ts +42 -0
  285. package/lib/generated-client/models/external-id-info.js +13 -0
  286. package/lib/generated-client/models/external-id-media-type.d.ts +30 -0
  287. package/lib/generated-client/models/external-id-media-type.js +31 -0
  288. package/lib/generated-client/models/external-url.d.ts +29 -0
  289. package/lib/generated-client/models/external-url.js +13 -0
  290. package/lib/generated-client/models/ffmpeg-location.d.ts +22 -0
  291. package/lib/generated-client/models/ffmpeg-location.js +23 -0
  292. package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
  293. package/lib/generated-client/models/file-system-entry-info.js +13 -0
  294. package/lib/generated-client/models/file-system-entry-type.d.ts +22 -0
  295. package/lib/generated-client/models/file-system-entry-type.js +23 -0
  296. package/lib/generated-client/models/font-file.d.ts +41 -0
  297. package/lib/generated-client/models/font-file.js +13 -0
  298. package/lib/generated-client/models/forgot-password-action.d.ts +21 -0
  299. package/lib/generated-client/models/forgot-password-action.js +22 -0
  300. package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
  301. package/lib/generated-client/models/forgot-password-dto.js +13 -0
  302. package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
  303. package/lib/generated-client/models/forgot-password-pin-dto.js +13 -0
  304. package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
  305. package/lib/generated-client/models/forgot-password-result.js +13 -0
  306. package/lib/generated-client/models/general-command-type.d.ts +60 -0
  307. package/lib/generated-client/models/general-command-type.js +61 -0
  308. package/lib/generated-client/models/general-command.d.ts +38 -0
  309. package/lib/generated-client/models/general-command.js +13 -0
  310. package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
  311. package/lib/generated-client/models/get-programs-dto.js +13 -0
  312. package/lib/generated-client/models/group-info-dto.d.ts +48 -0
  313. package/lib/generated-client/models/group-info-dto.js +13 -0
  314. package/lib/generated-client/models/group-queue-mode.d.ts +20 -0
  315. package/lib/generated-client/models/group-queue-mode.js +21 -0
  316. package/lib/generated-client/models/group-repeat-mode.d.ts +21 -0
  317. package/lib/generated-client/models/group-repeat-mode.js +22 -0
  318. package/lib/generated-client/models/group-shuffle-mode.d.ts +20 -0
  319. package/lib/generated-client/models/group-shuffle-mode.js +21 -0
  320. package/lib/generated-client/models/group-state-type.d.ts +22 -0
  321. package/lib/generated-client/models/group-state-type.js +23 -0
  322. package/lib/generated-client/models/group-update-type.d.ts +29 -0
  323. package/lib/generated-client/models/group-update-type.js +30 -0
  324. package/lib/generated-client/models/guide-info.d.ts +29 -0
  325. package/lib/generated-client/models/guide-info.js +13 -0
  326. package/lib/generated-client/models/hardware-encoding-type.d.ts +24 -0
  327. package/lib/generated-client/models/hardware-encoding-type.js +25 -0
  328. package/lib/generated-client/models/header-match-type.d.ts +21 -0
  329. package/lib/generated-client/models/header-match-type.js +22 -0
  330. package/lib/generated-client/models/http-header-info.d.ts +36 -0
  331. package/lib/generated-client/models/http-header-info.js +13 -0
  332. package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
  333. package/lib/generated-client/models/ignore-wait-request-dto.js +13 -0
  334. package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
  335. package/lib/generated-client/models/image-by-name-info.js +13 -0
  336. package/lib/generated-client/models/image-format.d.ts +23 -0
  337. package/lib/generated-client/models/image-format.js +24 -0
  338. package/lib/generated-client/models/image-info.d.ts +66 -0
  339. package/lib/generated-client/models/image-info.js +13 -0
  340. package/lib/generated-client/models/image-option.d.ts +36 -0
  341. package/lib/generated-client/models/image-option.js +13 -0
  342. package/lib/generated-client/models/image-orientation.d.ts +26 -0
  343. package/lib/generated-client/models/image-orientation.js +27 -0
  344. package/lib/generated-client/models/image-provider-info.d.ts +30 -0
  345. package/lib/generated-client/models/image-provider-info.js +13 -0
  346. package/lib/generated-client/models/image-resolution.d.ts +27 -0
  347. package/lib/generated-client/models/image-resolution.js +28 -0
  348. package/lib/generated-client/models/image-saving-convention.d.ts +20 -0
  349. package/lib/generated-client/models/image-saving-convention.js +21 -0
  350. package/lib/generated-client/models/image-type.d.ts +31 -0
  351. package/lib/generated-client/models/image-type.js +32 -0
  352. package/lib/generated-client/models/index.d.ts +289 -0
  353. package/lib/generated-client/models/index.js +289 -0
  354. package/lib/generated-client/models/installation-info.d.ts +60 -0
  355. package/lib/generated-client/models/installation-info.js +13 -0
  356. package/lib/generated-client/models/iplugin.d.ts +59 -0
  357. package/lib/generated-client/models/iplugin.js +13 -0
  358. package/lib/generated-client/models/iso-type.d.ts +20 -0
  359. package/lib/generated-client/models/iso-type.js +21 -0
  360. package/lib/generated-client/models/item-counts.d.ts +89 -0
  361. package/lib/generated-client/models/item-counts.js +13 -0
  362. package/lib/generated-client/models/item-fields.d.ts +79 -0
  363. package/lib/generated-client/models/item-fields.js +80 -0
  364. package/lib/generated-client/models/item-filter.d.ts +27 -0
  365. package/lib/generated-client/models/item-filter.js +28 -0
  366. package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
  367. package/lib/generated-client/models/join-group-request-dto.js +13 -0
  368. package/lib/generated-client/models/keep-until.d.ts +22 -0
  369. package/lib/generated-client/models/keep-until.js +23 -0
  370. package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
  371. package/lib/generated-client/models/library-option-info-dto.js +13 -0
  372. package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
  373. package/lib/generated-client/models/library-options-result-dto.js +13 -0
  374. package/lib/generated-client/models/library-options.d.ts +183 -0
  375. package/lib/generated-client/models/library-options.js +13 -0
  376. package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
  377. package/lib/generated-client/models/library-type-options-dto.js +13 -0
  378. package/lib/generated-client/models/library-update-info.d.ts +59 -0
  379. package/lib/generated-client/models/library-update-info.js +13 -0
  380. package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
  381. package/lib/generated-client/models/listings-provider-info.js +13 -0
  382. package/lib/generated-client/models/live-stream-response.d.ts +24 -0
  383. package/lib/generated-client/models/live-stream-response.js +13 -0
  384. package/lib/generated-client/models/live-tv-info.d.ts +36 -0
  385. package/lib/generated-client/models/live-tv-info.js +13 -0
  386. package/lib/generated-client/models/live-tv-options.d.ts +97 -0
  387. package/lib/generated-client/models/live-tv-options.js +13 -0
  388. package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
  389. package/lib/generated-client/models/live-tv-service-info.js +13 -0
  390. package/lib/generated-client/models/live-tv-service-status.d.ts +20 -0
  391. package/lib/generated-client/models/live-tv-service-status.js +21 -0
  392. package/lib/generated-client/models/localization-option.d.ts +29 -0
  393. package/lib/generated-client/models/localization-option.js +13 -0
  394. package/lib/generated-client/models/location-type.d.ts +22 -0
  395. package/lib/generated-client/models/location-type.js +23 -0
  396. package/lib/generated-client/models/log-file.d.ts +41 -0
  397. package/lib/generated-client/models/log-file.js +13 -0
  398. package/lib/generated-client/models/log-level.d.ts +25 -0
  399. package/lib/generated-client/models/log-level.js +26 -0
  400. package/lib/generated-client/models/lyric-line.d.ts +29 -0
  401. package/lib/generated-client/models/lyric-line.js +13 -0
  402. package/lib/generated-client/models/lyric-metadata.d.ts +71 -0
  403. package/lib/generated-client/models/lyric-metadata.js +13 -0
  404. package/lib/generated-client/models/lyric-response.d.ts +31 -0
  405. package/lib/generated-client/models/lyric-response.js +13 -0
  406. package/lib/generated-client/models/media-attachment.d.ts +59 -0
  407. package/lib/generated-client/models/media-attachment.js +13 -0
  408. package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
  409. package/lib/generated-client/models/media-encoder-path-dto.js +13 -0
  410. package/lib/generated-client/models/media-path-dto.d.ts +36 -0
  411. package/lib/generated-client/models/media-path-dto.js +13 -0
  412. package/lib/generated-client/models/media-path-info.d.ts +29 -0
  413. package/lib/generated-client/models/media-path-info.js +13 -0
  414. package/lib/generated-client/models/media-protocol.d.ts +25 -0
  415. package/lib/generated-client/models/media-protocol.js +26 -0
  416. package/lib/generated-client/models/media-source-info.d.ts +279 -0
  417. package/lib/generated-client/models/media-source-info.js +13 -0
  418. package/lib/generated-client/models/media-source-type.d.ts +21 -0
  419. package/lib/generated-client/models/media-source-type.js +22 -0
  420. package/lib/generated-client/models/media-stream-type.d.ts +23 -0
  421. package/lib/generated-client/models/media-stream-type.js +24 -0
  422. package/lib/generated-client/models/media-stream.d.ts +379 -0
  423. package/lib/generated-client/models/media-stream.js +13 -0
  424. package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
  425. package/lib/generated-client/models/media-update-info-dto.js +13 -0
  426. package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
  427. package/lib/generated-client/models/media-update-info-path-dto.js +13 -0
  428. package/lib/generated-client/models/media-url.d.ts +29 -0
  429. package/lib/generated-client/models/media-url.js +13 -0
  430. package/lib/generated-client/models/message-command.d.ts +35 -0
  431. package/lib/generated-client/models/message-command.js +13 -0
  432. package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
  433. package/lib/generated-client/models/metadata-configuration.js +13 -0
  434. package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
  435. package/lib/generated-client/models/metadata-editor-info.js +13 -0
  436. package/lib/generated-client/models/metadata-field.d.ts +27 -0
  437. package/lib/generated-client/models/metadata-field.js +28 -0
  438. package/lib/generated-client/models/metadata-options.d.ts +59 -0
  439. package/lib/generated-client/models/metadata-options.js +13 -0
  440. package/lib/generated-client/models/metadata-refresh-mode.d.ts +22 -0
  441. package/lib/generated-client/models/metadata-refresh-mode.js +23 -0
  442. package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
  443. package/lib/generated-client/models/move-playlist-item-request-dto.js +13 -0
  444. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
  445. package/lib/generated-client/models/movie-info-remote-search-query.js +13 -0
  446. package/lib/generated-client/models/movie-info.d.ts +85 -0
  447. package/lib/generated-client/models/movie-info.js +13 -0
  448. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
  449. package/lib/generated-client/models/music-video-info-remote-search-query.js +13 -0
  450. package/lib/generated-client/models/music-video-info.d.ts +91 -0
  451. package/lib/generated-client/models/music-video-info.js +13 -0
  452. package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
  453. package/lib/generated-client/models/name-guid-pair.js +13 -0
  454. package/lib/generated-client/models/name-id-pair.d.ts +29 -0
  455. package/lib/generated-client/models/name-id-pair.js +13 -0
  456. package/lib/generated-client/models/name-value-pair.d.ts +29 -0
  457. package/lib/generated-client/models/name-value-pair.js +13 -0
  458. package/lib/generated-client/models/network-configuration.d.ts +221 -0
  459. package/lib/generated-client/models/network-configuration.js +13 -0
  460. package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
  461. package/lib/generated-client/models/new-group-request-dto.js +13 -0
  462. package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
  463. package/lib/generated-client/models/next-item-request-dto.js +13 -0
  464. package/lib/generated-client/models/notification-dto.d.ts +66 -0
  465. package/lib/generated-client/models/notification-dto.js +13 -0
  466. package/lib/generated-client/models/notification-level.d.ts +21 -0
  467. package/lib/generated-client/models/notification-level.js +22 -0
  468. package/lib/generated-client/models/notification-option.d.ts +54 -0
  469. package/lib/generated-client/models/notification-option.js +13 -0
  470. package/lib/generated-client/models/notification-options.d.ts +24 -0
  471. package/lib/generated-client/models/notification-options.js +13 -0
  472. package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
  473. package/lib/generated-client/models/notification-result-dto.js +13 -0
  474. package/lib/generated-client/models/notification-type-info.d.ts +47 -0
  475. package/lib/generated-client/models/notification-type-info.js +13 -0
  476. package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
  477. package/lib/generated-client/models/notifications-summary-dto.js +13 -0
  478. package/lib/generated-client/models/object-group-update.d.ts +36 -0
  479. package/lib/generated-client/models/object-group-update.js +13 -0
  480. package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
  481. package/lib/generated-client/models/open-live-stream-dto.js +13 -0
  482. package/lib/generated-client/models/package-info.d.ts +66 -0
  483. package/lib/generated-client/models/package-info.js +13 -0
  484. package/lib/generated-client/models/parental-rating.d.ts +29 -0
  485. package/lib/generated-client/models/parental-rating.js +13 -0
  486. package/lib/generated-client/models/path-substitution.d.ts +29 -0
  487. package/lib/generated-client/models/path-substitution.js +13 -0
  488. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
  489. package/lib/generated-client/models/person-lookup-info-remote-search-query.js +13 -0
  490. package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
  491. package/lib/generated-client/models/person-lookup-info.js +13 -0
  492. package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
  493. package/lib/generated-client/models/pin-redeem-result.js +13 -0
  494. package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
  495. package/lib/generated-client/models/ping-request-dto.js +13 -0
  496. package/lib/generated-client/models/play-access.d.ts +20 -0
  497. package/lib/generated-client/models/play-access.js +21 -0
  498. package/lib/generated-client/models/play-command.d.ts +23 -0
  499. package/lib/generated-client/models/play-command.js +24 -0
  500. package/lib/generated-client/models/play-method.d.ts +21 -0
  501. package/lib/generated-client/models/play-method.js +22 -0
  502. package/lib/generated-client/models/play-request-dto.d.ts +35 -0
  503. package/lib/generated-client/models/play-request-dto.js +13 -0
  504. package/lib/generated-client/models/play-request.d.ts +66 -0
  505. package/lib/generated-client/models/play-request.js +13 -0
  506. package/lib/generated-client/models/playback-error-code.d.ts +21 -0
  507. package/lib/generated-client/models/playback-error-code.js +22 -0
  508. package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
  509. package/lib/generated-client/models/playback-info-dto.js +13 -0
  510. package/lib/generated-client/models/playback-info-response.d.ts +37 -0
  511. package/lib/generated-client/models/playback-info-response.js +13 -0
  512. package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
  513. package/lib/generated-client/models/playback-progress-info.js +13 -0
  514. package/lib/generated-client/models/playback-start-info.d.ts +141 -0
  515. package/lib/generated-client/models/playback-start-info.js +13 -0
  516. package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
  517. package/lib/generated-client/models/playback-stop-info.js +13 -0
  518. package/lib/generated-client/models/player-state-info.d.ts +85 -0
  519. package/lib/generated-client/models/player-state-info.js +13 -0
  520. package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
  521. package/lib/generated-client/models/playlist-creation-result.js +13 -0
  522. package/lib/generated-client/models/playstate-command.d.ts +27 -0
  523. package/lib/generated-client/models/playstate-command.js +28 -0
  524. package/lib/generated-client/models/playstate-request.d.ts +36 -0
  525. package/lib/generated-client/models/playstate-request.js +13 -0
  526. package/lib/generated-client/models/plugin-info.d.ts +66 -0
  527. package/lib/generated-client/models/plugin-info.js +13 -0
  528. package/lib/generated-client/models/plugin-status.d.ts +25 -0
  529. package/lib/generated-client/models/plugin-status.js +26 -0
  530. package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
  531. package/lib/generated-client/models/previous-item-request-dto.js +13 -0
  532. package/lib/generated-client/models/problem-details.d.ts +48 -0
  533. package/lib/generated-client/models/problem-details.js +13 -0
  534. package/lib/generated-client/models/profile-condition-type.d.ts +23 -0
  535. package/lib/generated-client/models/profile-condition-type.js +24 -0
  536. package/lib/generated-client/models/profile-condition-value.d.ts +42 -0
  537. package/lib/generated-client/models/profile-condition-value.js +43 -0
  538. package/lib/generated-client/models/profile-condition.d.ts +43 -0
  539. package/lib/generated-client/models/profile-condition.js +13 -0
  540. package/lib/generated-client/models/program-audio.d.ts +24 -0
  541. package/lib/generated-client/models/program-audio.js +25 -0
  542. package/lib/generated-client/models/public-system-info.d.ts +59 -0
  543. package/lib/generated-client/models/public-system-info.js +13 -0
  544. package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
  545. package/lib/generated-client/models/query-filters-legacy.js +13 -0
  546. package/lib/generated-client/models/query-filters.d.ts +30 -0
  547. package/lib/generated-client/models/query-filters.js +13 -0
  548. package/lib/generated-client/models/queue-item.d.ts +29 -0
  549. package/lib/generated-client/models/queue-item.js +13 -0
  550. package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
  551. package/lib/generated-client/models/queue-request-dto.js +13 -0
  552. package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
  553. package/lib/generated-client/models/quick-connect-dto.js +13 -0
  554. package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
  555. package/lib/generated-client/models/quick-connect-result.js +13 -0
  556. package/lib/generated-client/models/rating-type.d.ts +20 -0
  557. package/lib/generated-client/models/rating-type.js +21 -0
  558. package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
  559. package/lib/generated-client/models/ready-request-dto.js +13 -0
  560. package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
  561. package/lib/generated-client/models/recommendation-dto.js +13 -0
  562. package/lib/generated-client/models/recommendation-type.d.ts +24 -0
  563. package/lib/generated-client/models/recommendation-type.js +25 -0
  564. package/lib/generated-client/models/recording-status.d.ts +25 -0
  565. package/lib/generated-client/models/recording-status.js +26 -0
  566. package/lib/generated-client/models/remote-image-info.d.ts +79 -0
  567. package/lib/generated-client/models/remote-image-info.js +13 -0
  568. package/lib/generated-client/models/remote-image-result.d.ts +36 -0
  569. package/lib/generated-client/models/remote-image-result.js +13 -0
  570. package/lib/generated-client/models/remote-search-result.d.ts +91 -0
  571. package/lib/generated-client/models/remote-search-result.js +13 -0
  572. package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
  573. package/lib/generated-client/models/remote-subtitle-info.js +13 -0
  574. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
  575. package/lib/generated-client/models/remove-from-playlist-request-dto.js +13 -0
  576. package/lib/generated-client/models/repeat-mode.d.ts +21 -0
  577. package/lib/generated-client/models/repeat-mode.js +22 -0
  578. package/lib/generated-client/models/repository-info.d.ts +35 -0
  579. package/lib/generated-client/models/repository-info.js +13 -0
  580. package/lib/generated-client/models/response-profile.d.ts +61 -0
  581. package/lib/generated-client/models/response-profile.js +13 -0
  582. package/lib/generated-client/models/scroll-direction.d.ts +20 -0
  583. package/lib/generated-client/models/scroll-direction.js +21 -0
  584. package/lib/generated-client/models/search-hint-result.d.ts +30 -0
  585. package/lib/generated-client/models/search-hint-result.js +13 -0
  586. package/lib/generated-client/models/search-hint.d.ts +193 -0
  587. package/lib/generated-client/models/search-hint.js +13 -0
  588. package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
  589. package/lib/generated-client/models/seek-request-dto.js +13 -0
  590. package/lib/generated-client/models/send-command-type.d.ts +22 -0
  591. package/lib/generated-client/models/send-command-type.js +23 -0
  592. package/lib/generated-client/models/send-command.d.ts +54 -0
  593. package/lib/generated-client/models/send-command.js +13 -0
  594. package/lib/generated-client/models/send-to-user-type.d.ts +21 -0
  595. package/lib/generated-client/models/send-to-user-type.js +22 -0
  596. package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
  597. package/lib/generated-client/models/series-info-remote-search-query.js +13 -0
  598. package/lib/generated-client/models/series-info.d.ts +85 -0
  599. package/lib/generated-client/models/series-info.js +13 -0
  600. package/lib/generated-client/models/series-status.d.ts +21 -0
  601. package/lib/generated-client/models/series-status.js +22 -0
  602. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
  603. package/lib/generated-client/models/series-timer-info-dto-query-result.js +13 -0
  604. package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
  605. package/lib/generated-client/models/series-timer-info-dto.js +13 -0
  606. package/lib/generated-client/models/server-configuration.d.ts +329 -0
  607. package/lib/generated-client/models/server-configuration.js +13 -0
  608. package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
  609. package/lib/generated-client/models/server-discovery-info.js +13 -0
  610. package/lib/generated-client/models/session-info.d.ts +199 -0
  611. package/lib/generated-client/models/session-info.js +13 -0
  612. package/lib/generated-client/models/session-message-type.d.ts +52 -0
  613. package/lib/generated-client/models/session-message-type.js +53 -0
  614. package/lib/generated-client/models/session-user-info.d.ts +29 -0
  615. package/lib/generated-client/models/session-user-info.js +13 -0
  616. package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
  617. package/lib/generated-client/models/set-channel-mapping-dto.js +13 -0
  618. package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
  619. package/lib/generated-client/models/set-playlist-item-request-dto.js +13 -0
  620. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
  621. package/lib/generated-client/models/set-repeat-mode-request-dto.js +13 -0
  622. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
  623. package/lib/generated-client/models/set-shuffle-mode-request-dto.js +13 -0
  624. package/lib/generated-client/models/song-info.d.ts +103 -0
  625. package/lib/generated-client/models/song-info.js +13 -0
  626. package/lib/generated-client/models/sort-order.d.ts +20 -0
  627. package/lib/generated-client/models/sort-order.js +21 -0
  628. package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
  629. package/lib/generated-client/models/special-view-option-dto.js +13 -0
  630. package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
  631. package/lib/generated-client/models/startup-configuration-dto.js +13 -0
  632. package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
  633. package/lib/generated-client/models/startup-remote-access-dto.js +13 -0
  634. package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
  635. package/lib/generated-client/models/startup-user-dto.js +13 -0
  636. package/lib/generated-client/models/subtitle-delivery-method.d.ts +23 -0
  637. package/lib/generated-client/models/subtitle-delivery-method.js +24 -0
  638. package/lib/generated-client/models/subtitle-options.d.ts +71 -0
  639. package/lib/generated-client/models/subtitle-options.js +13 -0
  640. package/lib/generated-client/models/subtitle-playback-mode.d.ts +23 -0
  641. package/lib/generated-client/models/subtitle-playback-mode.js +24 -0
  642. package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
  643. package/lib/generated-client/models/subtitle-profile.js +13 -0
  644. package/lib/generated-client/models/sync-play-user-access-type.d.ts +21 -0
  645. package/lib/generated-client/models/sync-play-user-access-type.js +22 -0
  646. package/lib/generated-client/models/system-info.d.ts +177 -0
  647. package/lib/generated-client/models/system-info.js +13 -0
  648. package/lib/generated-client/models/task-completion-status.d.ts +22 -0
  649. package/lib/generated-client/models/task-completion-status.js +23 -0
  650. package/lib/generated-client/models/task-info.d.ts +80 -0
  651. package/lib/generated-client/models/task-info.js +13 -0
  652. package/lib/generated-client/models/task-result.d.ts +66 -0
  653. package/lib/generated-client/models/task-result.js +13 -0
  654. package/lib/generated-client/models/task-state.d.ts +21 -0
  655. package/lib/generated-client/models/task-state.js +22 -0
  656. package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
  657. package/lib/generated-client/models/task-trigger-info.js +13 -0
  658. package/lib/generated-client/models/theme-media-result.d.ts +42 -0
  659. package/lib/generated-client/models/theme-media-result.js +13 -0
  660. package/lib/generated-client/models/timer-event-info.d.ts +29 -0
  661. package/lib/generated-client/models/timer-event-info.js +13 -0
  662. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
  663. package/lib/generated-client/models/timer-info-dto-query-result.js +13 -0
  664. package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
  665. package/lib/generated-client/models/timer-info-dto.js +13 -0
  666. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
  667. package/lib/generated-client/models/trailer-info-remote-search-query.js +13 -0
  668. package/lib/generated-client/models/trailer-info.d.ts +85 -0
  669. package/lib/generated-client/models/trailer-info.js +13 -0
  670. package/lib/generated-client/models/transcode-reason.d.ts +43 -0
  671. package/lib/generated-client/models/transcode-reason.js +44 -0
  672. package/lib/generated-client/models/transcode-seek-info.d.ts +20 -0
  673. package/lib/generated-client/models/transcode-seek-info.js +21 -0
  674. package/lib/generated-client/models/transcoding-info.d.ts +97 -0
  675. package/lib/generated-client/models/transcoding-info.js +13 -0
  676. package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
  677. package/lib/generated-client/models/transcoding-profile.js +13 -0
  678. package/lib/generated-client/models/transport-stream-timestamp.d.ts +21 -0
  679. package/lib/generated-client/models/transport-stream-timestamp.js +22 -0
  680. package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
  681. package/lib/generated-client/models/tuner-channel-mapping.js +13 -0
  682. package/lib/generated-client/models/tuner-host-info.d.ts +89 -0
  683. package/lib/generated-client/models/tuner-host-info.js +13 -0
  684. package/lib/generated-client/models/type-options.d.ts +54 -0
  685. package/lib/generated-client/models/type-options.js +13 -0
  686. package/lib/generated-client/models/unrated-item.d.ts +27 -0
  687. package/lib/generated-client/models/unrated-item.js +28 -0
  688. package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
  689. package/lib/generated-client/models/update-library-options-dto.js +13 -0
  690. package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
  691. package/lib/generated-client/models/update-media-path-request-dto.js +13 -0
  692. package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
  693. package/lib/generated-client/models/update-user-easy-password.js +13 -0
  694. package/lib/generated-client/models/update-user-password.d.ts +41 -0
  695. package/lib/generated-client/models/update-user-password.js +13 -0
  696. package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
  697. package/lib/generated-client/models/upload-subtitle-dto.js +13 -0
  698. package/lib/generated-client/models/user-configuration.d.ts +108 -0
  699. package/lib/generated-client/models/user-configuration.js +13 -0
  700. package/lib/generated-client/models/user-dto.d.ts +103 -0
  701. package/lib/generated-client/models/user-dto.js +13 -0
  702. package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
  703. package/lib/generated-client/models/user-item-data-dto.js +13 -0
  704. package/lib/generated-client/models/user-policy.d.ts +254 -0
  705. package/lib/generated-client/models/user-policy.js +13 -0
  706. package/lib/generated-client/models/utc-time-response.d.ts +29 -0
  707. package/lib/generated-client/models/utc-time-response.js +13 -0
  708. package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
  709. package/lib/generated-client/models/validate-path-dto.js +13 -0
  710. package/lib/generated-client/models/version-info.d.ts +71 -0
  711. package/lib/generated-client/models/version-info.js +13 -0
  712. package/lib/generated-client/models/video-type.d.ts +22 -0
  713. package/lib/generated-client/models/video-type.js +23 -0
  714. package/lib/generated-client/models/video3-dformat.d.ts +23 -0
  715. package/lib/generated-client/models/video3-dformat.js +24 -0
  716. package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
  717. package/lib/generated-client/models/virtual-folder-info.js +13 -0
  718. package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
  719. package/lib/generated-client/models/wake-on-lan-info.js +13 -0
  720. package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
  721. package/lib/generated-client/models/xbmc-metadata-options.js +13 -0
  722. package/lib/generated-client/models/xml-attribute.d.ts +29 -0
  723. package/lib/generated-client/models/xml-attribute.js +13 -0
  724. package/lib/index.d.ts +10 -0
  725. package/lib/index.js +12 -0
  726. package/lib/jellyfin.d.ts +33 -0
  727. package/lib/jellyfin.js +29 -0
  728. package/lib/models/api/image-request-parameters.d.ts +29 -0
  729. package/lib/models/api/image-request-parameters.js +6 -0
  730. package/lib/models/api/index.d.ts +7 -0
  731. package/lib/models/api/index.js +7 -0
  732. package/lib/models/api/item-sort-by.d.ts +40 -0
  733. package/lib/models/api/item-sort-by.js +41 -0
  734. package/lib/models/client-info.d.ts +12 -0
  735. package/lib/models/client-info.js +6 -0
  736. package/lib/models/device-info.d.ts +12 -0
  737. package/lib/models/device-info.js +6 -0
  738. package/lib/models/index.d.ts +9 -0
  739. package/lib/models/index.js +9 -0
  740. package/lib/models/recommended-server-info.d.ts +22 -0
  741. package/lib/models/recommended-server-info.js +13 -0
  742. package/lib/models/recommended-server-issue.d.ts +48 -0
  743. package/lib/models/recommended-server-issue.js +55 -0
  744. package/lib/utils/address-candidates.d.ts +16 -0
  745. package/lib/utils/address-candidates.js +81 -0
  746. package/lib/utils/api/activity-log-api.d.ts +8 -0
  747. package/lib/utils/api/activity-log-api.js +9 -0
  748. package/lib/utils/api/api-key-api.d.ts +8 -0
  749. package/lib/utils/api/api-key-api.js +9 -0
  750. package/lib/utils/api/artists-api.d.ts +8 -0
  751. package/lib/utils/api/artists-api.js +9 -0
  752. package/lib/utils/api/audio-api.d.ts +8 -0
  753. package/lib/utils/api/audio-api.js +9 -0
  754. package/lib/utils/api/branding-api.d.ts +8 -0
  755. package/lib/utils/api/branding-api.js +9 -0
  756. package/lib/utils/api/channels-api.d.ts +8 -0
  757. package/lib/utils/api/channels-api.js +9 -0
  758. package/lib/utils/api/client-log-api.d.ts +8 -0
  759. package/lib/utils/api/client-log-api.js +9 -0
  760. package/lib/utils/api/collection-api.d.ts +8 -0
  761. package/lib/utils/api/collection-api.js +9 -0
  762. package/lib/utils/api/configuration-api.d.ts +8 -0
  763. package/lib/utils/api/configuration-api.js +9 -0
  764. package/lib/utils/api/dashboard-api.d.ts +8 -0
  765. package/lib/utils/api/dashboard-api.js +9 -0
  766. package/lib/utils/api/devices-api.d.ts +8 -0
  767. package/lib/utils/api/devices-api.js +9 -0
  768. package/lib/utils/api/display-preferences-api.d.ts +8 -0
  769. package/lib/utils/api/display-preferences-api.js +9 -0
  770. package/lib/utils/api/dlna-api.d.ts +8 -0
  771. package/lib/utils/api/dlna-api.js +9 -0
  772. package/lib/utils/api/dlna-server-api.d.ts +8 -0
  773. package/lib/utils/api/dlna-server-api.js +9 -0
  774. package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
  775. package/lib/utils/api/dynamic-hls-api.js +9 -0
  776. package/lib/utils/api/environment-api.d.ts +8 -0
  777. package/lib/utils/api/environment-api.js +9 -0
  778. package/lib/utils/api/filter-api.d.ts +8 -0
  779. package/lib/utils/api/filter-api.js +9 -0
  780. package/lib/utils/api/genres-api.d.ts +8 -0
  781. package/lib/utils/api/genres-api.js +9 -0
  782. package/lib/utils/api/hls-segment-api.d.ts +8 -0
  783. package/lib/utils/api/hls-segment-api.js +9 -0
  784. package/lib/utils/api/image-api.d.ts +8 -0
  785. package/lib/utils/api/image-api.js +9 -0
  786. package/lib/utils/api/image-by-name-api.d.ts +8 -0
  787. package/lib/utils/api/image-by-name-api.js +9 -0
  788. package/lib/utils/api/instant-mix-api.d.ts +8 -0
  789. package/lib/utils/api/instant-mix-api.js +9 -0
  790. package/lib/utils/api/item-lookup-api.d.ts +8 -0
  791. package/lib/utils/api/item-lookup-api.js +9 -0
  792. package/lib/utils/api/item-refresh-api.d.ts +8 -0
  793. package/lib/utils/api/item-refresh-api.js +9 -0
  794. package/lib/utils/api/item-update-api.d.ts +8 -0
  795. package/lib/utils/api/item-update-api.js +9 -0
  796. package/lib/utils/api/items-api.d.ts +8 -0
  797. package/lib/utils/api/items-api.js +9 -0
  798. package/lib/utils/api/library-api.d.ts +8 -0
  799. package/lib/utils/api/library-api.js +9 -0
  800. package/lib/utils/api/library-structure-api.d.ts +8 -0
  801. package/lib/utils/api/library-structure-api.js +9 -0
  802. package/lib/utils/api/live-tv-api.d.ts +8 -0
  803. package/lib/utils/api/live-tv-api.js +9 -0
  804. package/lib/utils/api/localization-api.d.ts +8 -0
  805. package/lib/utils/api/localization-api.js +9 -0
  806. package/lib/utils/api/media-info-api.d.ts +8 -0
  807. package/lib/utils/api/media-info-api.js +9 -0
  808. package/lib/utils/api/movies-api.d.ts +8 -0
  809. package/lib/utils/api/movies-api.js +9 -0
  810. package/lib/utils/api/music-genres-api.d.ts +8 -0
  811. package/lib/utils/api/music-genres-api.js +9 -0
  812. package/lib/utils/api/notifications-api.d.ts +8 -0
  813. package/lib/utils/api/notifications-api.js +9 -0
  814. package/lib/utils/api/package-api.d.ts +8 -0
  815. package/lib/utils/api/package-api.js +9 -0
  816. package/lib/utils/api/persons-api.d.ts +8 -0
  817. package/lib/utils/api/persons-api.js +9 -0
  818. package/lib/utils/api/playlists-api.d.ts +8 -0
  819. package/lib/utils/api/playlists-api.js +9 -0
  820. package/lib/utils/api/playstate-api.d.ts +8 -0
  821. package/lib/utils/api/playstate-api.js +9 -0
  822. package/lib/utils/api/plugins-api.d.ts +8 -0
  823. package/lib/utils/api/plugins-api.js +9 -0
  824. package/lib/utils/api/quick-connect-api.d.ts +8 -0
  825. package/lib/utils/api/quick-connect-api.js +9 -0
  826. package/lib/utils/api/remote-image-api.d.ts +8 -0
  827. package/lib/utils/api/remote-image-api.js +9 -0
  828. package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
  829. package/lib/utils/api/scheduled-tasks-api.js +9 -0
  830. package/lib/utils/api/search-api.d.ts +8 -0
  831. package/lib/utils/api/search-api.js +9 -0
  832. package/lib/utils/api/session-api.d.ts +8 -0
  833. package/lib/utils/api/session-api.js +9 -0
  834. package/lib/utils/api/startup-api.d.ts +8 -0
  835. package/lib/utils/api/startup-api.js +9 -0
  836. package/lib/utils/api/studios-api.d.ts +8 -0
  837. package/lib/utils/api/studios-api.js +9 -0
  838. package/lib/utils/api/subtitle-api.d.ts +8 -0
  839. package/lib/utils/api/subtitle-api.js +9 -0
  840. package/lib/utils/api/suggestions-api.d.ts +8 -0
  841. package/lib/utils/api/suggestions-api.js +9 -0
  842. package/lib/utils/api/sync-play-api.d.ts +8 -0
  843. package/lib/utils/api/sync-play-api.js +9 -0
  844. package/lib/utils/api/system-api.d.ts +8 -0
  845. package/lib/utils/api/system-api.js +9 -0
  846. package/lib/utils/api/time-sync-api.d.ts +8 -0
  847. package/lib/utils/api/time-sync-api.js +9 -0
  848. package/lib/utils/api/tmdb-api.d.ts +8 -0
  849. package/lib/utils/api/tmdb-api.js +9 -0
  850. package/lib/utils/api/trailers-api.d.ts +8 -0
  851. package/lib/utils/api/trailers-api.js +9 -0
  852. package/lib/utils/api/tv-shows-api.d.ts +8 -0
  853. package/lib/utils/api/tv-shows-api.js +9 -0
  854. package/lib/utils/api/universal-audio-api.d.ts +8 -0
  855. package/lib/utils/api/universal-audio-api.js +9 -0
  856. package/lib/utils/api/user-api.d.ts +8 -0
  857. package/lib/utils/api/user-api.js +9 -0
  858. package/lib/utils/api/user-library-api.d.ts +8 -0
  859. package/lib/utils/api/user-library-api.js +9 -0
  860. package/lib/utils/api/user-views-api.d.ts +8 -0
  861. package/lib/utils/api/user-views-api.js +9 -0
  862. package/lib/utils/api/video-attachments-api.d.ts +8 -0
  863. package/lib/utils/api/video-attachments-api.js +9 -0
  864. package/lib/utils/api/videos-api.d.ts +8 -0
  865. package/lib/utils/api/videos-api.js +9 -0
  866. package/lib/utils/api/years-api.d.ts +8 -0
  867. package/lib/utils/api/years-api.js +9 -0
  868. package/lib/utils/authentication.d.ts +10 -0
  869. package/lib/utils/authentication.js +13 -0
  870. package/lib/utils/browser-profiles.d.ts +25 -0
  871. package/lib/utils/browser-profiles.js +40 -0
  872. package/lib/utils/index.d.ts +9 -0
  873. package/lib/utils/index.js +9 -0
  874. package/lib/utils/normalize-url.d.ts +20 -0
  875. package/lib/utils/normalize-url.js +93 -0
  876. package/lib/utils/url.d.ts +31 -0
  877. package/lib/utils/url.js +45 -0
  878. package/openapi-templates/licenseInfo.mustache +10 -0
  879. package/package.json +45 -0
  880. package/tsconfig.json +27 -0
@@ -0,0 +1,3380 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5
+ * Do not edit the class manually.
6
+ *
7
+ * Jellyfin API
8
+ *
9
+ * This Source Code Form is subject to the terms of the Mozilla Public
10
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
11
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
+ */
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ import globalAxios from 'axios';
23
+ // Some imports not used depending on template conditions
24
+ // @ts-ignore
25
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
26
+ // @ts-ignore
27
+ import { BASE_PATH, BaseAPI } from '../base';
28
+ /**
29
+ * DynamicHlsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const DynamicHlsApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Gets a video stream using HTTP live streaming.
37
+ * @param {string} itemId The item id.
38
+ * @param {string} playlistId The playlist id.
39
+ * @param {number} segmentId The segment id.
40
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
41
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
42
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
43
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
44
+ * @param {string} [params] The streaming parameters.
45
+ * @param {string} [tag] The tag.
46
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
47
+ * @param {string} [playSessionId] The play session id.
48
+ * @param {string} [segmentContainer] The segment container.
49
+ * @param {number} [segmentLength] The segment length.
50
+ * @param {number} [minSegments] The minimum number of segments.
51
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
52
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
53
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
54
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
55
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
56
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
57
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
58
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
59
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
60
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
61
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
62
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
63
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
64
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
65
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
66
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
67
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
68
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
69
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
70
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
71
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
72
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
73
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
74
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
75
+ * @param {number} [maxRefFrames] Optional.
76
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
77
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
78
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
79
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
80
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
81
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
82
+ * @param {string} [liveStreamId] The live stream id.
83
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
84
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
85
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
86
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
87
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
88
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
89
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
90
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ getHlsAudioSegment: (itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) => __awaiter(this, void 0, void 0, function* () {
95
+ // verify required parameter 'itemId' is not null or undefined
96
+ assertParamExists('getHlsAudioSegment', 'itemId', itemId);
97
+ // verify required parameter 'playlistId' is not null or undefined
98
+ assertParamExists('getHlsAudioSegment', 'playlistId', playlistId);
99
+ // verify required parameter 'segmentId' is not null or undefined
100
+ assertParamExists('getHlsAudioSegment', 'segmentId', segmentId);
101
+ // verify required parameter 'container' is not null or undefined
102
+ assertParamExists('getHlsAudioSegment', 'container', container);
103
+ // verify required parameter 'runtimeTicks' is not null or undefined
104
+ assertParamExists('getHlsAudioSegment', 'runtimeTicks', runtimeTicks);
105
+ // verify required parameter 'actualSegmentLengthTicks' is not null or undefined
106
+ assertParamExists('getHlsAudioSegment', 'actualSegmentLengthTicks', actualSegmentLengthTicks);
107
+ const localVarPath = `/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}`
108
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
109
+ .replace(`{${"playlistId"}}`, encodeURIComponent(String(playlistId)))
110
+ .replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)))
111
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication CustomAuthentication required
122
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
123
+ if (runtimeTicks !== undefined) {
124
+ localVarQueryParameter['runtimeTicks'] = runtimeTicks;
125
+ }
126
+ if (actualSegmentLengthTicks !== undefined) {
127
+ localVarQueryParameter['actualSegmentLengthTicks'] = actualSegmentLengthTicks;
128
+ }
129
+ if (_static !== undefined) {
130
+ localVarQueryParameter['static'] = _static;
131
+ }
132
+ if (params !== undefined) {
133
+ localVarQueryParameter['params'] = params;
134
+ }
135
+ if (tag !== undefined) {
136
+ localVarQueryParameter['tag'] = tag;
137
+ }
138
+ if (deviceProfileId !== undefined) {
139
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
140
+ }
141
+ if (playSessionId !== undefined) {
142
+ localVarQueryParameter['playSessionId'] = playSessionId;
143
+ }
144
+ if (segmentContainer !== undefined) {
145
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
146
+ }
147
+ if (segmentLength !== undefined) {
148
+ localVarQueryParameter['segmentLength'] = segmentLength;
149
+ }
150
+ if (minSegments !== undefined) {
151
+ localVarQueryParameter['minSegments'] = minSegments;
152
+ }
153
+ if (mediaSourceId !== undefined) {
154
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
155
+ }
156
+ if (deviceId !== undefined) {
157
+ localVarQueryParameter['deviceId'] = deviceId;
158
+ }
159
+ if (audioCodec !== undefined) {
160
+ localVarQueryParameter['audioCodec'] = audioCodec;
161
+ }
162
+ if (enableAutoStreamCopy !== undefined) {
163
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
164
+ }
165
+ if (allowVideoStreamCopy !== undefined) {
166
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
167
+ }
168
+ if (allowAudioStreamCopy !== undefined) {
169
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
170
+ }
171
+ if (breakOnNonKeyFrames !== undefined) {
172
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
173
+ }
174
+ if (audioSampleRate !== undefined) {
175
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
176
+ }
177
+ if (maxAudioBitDepth !== undefined) {
178
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
179
+ }
180
+ if (maxStreamingBitrate !== undefined) {
181
+ localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate;
182
+ }
183
+ if (audioBitRate !== undefined) {
184
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
185
+ }
186
+ if (audioChannels !== undefined) {
187
+ localVarQueryParameter['audioChannels'] = audioChannels;
188
+ }
189
+ if (maxAudioChannels !== undefined) {
190
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
191
+ }
192
+ if (profile !== undefined) {
193
+ localVarQueryParameter['profile'] = profile;
194
+ }
195
+ if (level !== undefined) {
196
+ localVarQueryParameter['level'] = level;
197
+ }
198
+ if (framerate !== undefined) {
199
+ localVarQueryParameter['framerate'] = framerate;
200
+ }
201
+ if (maxFramerate !== undefined) {
202
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
203
+ }
204
+ if (copyTimestamps !== undefined) {
205
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
206
+ }
207
+ if (startTimeTicks !== undefined) {
208
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
209
+ }
210
+ if (width !== undefined) {
211
+ localVarQueryParameter['width'] = width;
212
+ }
213
+ if (height !== undefined) {
214
+ localVarQueryParameter['height'] = height;
215
+ }
216
+ if (videoBitRate !== undefined) {
217
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
218
+ }
219
+ if (subtitleStreamIndex !== undefined) {
220
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
221
+ }
222
+ if (subtitleMethod !== undefined) {
223
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
224
+ }
225
+ if (maxRefFrames !== undefined) {
226
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
227
+ }
228
+ if (maxVideoBitDepth !== undefined) {
229
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
230
+ }
231
+ if (requireAvc !== undefined) {
232
+ localVarQueryParameter['requireAvc'] = requireAvc;
233
+ }
234
+ if (deInterlace !== undefined) {
235
+ localVarQueryParameter['deInterlace'] = deInterlace;
236
+ }
237
+ if (requireNonAnamorphic !== undefined) {
238
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
239
+ }
240
+ if (transcodingMaxAudioChannels !== undefined) {
241
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
242
+ }
243
+ if (cpuCoreLimit !== undefined) {
244
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
245
+ }
246
+ if (liveStreamId !== undefined) {
247
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
248
+ }
249
+ if (enableMpegtsM2TsMode !== undefined) {
250
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
251
+ }
252
+ if (videoCodec !== undefined) {
253
+ localVarQueryParameter['videoCodec'] = videoCodec;
254
+ }
255
+ if (subtitleCodec !== undefined) {
256
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
257
+ }
258
+ if (transcodeReasons !== undefined) {
259
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
260
+ }
261
+ if (audioStreamIndex !== undefined) {
262
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
263
+ }
264
+ if (videoStreamIndex !== undefined) {
265
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
266
+ }
267
+ if (context !== undefined) {
268
+ localVarQueryParameter['context'] = context;
269
+ }
270
+ if (streamOptions !== undefined) {
271
+ localVarQueryParameter['streamOptions'] = streamOptions;
272
+ }
273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return {
277
+ url: toPathString(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ };
280
+ }),
281
+ /**
282
+ *
283
+ * @summary Gets a video stream using HTTP live streaming.
284
+ * @param {string} itemId The item id.
285
+ * @param {string} playlistId The playlist id.
286
+ * @param {number} segmentId The segment id.
287
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
288
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
289
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
290
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
291
+ * @param {string} [params] The streaming parameters.
292
+ * @param {string} [tag] The tag.
293
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
294
+ * @param {string} [playSessionId] The play session id.
295
+ * @param {string} [segmentContainer] The segment container.
296
+ * @param {number} [segmentLength] The desired segment length.
297
+ * @param {number} [minSegments] The minimum number of segments.
298
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
299
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
300
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
301
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
302
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
303
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
304
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
305
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
306
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
307
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
308
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
309
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
310
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
311
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
312
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
313
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
314
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
315
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
316
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
317
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
318
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
319
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
320
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
321
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
322
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
323
+ * @param {number} [maxRefFrames] Optional.
324
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
325
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
326
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
327
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
328
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
329
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
330
+ * @param {string} [liveStreamId] The live stream id.
331
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
332
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
333
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
334
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
335
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
336
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
337
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
338
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ getHlsVideoSegment: (itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) => __awaiter(this, void 0, void 0, function* () {
343
+ // verify required parameter 'itemId' is not null or undefined
344
+ assertParamExists('getHlsVideoSegment', 'itemId', itemId);
345
+ // verify required parameter 'playlistId' is not null or undefined
346
+ assertParamExists('getHlsVideoSegment', 'playlistId', playlistId);
347
+ // verify required parameter 'segmentId' is not null or undefined
348
+ assertParamExists('getHlsVideoSegment', 'segmentId', segmentId);
349
+ // verify required parameter 'container' is not null or undefined
350
+ assertParamExists('getHlsVideoSegment', 'container', container);
351
+ // verify required parameter 'runtimeTicks' is not null or undefined
352
+ assertParamExists('getHlsVideoSegment', 'runtimeTicks', runtimeTicks);
353
+ // verify required parameter 'actualSegmentLengthTicks' is not null or undefined
354
+ assertParamExists('getHlsVideoSegment', 'actualSegmentLengthTicks', actualSegmentLengthTicks);
355
+ const localVarPath = `/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}`
356
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
357
+ .replace(`{${"playlistId"}}`, encodeURIComponent(String(playlistId)))
358
+ .replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)))
359
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
362
+ let baseOptions;
363
+ if (configuration) {
364
+ baseOptions = configuration.baseOptions;
365
+ }
366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
367
+ const localVarHeaderParameter = {};
368
+ const localVarQueryParameter = {};
369
+ // authentication CustomAuthentication required
370
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
371
+ if (runtimeTicks !== undefined) {
372
+ localVarQueryParameter['runtimeTicks'] = runtimeTicks;
373
+ }
374
+ if (actualSegmentLengthTicks !== undefined) {
375
+ localVarQueryParameter['actualSegmentLengthTicks'] = actualSegmentLengthTicks;
376
+ }
377
+ if (_static !== undefined) {
378
+ localVarQueryParameter['static'] = _static;
379
+ }
380
+ if (params !== undefined) {
381
+ localVarQueryParameter['params'] = params;
382
+ }
383
+ if (tag !== undefined) {
384
+ localVarQueryParameter['tag'] = tag;
385
+ }
386
+ if (deviceProfileId !== undefined) {
387
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
388
+ }
389
+ if (playSessionId !== undefined) {
390
+ localVarQueryParameter['playSessionId'] = playSessionId;
391
+ }
392
+ if (segmentContainer !== undefined) {
393
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
394
+ }
395
+ if (segmentLength !== undefined) {
396
+ localVarQueryParameter['segmentLength'] = segmentLength;
397
+ }
398
+ if (minSegments !== undefined) {
399
+ localVarQueryParameter['minSegments'] = minSegments;
400
+ }
401
+ if (mediaSourceId !== undefined) {
402
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
403
+ }
404
+ if (deviceId !== undefined) {
405
+ localVarQueryParameter['deviceId'] = deviceId;
406
+ }
407
+ if (audioCodec !== undefined) {
408
+ localVarQueryParameter['audioCodec'] = audioCodec;
409
+ }
410
+ if (enableAutoStreamCopy !== undefined) {
411
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
412
+ }
413
+ if (allowVideoStreamCopy !== undefined) {
414
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
415
+ }
416
+ if (allowAudioStreamCopy !== undefined) {
417
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
418
+ }
419
+ if (breakOnNonKeyFrames !== undefined) {
420
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
421
+ }
422
+ if (audioSampleRate !== undefined) {
423
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
424
+ }
425
+ if (maxAudioBitDepth !== undefined) {
426
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
427
+ }
428
+ if (audioBitRate !== undefined) {
429
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
430
+ }
431
+ if (audioChannels !== undefined) {
432
+ localVarQueryParameter['audioChannels'] = audioChannels;
433
+ }
434
+ if (maxAudioChannels !== undefined) {
435
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
436
+ }
437
+ if (profile !== undefined) {
438
+ localVarQueryParameter['profile'] = profile;
439
+ }
440
+ if (level !== undefined) {
441
+ localVarQueryParameter['level'] = level;
442
+ }
443
+ if (framerate !== undefined) {
444
+ localVarQueryParameter['framerate'] = framerate;
445
+ }
446
+ if (maxFramerate !== undefined) {
447
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
448
+ }
449
+ if (copyTimestamps !== undefined) {
450
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
451
+ }
452
+ if (startTimeTicks !== undefined) {
453
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
454
+ }
455
+ if (width !== undefined) {
456
+ localVarQueryParameter['width'] = width;
457
+ }
458
+ if (height !== undefined) {
459
+ localVarQueryParameter['height'] = height;
460
+ }
461
+ if (maxWidth !== undefined) {
462
+ localVarQueryParameter['maxWidth'] = maxWidth;
463
+ }
464
+ if (maxHeight !== undefined) {
465
+ localVarQueryParameter['maxHeight'] = maxHeight;
466
+ }
467
+ if (videoBitRate !== undefined) {
468
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
469
+ }
470
+ if (subtitleStreamIndex !== undefined) {
471
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
472
+ }
473
+ if (subtitleMethod !== undefined) {
474
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
475
+ }
476
+ if (maxRefFrames !== undefined) {
477
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
478
+ }
479
+ if (maxVideoBitDepth !== undefined) {
480
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
481
+ }
482
+ if (requireAvc !== undefined) {
483
+ localVarQueryParameter['requireAvc'] = requireAvc;
484
+ }
485
+ if (deInterlace !== undefined) {
486
+ localVarQueryParameter['deInterlace'] = deInterlace;
487
+ }
488
+ if (requireNonAnamorphic !== undefined) {
489
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
490
+ }
491
+ if (transcodingMaxAudioChannels !== undefined) {
492
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
493
+ }
494
+ if (cpuCoreLimit !== undefined) {
495
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
496
+ }
497
+ if (liveStreamId !== undefined) {
498
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
499
+ }
500
+ if (enableMpegtsM2TsMode !== undefined) {
501
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
502
+ }
503
+ if (videoCodec !== undefined) {
504
+ localVarQueryParameter['videoCodec'] = videoCodec;
505
+ }
506
+ if (subtitleCodec !== undefined) {
507
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
508
+ }
509
+ if (transcodeReasons !== undefined) {
510
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
511
+ }
512
+ if (audioStreamIndex !== undefined) {
513
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
514
+ }
515
+ if (videoStreamIndex !== undefined) {
516
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
517
+ }
518
+ if (context !== undefined) {
519
+ localVarQueryParameter['context'] = context;
520
+ }
521
+ if (streamOptions !== undefined) {
522
+ localVarQueryParameter['streamOptions'] = streamOptions;
523
+ }
524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
526
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
527
+ return {
528
+ url: toPathString(localVarUrlObj),
529
+ options: localVarRequestOptions,
530
+ };
531
+ }),
532
+ /**
533
+ *
534
+ * @summary Gets a hls live stream.
535
+ * @param {string} itemId The item id.
536
+ * @param {string} [container] The audio container.
537
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
538
+ * @param {string} [params] The streaming parameters.
539
+ * @param {string} [tag] The tag.
540
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
541
+ * @param {string} [playSessionId] The play session id.
542
+ * @param {string} [segmentContainer] The segment container.
543
+ * @param {number} [segmentLength] The segment length.
544
+ * @param {number} [minSegments] The minimum number of segments.
545
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
546
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
547
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
548
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
549
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
550
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
551
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
552
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
553
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
554
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
555
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
556
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
557
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
558
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
559
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
560
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
561
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
562
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
563
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
564
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
565
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
566
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
567
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
568
+ * @param {number} [maxRefFrames] Optional.
569
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
570
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
571
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
572
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
573
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
574
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
575
+ * @param {string} [liveStreamId] The live stream id.
576
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
577
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
578
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
579
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
580
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
581
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
582
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
583
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
584
+ * @param {number} [maxWidth] Optional. The max width.
585
+ * @param {number} [maxHeight] Optional. The max height.
586
+ * @param {boolean} [enableSubtitlesInManifest] Optional. Whether to enable subtitles in the manifest.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ getLiveHlsStream: (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options = {}) => __awaiter(this, void 0, void 0, function* () {
591
+ // verify required parameter 'itemId' is not null or undefined
592
+ assertParamExists('getLiveHlsStream', 'itemId', itemId);
593
+ const localVarPath = `/Videos/{itemId}/live.m3u8`
594
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
596
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
597
+ let baseOptions;
598
+ if (configuration) {
599
+ baseOptions = configuration.baseOptions;
600
+ }
601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
602
+ const localVarHeaderParameter = {};
603
+ const localVarQueryParameter = {};
604
+ // authentication CustomAuthentication required
605
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
606
+ if (container !== undefined) {
607
+ localVarQueryParameter['container'] = container;
608
+ }
609
+ if (_static !== undefined) {
610
+ localVarQueryParameter['static'] = _static;
611
+ }
612
+ if (params !== undefined) {
613
+ localVarQueryParameter['params'] = params;
614
+ }
615
+ if (tag !== undefined) {
616
+ localVarQueryParameter['tag'] = tag;
617
+ }
618
+ if (deviceProfileId !== undefined) {
619
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
620
+ }
621
+ if (playSessionId !== undefined) {
622
+ localVarQueryParameter['playSessionId'] = playSessionId;
623
+ }
624
+ if (segmentContainer !== undefined) {
625
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
626
+ }
627
+ if (segmentLength !== undefined) {
628
+ localVarQueryParameter['segmentLength'] = segmentLength;
629
+ }
630
+ if (minSegments !== undefined) {
631
+ localVarQueryParameter['minSegments'] = minSegments;
632
+ }
633
+ if (mediaSourceId !== undefined) {
634
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
635
+ }
636
+ if (deviceId !== undefined) {
637
+ localVarQueryParameter['deviceId'] = deviceId;
638
+ }
639
+ if (audioCodec !== undefined) {
640
+ localVarQueryParameter['audioCodec'] = audioCodec;
641
+ }
642
+ if (enableAutoStreamCopy !== undefined) {
643
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
644
+ }
645
+ if (allowVideoStreamCopy !== undefined) {
646
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
647
+ }
648
+ if (allowAudioStreamCopy !== undefined) {
649
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
650
+ }
651
+ if (breakOnNonKeyFrames !== undefined) {
652
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
653
+ }
654
+ if (audioSampleRate !== undefined) {
655
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
656
+ }
657
+ if (maxAudioBitDepth !== undefined) {
658
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
659
+ }
660
+ if (audioBitRate !== undefined) {
661
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
662
+ }
663
+ if (audioChannels !== undefined) {
664
+ localVarQueryParameter['audioChannels'] = audioChannels;
665
+ }
666
+ if (maxAudioChannels !== undefined) {
667
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
668
+ }
669
+ if (profile !== undefined) {
670
+ localVarQueryParameter['profile'] = profile;
671
+ }
672
+ if (level !== undefined) {
673
+ localVarQueryParameter['level'] = level;
674
+ }
675
+ if (framerate !== undefined) {
676
+ localVarQueryParameter['framerate'] = framerate;
677
+ }
678
+ if (maxFramerate !== undefined) {
679
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
680
+ }
681
+ if (copyTimestamps !== undefined) {
682
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
683
+ }
684
+ if (startTimeTicks !== undefined) {
685
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
686
+ }
687
+ if (width !== undefined) {
688
+ localVarQueryParameter['width'] = width;
689
+ }
690
+ if (height !== undefined) {
691
+ localVarQueryParameter['height'] = height;
692
+ }
693
+ if (videoBitRate !== undefined) {
694
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
695
+ }
696
+ if (subtitleStreamIndex !== undefined) {
697
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
698
+ }
699
+ if (subtitleMethod !== undefined) {
700
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
701
+ }
702
+ if (maxRefFrames !== undefined) {
703
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
704
+ }
705
+ if (maxVideoBitDepth !== undefined) {
706
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
707
+ }
708
+ if (requireAvc !== undefined) {
709
+ localVarQueryParameter['requireAvc'] = requireAvc;
710
+ }
711
+ if (deInterlace !== undefined) {
712
+ localVarQueryParameter['deInterlace'] = deInterlace;
713
+ }
714
+ if (requireNonAnamorphic !== undefined) {
715
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
716
+ }
717
+ if (transcodingMaxAudioChannels !== undefined) {
718
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
719
+ }
720
+ if (cpuCoreLimit !== undefined) {
721
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
722
+ }
723
+ if (liveStreamId !== undefined) {
724
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
725
+ }
726
+ if (enableMpegtsM2TsMode !== undefined) {
727
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
728
+ }
729
+ if (videoCodec !== undefined) {
730
+ localVarQueryParameter['videoCodec'] = videoCodec;
731
+ }
732
+ if (subtitleCodec !== undefined) {
733
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
734
+ }
735
+ if (transcodeReasons !== undefined) {
736
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
737
+ }
738
+ if (audioStreamIndex !== undefined) {
739
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
740
+ }
741
+ if (videoStreamIndex !== undefined) {
742
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
743
+ }
744
+ if (context !== undefined) {
745
+ localVarQueryParameter['context'] = context;
746
+ }
747
+ if (streamOptions !== undefined) {
748
+ localVarQueryParameter['streamOptions'] = streamOptions;
749
+ }
750
+ if (maxWidth !== undefined) {
751
+ localVarQueryParameter['maxWidth'] = maxWidth;
752
+ }
753
+ if (maxHeight !== undefined) {
754
+ localVarQueryParameter['maxHeight'] = maxHeight;
755
+ }
756
+ if (enableSubtitlesInManifest !== undefined) {
757
+ localVarQueryParameter['enableSubtitlesInManifest'] = enableSubtitlesInManifest;
758
+ }
759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
761
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
762
+ return {
763
+ url: toPathString(localVarUrlObj),
764
+ options: localVarRequestOptions,
765
+ };
766
+ }),
767
+ /**
768
+ *
769
+ * @summary Gets an audio hls playlist stream.
770
+ * @param {string} itemId The item id.
771
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
772
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
773
+ * @param {string} [params] The streaming parameters.
774
+ * @param {string} [tag] The tag.
775
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
776
+ * @param {string} [playSessionId] The play session id.
777
+ * @param {string} [segmentContainer] The segment container.
778
+ * @param {number} [segmentLength] The segment length.
779
+ * @param {number} [minSegments] The minimum number of segments.
780
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
781
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
782
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
783
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
784
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
785
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
786
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
787
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
788
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
789
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
790
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
791
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
792
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
793
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
794
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
795
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
796
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
797
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
798
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
799
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
800
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
801
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
802
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
803
+ * @param {number} [maxRefFrames] Optional.
804
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
805
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
806
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
807
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
808
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
809
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
810
+ * @param {string} [liveStreamId] The live stream id.
811
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
812
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
813
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
814
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
815
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
816
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
817
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
818
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
819
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ getMasterHlsAudioPlaylist: (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options = {}) => __awaiter(this, void 0, void 0, function* () {
824
+ // verify required parameter 'itemId' is not null or undefined
825
+ assertParamExists('getMasterHlsAudioPlaylist', 'itemId', itemId);
826
+ // verify required parameter 'mediaSourceId' is not null or undefined
827
+ assertParamExists('getMasterHlsAudioPlaylist', 'mediaSourceId', mediaSourceId);
828
+ const localVarPath = `/Audio/{itemId}/master.m3u8`
829
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
830
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
831
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
832
+ let baseOptions;
833
+ if (configuration) {
834
+ baseOptions = configuration.baseOptions;
835
+ }
836
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
837
+ const localVarHeaderParameter = {};
838
+ const localVarQueryParameter = {};
839
+ // authentication CustomAuthentication required
840
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
841
+ if (_static !== undefined) {
842
+ localVarQueryParameter['static'] = _static;
843
+ }
844
+ if (params !== undefined) {
845
+ localVarQueryParameter['params'] = params;
846
+ }
847
+ if (tag !== undefined) {
848
+ localVarQueryParameter['tag'] = tag;
849
+ }
850
+ if (deviceProfileId !== undefined) {
851
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
852
+ }
853
+ if (playSessionId !== undefined) {
854
+ localVarQueryParameter['playSessionId'] = playSessionId;
855
+ }
856
+ if (segmentContainer !== undefined) {
857
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
858
+ }
859
+ if (segmentLength !== undefined) {
860
+ localVarQueryParameter['segmentLength'] = segmentLength;
861
+ }
862
+ if (minSegments !== undefined) {
863
+ localVarQueryParameter['minSegments'] = minSegments;
864
+ }
865
+ if (mediaSourceId !== undefined) {
866
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
867
+ }
868
+ if (deviceId !== undefined) {
869
+ localVarQueryParameter['deviceId'] = deviceId;
870
+ }
871
+ if (audioCodec !== undefined) {
872
+ localVarQueryParameter['audioCodec'] = audioCodec;
873
+ }
874
+ if (enableAutoStreamCopy !== undefined) {
875
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
876
+ }
877
+ if (allowVideoStreamCopy !== undefined) {
878
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
879
+ }
880
+ if (allowAudioStreamCopy !== undefined) {
881
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
882
+ }
883
+ if (breakOnNonKeyFrames !== undefined) {
884
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
885
+ }
886
+ if (audioSampleRate !== undefined) {
887
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
888
+ }
889
+ if (maxAudioBitDepth !== undefined) {
890
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
891
+ }
892
+ if (maxStreamingBitrate !== undefined) {
893
+ localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate;
894
+ }
895
+ if (audioBitRate !== undefined) {
896
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
897
+ }
898
+ if (audioChannels !== undefined) {
899
+ localVarQueryParameter['audioChannels'] = audioChannels;
900
+ }
901
+ if (maxAudioChannels !== undefined) {
902
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
903
+ }
904
+ if (profile !== undefined) {
905
+ localVarQueryParameter['profile'] = profile;
906
+ }
907
+ if (level !== undefined) {
908
+ localVarQueryParameter['level'] = level;
909
+ }
910
+ if (framerate !== undefined) {
911
+ localVarQueryParameter['framerate'] = framerate;
912
+ }
913
+ if (maxFramerate !== undefined) {
914
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
915
+ }
916
+ if (copyTimestamps !== undefined) {
917
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
918
+ }
919
+ if (startTimeTicks !== undefined) {
920
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
921
+ }
922
+ if (width !== undefined) {
923
+ localVarQueryParameter['width'] = width;
924
+ }
925
+ if (height !== undefined) {
926
+ localVarQueryParameter['height'] = height;
927
+ }
928
+ if (videoBitRate !== undefined) {
929
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
930
+ }
931
+ if (subtitleStreamIndex !== undefined) {
932
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
933
+ }
934
+ if (subtitleMethod !== undefined) {
935
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
936
+ }
937
+ if (maxRefFrames !== undefined) {
938
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
939
+ }
940
+ if (maxVideoBitDepth !== undefined) {
941
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
942
+ }
943
+ if (requireAvc !== undefined) {
944
+ localVarQueryParameter['requireAvc'] = requireAvc;
945
+ }
946
+ if (deInterlace !== undefined) {
947
+ localVarQueryParameter['deInterlace'] = deInterlace;
948
+ }
949
+ if (requireNonAnamorphic !== undefined) {
950
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
951
+ }
952
+ if (transcodingMaxAudioChannels !== undefined) {
953
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
954
+ }
955
+ if (cpuCoreLimit !== undefined) {
956
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
957
+ }
958
+ if (liveStreamId !== undefined) {
959
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
960
+ }
961
+ if (enableMpegtsM2TsMode !== undefined) {
962
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
963
+ }
964
+ if (videoCodec !== undefined) {
965
+ localVarQueryParameter['videoCodec'] = videoCodec;
966
+ }
967
+ if (subtitleCodec !== undefined) {
968
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
969
+ }
970
+ if (transcodeReasons !== undefined) {
971
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
972
+ }
973
+ if (audioStreamIndex !== undefined) {
974
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
975
+ }
976
+ if (videoStreamIndex !== undefined) {
977
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
978
+ }
979
+ if (context !== undefined) {
980
+ localVarQueryParameter['context'] = context;
981
+ }
982
+ if (streamOptions !== undefined) {
983
+ localVarQueryParameter['streamOptions'] = streamOptions;
984
+ }
985
+ if (enableAdaptiveBitrateStreaming !== undefined) {
986
+ localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming;
987
+ }
988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
991
+ return {
992
+ url: toPathString(localVarUrlObj),
993
+ options: localVarRequestOptions,
994
+ };
995
+ }),
996
+ /**
997
+ *
998
+ * @summary Gets a video hls playlist stream.
999
+ * @param {string} itemId The item id.
1000
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
1001
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1002
+ * @param {string} [params] The streaming parameters.
1003
+ * @param {string} [tag] The tag.
1004
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1005
+ * @param {string} [playSessionId] The play session id.
1006
+ * @param {string} [segmentContainer] The segment container.
1007
+ * @param {number} [segmentLength] The segment length.
1008
+ * @param {number} [minSegments] The minimum number of segments.
1009
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1010
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1011
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1012
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1013
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1014
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1015
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1016
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1017
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1018
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1019
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1020
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1021
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1022
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1023
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1024
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1025
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1026
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1027
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1028
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1029
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1030
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1031
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1032
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1033
+ * @param {number} [maxRefFrames] Optional.
1034
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1035
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1036
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1037
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1038
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1039
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1040
+ * @param {string} [liveStreamId] The live stream id.
1041
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1042
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1043
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1044
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1045
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1046
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1047
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1048
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1049
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ getMasterHlsVideoPlaylist: (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options = {}) => __awaiter(this, void 0, void 0, function* () {
1054
+ // verify required parameter 'itemId' is not null or undefined
1055
+ assertParamExists('getMasterHlsVideoPlaylist', 'itemId', itemId);
1056
+ // verify required parameter 'mediaSourceId' is not null or undefined
1057
+ assertParamExists('getMasterHlsVideoPlaylist', 'mediaSourceId', mediaSourceId);
1058
+ const localVarPath = `/Videos/{itemId}/master.m3u8`
1059
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1060
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1061
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1062
+ let baseOptions;
1063
+ if (configuration) {
1064
+ baseOptions = configuration.baseOptions;
1065
+ }
1066
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1067
+ const localVarHeaderParameter = {};
1068
+ const localVarQueryParameter = {};
1069
+ // authentication CustomAuthentication required
1070
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1071
+ if (_static !== undefined) {
1072
+ localVarQueryParameter['static'] = _static;
1073
+ }
1074
+ if (params !== undefined) {
1075
+ localVarQueryParameter['params'] = params;
1076
+ }
1077
+ if (tag !== undefined) {
1078
+ localVarQueryParameter['tag'] = tag;
1079
+ }
1080
+ if (deviceProfileId !== undefined) {
1081
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
1082
+ }
1083
+ if (playSessionId !== undefined) {
1084
+ localVarQueryParameter['playSessionId'] = playSessionId;
1085
+ }
1086
+ if (segmentContainer !== undefined) {
1087
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
1088
+ }
1089
+ if (segmentLength !== undefined) {
1090
+ localVarQueryParameter['segmentLength'] = segmentLength;
1091
+ }
1092
+ if (minSegments !== undefined) {
1093
+ localVarQueryParameter['minSegments'] = minSegments;
1094
+ }
1095
+ if (mediaSourceId !== undefined) {
1096
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
1097
+ }
1098
+ if (deviceId !== undefined) {
1099
+ localVarQueryParameter['deviceId'] = deviceId;
1100
+ }
1101
+ if (audioCodec !== undefined) {
1102
+ localVarQueryParameter['audioCodec'] = audioCodec;
1103
+ }
1104
+ if (enableAutoStreamCopy !== undefined) {
1105
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
1106
+ }
1107
+ if (allowVideoStreamCopy !== undefined) {
1108
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
1109
+ }
1110
+ if (allowAudioStreamCopy !== undefined) {
1111
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
1112
+ }
1113
+ if (breakOnNonKeyFrames !== undefined) {
1114
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
1115
+ }
1116
+ if (audioSampleRate !== undefined) {
1117
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
1118
+ }
1119
+ if (maxAudioBitDepth !== undefined) {
1120
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
1121
+ }
1122
+ if (audioBitRate !== undefined) {
1123
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
1124
+ }
1125
+ if (audioChannels !== undefined) {
1126
+ localVarQueryParameter['audioChannels'] = audioChannels;
1127
+ }
1128
+ if (maxAudioChannels !== undefined) {
1129
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
1130
+ }
1131
+ if (profile !== undefined) {
1132
+ localVarQueryParameter['profile'] = profile;
1133
+ }
1134
+ if (level !== undefined) {
1135
+ localVarQueryParameter['level'] = level;
1136
+ }
1137
+ if (framerate !== undefined) {
1138
+ localVarQueryParameter['framerate'] = framerate;
1139
+ }
1140
+ if (maxFramerate !== undefined) {
1141
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
1142
+ }
1143
+ if (copyTimestamps !== undefined) {
1144
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
1145
+ }
1146
+ if (startTimeTicks !== undefined) {
1147
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
1148
+ }
1149
+ if (width !== undefined) {
1150
+ localVarQueryParameter['width'] = width;
1151
+ }
1152
+ if (height !== undefined) {
1153
+ localVarQueryParameter['height'] = height;
1154
+ }
1155
+ if (maxWidth !== undefined) {
1156
+ localVarQueryParameter['maxWidth'] = maxWidth;
1157
+ }
1158
+ if (maxHeight !== undefined) {
1159
+ localVarQueryParameter['maxHeight'] = maxHeight;
1160
+ }
1161
+ if (videoBitRate !== undefined) {
1162
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
1163
+ }
1164
+ if (subtitleStreamIndex !== undefined) {
1165
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
1166
+ }
1167
+ if (subtitleMethod !== undefined) {
1168
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
1169
+ }
1170
+ if (maxRefFrames !== undefined) {
1171
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
1172
+ }
1173
+ if (maxVideoBitDepth !== undefined) {
1174
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
1175
+ }
1176
+ if (requireAvc !== undefined) {
1177
+ localVarQueryParameter['requireAvc'] = requireAvc;
1178
+ }
1179
+ if (deInterlace !== undefined) {
1180
+ localVarQueryParameter['deInterlace'] = deInterlace;
1181
+ }
1182
+ if (requireNonAnamorphic !== undefined) {
1183
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
1184
+ }
1185
+ if (transcodingMaxAudioChannels !== undefined) {
1186
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
1187
+ }
1188
+ if (cpuCoreLimit !== undefined) {
1189
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
1190
+ }
1191
+ if (liveStreamId !== undefined) {
1192
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
1193
+ }
1194
+ if (enableMpegtsM2TsMode !== undefined) {
1195
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
1196
+ }
1197
+ if (videoCodec !== undefined) {
1198
+ localVarQueryParameter['videoCodec'] = videoCodec;
1199
+ }
1200
+ if (subtitleCodec !== undefined) {
1201
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
1202
+ }
1203
+ if (transcodeReasons !== undefined) {
1204
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
1205
+ }
1206
+ if (audioStreamIndex !== undefined) {
1207
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
1208
+ }
1209
+ if (videoStreamIndex !== undefined) {
1210
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
1211
+ }
1212
+ if (context !== undefined) {
1213
+ localVarQueryParameter['context'] = context;
1214
+ }
1215
+ if (streamOptions !== undefined) {
1216
+ localVarQueryParameter['streamOptions'] = streamOptions;
1217
+ }
1218
+ if (enableAdaptiveBitrateStreaming !== undefined) {
1219
+ localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming;
1220
+ }
1221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1223
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1224
+ return {
1225
+ url: toPathString(localVarUrlObj),
1226
+ options: localVarRequestOptions,
1227
+ };
1228
+ }),
1229
+ /**
1230
+ *
1231
+ * @summary Gets an audio stream using HTTP live streaming.
1232
+ * @param {string} itemId The item id.
1233
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1234
+ * @param {string} [params] The streaming parameters.
1235
+ * @param {string} [tag] The tag.
1236
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1237
+ * @param {string} [playSessionId] The play session id.
1238
+ * @param {string} [segmentContainer] The segment container.
1239
+ * @param {number} [segmentLength] The segment length.
1240
+ * @param {number} [minSegments] The minimum number of segments.
1241
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1242
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1243
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1244
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1245
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1246
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1247
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1248
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1249
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1250
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
1251
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1252
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1253
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1254
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1255
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1256
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1257
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1258
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1259
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1260
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1261
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1262
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1263
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1264
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1265
+ * @param {number} [maxRefFrames] Optional.
1266
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1267
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1268
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1269
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1270
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1271
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1272
+ * @param {string} [liveStreamId] The live stream id.
1273
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1274
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
1275
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1276
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1277
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1278
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1279
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1280
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ */
1284
+ getVariantHlsAudioPlaylist: (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) => __awaiter(this, void 0, void 0, function* () {
1285
+ // verify required parameter 'itemId' is not null or undefined
1286
+ assertParamExists('getVariantHlsAudioPlaylist', 'itemId', itemId);
1287
+ const localVarPath = `/Audio/{itemId}/main.m3u8`
1288
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1289
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1290
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1291
+ let baseOptions;
1292
+ if (configuration) {
1293
+ baseOptions = configuration.baseOptions;
1294
+ }
1295
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1296
+ const localVarHeaderParameter = {};
1297
+ const localVarQueryParameter = {};
1298
+ // authentication CustomAuthentication required
1299
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1300
+ if (_static !== undefined) {
1301
+ localVarQueryParameter['static'] = _static;
1302
+ }
1303
+ if (params !== undefined) {
1304
+ localVarQueryParameter['params'] = params;
1305
+ }
1306
+ if (tag !== undefined) {
1307
+ localVarQueryParameter['tag'] = tag;
1308
+ }
1309
+ if (deviceProfileId !== undefined) {
1310
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
1311
+ }
1312
+ if (playSessionId !== undefined) {
1313
+ localVarQueryParameter['playSessionId'] = playSessionId;
1314
+ }
1315
+ if (segmentContainer !== undefined) {
1316
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
1317
+ }
1318
+ if (segmentLength !== undefined) {
1319
+ localVarQueryParameter['segmentLength'] = segmentLength;
1320
+ }
1321
+ if (minSegments !== undefined) {
1322
+ localVarQueryParameter['minSegments'] = minSegments;
1323
+ }
1324
+ if (mediaSourceId !== undefined) {
1325
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
1326
+ }
1327
+ if (deviceId !== undefined) {
1328
+ localVarQueryParameter['deviceId'] = deviceId;
1329
+ }
1330
+ if (audioCodec !== undefined) {
1331
+ localVarQueryParameter['audioCodec'] = audioCodec;
1332
+ }
1333
+ if (enableAutoStreamCopy !== undefined) {
1334
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
1335
+ }
1336
+ if (allowVideoStreamCopy !== undefined) {
1337
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
1338
+ }
1339
+ if (allowAudioStreamCopy !== undefined) {
1340
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
1341
+ }
1342
+ if (breakOnNonKeyFrames !== undefined) {
1343
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
1344
+ }
1345
+ if (audioSampleRate !== undefined) {
1346
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
1347
+ }
1348
+ if (maxAudioBitDepth !== undefined) {
1349
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
1350
+ }
1351
+ if (maxStreamingBitrate !== undefined) {
1352
+ localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate;
1353
+ }
1354
+ if (audioBitRate !== undefined) {
1355
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
1356
+ }
1357
+ if (audioChannels !== undefined) {
1358
+ localVarQueryParameter['audioChannels'] = audioChannels;
1359
+ }
1360
+ if (maxAudioChannels !== undefined) {
1361
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
1362
+ }
1363
+ if (profile !== undefined) {
1364
+ localVarQueryParameter['profile'] = profile;
1365
+ }
1366
+ if (level !== undefined) {
1367
+ localVarQueryParameter['level'] = level;
1368
+ }
1369
+ if (framerate !== undefined) {
1370
+ localVarQueryParameter['framerate'] = framerate;
1371
+ }
1372
+ if (maxFramerate !== undefined) {
1373
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
1374
+ }
1375
+ if (copyTimestamps !== undefined) {
1376
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
1377
+ }
1378
+ if (startTimeTicks !== undefined) {
1379
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
1380
+ }
1381
+ if (width !== undefined) {
1382
+ localVarQueryParameter['width'] = width;
1383
+ }
1384
+ if (height !== undefined) {
1385
+ localVarQueryParameter['height'] = height;
1386
+ }
1387
+ if (videoBitRate !== undefined) {
1388
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
1389
+ }
1390
+ if (subtitleStreamIndex !== undefined) {
1391
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
1392
+ }
1393
+ if (subtitleMethod !== undefined) {
1394
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
1395
+ }
1396
+ if (maxRefFrames !== undefined) {
1397
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
1398
+ }
1399
+ if (maxVideoBitDepth !== undefined) {
1400
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
1401
+ }
1402
+ if (requireAvc !== undefined) {
1403
+ localVarQueryParameter['requireAvc'] = requireAvc;
1404
+ }
1405
+ if (deInterlace !== undefined) {
1406
+ localVarQueryParameter['deInterlace'] = deInterlace;
1407
+ }
1408
+ if (requireNonAnamorphic !== undefined) {
1409
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
1410
+ }
1411
+ if (transcodingMaxAudioChannels !== undefined) {
1412
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
1413
+ }
1414
+ if (cpuCoreLimit !== undefined) {
1415
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
1416
+ }
1417
+ if (liveStreamId !== undefined) {
1418
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
1419
+ }
1420
+ if (enableMpegtsM2TsMode !== undefined) {
1421
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
1422
+ }
1423
+ if (videoCodec !== undefined) {
1424
+ localVarQueryParameter['videoCodec'] = videoCodec;
1425
+ }
1426
+ if (subtitleCodec !== undefined) {
1427
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
1428
+ }
1429
+ if (transcodeReasons !== undefined) {
1430
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
1431
+ }
1432
+ if (audioStreamIndex !== undefined) {
1433
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
1434
+ }
1435
+ if (videoStreamIndex !== undefined) {
1436
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
1437
+ }
1438
+ if (context !== undefined) {
1439
+ localVarQueryParameter['context'] = context;
1440
+ }
1441
+ if (streamOptions !== undefined) {
1442
+ localVarQueryParameter['streamOptions'] = streamOptions;
1443
+ }
1444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1446
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1447
+ return {
1448
+ url: toPathString(localVarUrlObj),
1449
+ options: localVarRequestOptions,
1450
+ };
1451
+ }),
1452
+ /**
1453
+ *
1454
+ * @summary Gets a video stream using HTTP live streaming.
1455
+ * @param {string} itemId The item id.
1456
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1457
+ * @param {string} [params] The streaming parameters.
1458
+ * @param {string} [tag] The tag.
1459
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1460
+ * @param {string} [playSessionId] The play session id.
1461
+ * @param {string} [segmentContainer] The segment container.
1462
+ * @param {number} [segmentLength] The segment length.
1463
+ * @param {number} [minSegments] The minimum number of segments.
1464
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1465
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1466
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1467
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1468
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1469
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1470
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1471
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1472
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1473
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1474
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1475
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1476
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1477
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1478
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1479
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1480
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1481
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1482
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1483
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1484
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1485
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1486
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1487
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1488
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1489
+ * @param {number} [maxRefFrames] Optional.
1490
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1491
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1492
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1493
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1494
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1495
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1496
+ * @param {string} [liveStreamId] The live stream id.
1497
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1498
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1499
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1500
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1501
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1502
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1503
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1504
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ */
1508
+ getVariantHlsVideoPlaylist: (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) => __awaiter(this, void 0, void 0, function* () {
1509
+ // verify required parameter 'itemId' is not null or undefined
1510
+ assertParamExists('getVariantHlsVideoPlaylist', 'itemId', itemId);
1511
+ const localVarPath = `/Videos/{itemId}/main.m3u8`
1512
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1515
+ let baseOptions;
1516
+ if (configuration) {
1517
+ baseOptions = configuration.baseOptions;
1518
+ }
1519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1520
+ const localVarHeaderParameter = {};
1521
+ const localVarQueryParameter = {};
1522
+ // authentication CustomAuthentication required
1523
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1524
+ if (_static !== undefined) {
1525
+ localVarQueryParameter['static'] = _static;
1526
+ }
1527
+ if (params !== undefined) {
1528
+ localVarQueryParameter['params'] = params;
1529
+ }
1530
+ if (tag !== undefined) {
1531
+ localVarQueryParameter['tag'] = tag;
1532
+ }
1533
+ if (deviceProfileId !== undefined) {
1534
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
1535
+ }
1536
+ if (playSessionId !== undefined) {
1537
+ localVarQueryParameter['playSessionId'] = playSessionId;
1538
+ }
1539
+ if (segmentContainer !== undefined) {
1540
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
1541
+ }
1542
+ if (segmentLength !== undefined) {
1543
+ localVarQueryParameter['segmentLength'] = segmentLength;
1544
+ }
1545
+ if (minSegments !== undefined) {
1546
+ localVarQueryParameter['minSegments'] = minSegments;
1547
+ }
1548
+ if (mediaSourceId !== undefined) {
1549
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
1550
+ }
1551
+ if (deviceId !== undefined) {
1552
+ localVarQueryParameter['deviceId'] = deviceId;
1553
+ }
1554
+ if (audioCodec !== undefined) {
1555
+ localVarQueryParameter['audioCodec'] = audioCodec;
1556
+ }
1557
+ if (enableAutoStreamCopy !== undefined) {
1558
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
1559
+ }
1560
+ if (allowVideoStreamCopy !== undefined) {
1561
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
1562
+ }
1563
+ if (allowAudioStreamCopy !== undefined) {
1564
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
1565
+ }
1566
+ if (breakOnNonKeyFrames !== undefined) {
1567
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
1568
+ }
1569
+ if (audioSampleRate !== undefined) {
1570
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
1571
+ }
1572
+ if (maxAudioBitDepth !== undefined) {
1573
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
1574
+ }
1575
+ if (audioBitRate !== undefined) {
1576
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
1577
+ }
1578
+ if (audioChannels !== undefined) {
1579
+ localVarQueryParameter['audioChannels'] = audioChannels;
1580
+ }
1581
+ if (maxAudioChannels !== undefined) {
1582
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
1583
+ }
1584
+ if (profile !== undefined) {
1585
+ localVarQueryParameter['profile'] = profile;
1586
+ }
1587
+ if (level !== undefined) {
1588
+ localVarQueryParameter['level'] = level;
1589
+ }
1590
+ if (framerate !== undefined) {
1591
+ localVarQueryParameter['framerate'] = framerate;
1592
+ }
1593
+ if (maxFramerate !== undefined) {
1594
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
1595
+ }
1596
+ if (copyTimestamps !== undefined) {
1597
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
1598
+ }
1599
+ if (startTimeTicks !== undefined) {
1600
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
1601
+ }
1602
+ if (width !== undefined) {
1603
+ localVarQueryParameter['width'] = width;
1604
+ }
1605
+ if (height !== undefined) {
1606
+ localVarQueryParameter['height'] = height;
1607
+ }
1608
+ if (maxWidth !== undefined) {
1609
+ localVarQueryParameter['maxWidth'] = maxWidth;
1610
+ }
1611
+ if (maxHeight !== undefined) {
1612
+ localVarQueryParameter['maxHeight'] = maxHeight;
1613
+ }
1614
+ if (videoBitRate !== undefined) {
1615
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
1616
+ }
1617
+ if (subtitleStreamIndex !== undefined) {
1618
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
1619
+ }
1620
+ if (subtitleMethod !== undefined) {
1621
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
1622
+ }
1623
+ if (maxRefFrames !== undefined) {
1624
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
1625
+ }
1626
+ if (maxVideoBitDepth !== undefined) {
1627
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
1628
+ }
1629
+ if (requireAvc !== undefined) {
1630
+ localVarQueryParameter['requireAvc'] = requireAvc;
1631
+ }
1632
+ if (deInterlace !== undefined) {
1633
+ localVarQueryParameter['deInterlace'] = deInterlace;
1634
+ }
1635
+ if (requireNonAnamorphic !== undefined) {
1636
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
1637
+ }
1638
+ if (transcodingMaxAudioChannels !== undefined) {
1639
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
1640
+ }
1641
+ if (cpuCoreLimit !== undefined) {
1642
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
1643
+ }
1644
+ if (liveStreamId !== undefined) {
1645
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
1646
+ }
1647
+ if (enableMpegtsM2TsMode !== undefined) {
1648
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
1649
+ }
1650
+ if (videoCodec !== undefined) {
1651
+ localVarQueryParameter['videoCodec'] = videoCodec;
1652
+ }
1653
+ if (subtitleCodec !== undefined) {
1654
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
1655
+ }
1656
+ if (transcodeReasons !== undefined) {
1657
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
1658
+ }
1659
+ if (audioStreamIndex !== undefined) {
1660
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
1661
+ }
1662
+ if (videoStreamIndex !== undefined) {
1663
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
1664
+ }
1665
+ if (context !== undefined) {
1666
+ localVarQueryParameter['context'] = context;
1667
+ }
1668
+ if (streamOptions !== undefined) {
1669
+ localVarQueryParameter['streamOptions'] = streamOptions;
1670
+ }
1671
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1672
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1673
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1674
+ return {
1675
+ url: toPathString(localVarUrlObj),
1676
+ options: localVarRequestOptions,
1677
+ };
1678
+ }),
1679
+ /**
1680
+ *
1681
+ * @summary Gets an audio hls playlist stream.
1682
+ * @param {string} itemId The item id.
1683
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
1684
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1685
+ * @param {string} [params] The streaming parameters.
1686
+ * @param {string} [tag] The tag.
1687
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1688
+ * @param {string} [playSessionId] The play session id.
1689
+ * @param {string} [segmentContainer] The segment container.
1690
+ * @param {number} [segmentLength] The segment length.
1691
+ * @param {number} [minSegments] The minimum number of segments.
1692
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1693
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1694
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1695
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1696
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1697
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1698
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1699
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1700
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
1701
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1702
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1703
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1704
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1705
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1706
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1707
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1708
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1709
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1710
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1711
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1712
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1713
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1714
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1715
+ * @param {number} [maxRefFrames] Optional.
1716
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1717
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1718
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1719
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1720
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1721
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1722
+ * @param {string} [liveStreamId] The live stream id.
1723
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1724
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1725
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1726
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1727
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1728
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1729
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1730
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1731
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
1732
+ * @param {*} [options] Override http request option.
1733
+ * @throws {RequiredError}
1734
+ */
1735
+ headMasterHlsAudioPlaylist: (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options = {}) => __awaiter(this, void 0, void 0, function* () {
1736
+ // verify required parameter 'itemId' is not null or undefined
1737
+ assertParamExists('headMasterHlsAudioPlaylist', 'itemId', itemId);
1738
+ // verify required parameter 'mediaSourceId' is not null or undefined
1739
+ assertParamExists('headMasterHlsAudioPlaylist', 'mediaSourceId', mediaSourceId);
1740
+ const localVarPath = `/Audio/{itemId}/master.m3u8`
1741
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1742
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1743
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1744
+ let baseOptions;
1745
+ if (configuration) {
1746
+ baseOptions = configuration.baseOptions;
1747
+ }
1748
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1749
+ const localVarHeaderParameter = {};
1750
+ const localVarQueryParameter = {};
1751
+ // authentication CustomAuthentication required
1752
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1753
+ if (_static !== undefined) {
1754
+ localVarQueryParameter['static'] = _static;
1755
+ }
1756
+ if (params !== undefined) {
1757
+ localVarQueryParameter['params'] = params;
1758
+ }
1759
+ if (tag !== undefined) {
1760
+ localVarQueryParameter['tag'] = tag;
1761
+ }
1762
+ if (deviceProfileId !== undefined) {
1763
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
1764
+ }
1765
+ if (playSessionId !== undefined) {
1766
+ localVarQueryParameter['playSessionId'] = playSessionId;
1767
+ }
1768
+ if (segmentContainer !== undefined) {
1769
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
1770
+ }
1771
+ if (segmentLength !== undefined) {
1772
+ localVarQueryParameter['segmentLength'] = segmentLength;
1773
+ }
1774
+ if (minSegments !== undefined) {
1775
+ localVarQueryParameter['minSegments'] = minSegments;
1776
+ }
1777
+ if (mediaSourceId !== undefined) {
1778
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
1779
+ }
1780
+ if (deviceId !== undefined) {
1781
+ localVarQueryParameter['deviceId'] = deviceId;
1782
+ }
1783
+ if (audioCodec !== undefined) {
1784
+ localVarQueryParameter['audioCodec'] = audioCodec;
1785
+ }
1786
+ if (enableAutoStreamCopy !== undefined) {
1787
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
1788
+ }
1789
+ if (allowVideoStreamCopy !== undefined) {
1790
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
1791
+ }
1792
+ if (allowAudioStreamCopy !== undefined) {
1793
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
1794
+ }
1795
+ if (breakOnNonKeyFrames !== undefined) {
1796
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
1797
+ }
1798
+ if (audioSampleRate !== undefined) {
1799
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
1800
+ }
1801
+ if (maxAudioBitDepth !== undefined) {
1802
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
1803
+ }
1804
+ if (maxStreamingBitrate !== undefined) {
1805
+ localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate;
1806
+ }
1807
+ if (audioBitRate !== undefined) {
1808
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
1809
+ }
1810
+ if (audioChannels !== undefined) {
1811
+ localVarQueryParameter['audioChannels'] = audioChannels;
1812
+ }
1813
+ if (maxAudioChannels !== undefined) {
1814
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
1815
+ }
1816
+ if (profile !== undefined) {
1817
+ localVarQueryParameter['profile'] = profile;
1818
+ }
1819
+ if (level !== undefined) {
1820
+ localVarQueryParameter['level'] = level;
1821
+ }
1822
+ if (framerate !== undefined) {
1823
+ localVarQueryParameter['framerate'] = framerate;
1824
+ }
1825
+ if (maxFramerate !== undefined) {
1826
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
1827
+ }
1828
+ if (copyTimestamps !== undefined) {
1829
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
1830
+ }
1831
+ if (startTimeTicks !== undefined) {
1832
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
1833
+ }
1834
+ if (width !== undefined) {
1835
+ localVarQueryParameter['width'] = width;
1836
+ }
1837
+ if (height !== undefined) {
1838
+ localVarQueryParameter['height'] = height;
1839
+ }
1840
+ if (videoBitRate !== undefined) {
1841
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
1842
+ }
1843
+ if (subtitleStreamIndex !== undefined) {
1844
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
1845
+ }
1846
+ if (subtitleMethod !== undefined) {
1847
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
1848
+ }
1849
+ if (maxRefFrames !== undefined) {
1850
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
1851
+ }
1852
+ if (maxVideoBitDepth !== undefined) {
1853
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
1854
+ }
1855
+ if (requireAvc !== undefined) {
1856
+ localVarQueryParameter['requireAvc'] = requireAvc;
1857
+ }
1858
+ if (deInterlace !== undefined) {
1859
+ localVarQueryParameter['deInterlace'] = deInterlace;
1860
+ }
1861
+ if (requireNonAnamorphic !== undefined) {
1862
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
1863
+ }
1864
+ if (transcodingMaxAudioChannels !== undefined) {
1865
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
1866
+ }
1867
+ if (cpuCoreLimit !== undefined) {
1868
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
1869
+ }
1870
+ if (liveStreamId !== undefined) {
1871
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
1872
+ }
1873
+ if (enableMpegtsM2TsMode !== undefined) {
1874
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
1875
+ }
1876
+ if (videoCodec !== undefined) {
1877
+ localVarQueryParameter['videoCodec'] = videoCodec;
1878
+ }
1879
+ if (subtitleCodec !== undefined) {
1880
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
1881
+ }
1882
+ if (transcodeReasons !== undefined) {
1883
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
1884
+ }
1885
+ if (audioStreamIndex !== undefined) {
1886
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
1887
+ }
1888
+ if (videoStreamIndex !== undefined) {
1889
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
1890
+ }
1891
+ if (context !== undefined) {
1892
+ localVarQueryParameter['context'] = context;
1893
+ }
1894
+ if (streamOptions !== undefined) {
1895
+ localVarQueryParameter['streamOptions'] = streamOptions;
1896
+ }
1897
+ if (enableAdaptiveBitrateStreaming !== undefined) {
1898
+ localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming;
1899
+ }
1900
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1901
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1902
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1903
+ return {
1904
+ url: toPathString(localVarUrlObj),
1905
+ options: localVarRequestOptions,
1906
+ };
1907
+ }),
1908
+ /**
1909
+ *
1910
+ * @summary Gets a video hls playlist stream.
1911
+ * @param {string} itemId The item id.
1912
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
1913
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1914
+ * @param {string} [params] The streaming parameters.
1915
+ * @param {string} [tag] The tag.
1916
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1917
+ * @param {string} [playSessionId] The play session id.
1918
+ * @param {string} [segmentContainer] The segment container.
1919
+ * @param {number} [segmentLength] The segment length.
1920
+ * @param {number} [minSegments] The minimum number of segments.
1921
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1922
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1923
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1924
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1925
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1926
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1927
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1928
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1929
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1930
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1931
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1932
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1933
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1934
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1935
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1936
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1937
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1938
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1939
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1940
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1941
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1942
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1943
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1944
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1945
+ * @param {number} [maxRefFrames] Optional.
1946
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1947
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1948
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1949
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1950
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1951
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1952
+ * @param {string} [liveStreamId] The live stream id.
1953
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1954
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1955
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1956
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1957
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1958
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1959
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1960
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1961
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
1962
+ * @param {*} [options] Override http request option.
1963
+ * @throws {RequiredError}
1964
+ */
1965
+ headMasterHlsVideoPlaylist: (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options = {}) => __awaiter(this, void 0, void 0, function* () {
1966
+ // verify required parameter 'itemId' is not null or undefined
1967
+ assertParamExists('headMasterHlsVideoPlaylist', 'itemId', itemId);
1968
+ // verify required parameter 'mediaSourceId' is not null or undefined
1969
+ assertParamExists('headMasterHlsVideoPlaylist', 'mediaSourceId', mediaSourceId);
1970
+ const localVarPath = `/Videos/{itemId}/master.m3u8`
1971
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1974
+ let baseOptions;
1975
+ if (configuration) {
1976
+ baseOptions = configuration.baseOptions;
1977
+ }
1978
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1979
+ const localVarHeaderParameter = {};
1980
+ const localVarQueryParameter = {};
1981
+ // authentication CustomAuthentication required
1982
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1983
+ if (_static !== undefined) {
1984
+ localVarQueryParameter['static'] = _static;
1985
+ }
1986
+ if (params !== undefined) {
1987
+ localVarQueryParameter['params'] = params;
1988
+ }
1989
+ if (tag !== undefined) {
1990
+ localVarQueryParameter['tag'] = tag;
1991
+ }
1992
+ if (deviceProfileId !== undefined) {
1993
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
1994
+ }
1995
+ if (playSessionId !== undefined) {
1996
+ localVarQueryParameter['playSessionId'] = playSessionId;
1997
+ }
1998
+ if (segmentContainer !== undefined) {
1999
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
2000
+ }
2001
+ if (segmentLength !== undefined) {
2002
+ localVarQueryParameter['segmentLength'] = segmentLength;
2003
+ }
2004
+ if (minSegments !== undefined) {
2005
+ localVarQueryParameter['minSegments'] = minSegments;
2006
+ }
2007
+ if (mediaSourceId !== undefined) {
2008
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
2009
+ }
2010
+ if (deviceId !== undefined) {
2011
+ localVarQueryParameter['deviceId'] = deviceId;
2012
+ }
2013
+ if (audioCodec !== undefined) {
2014
+ localVarQueryParameter['audioCodec'] = audioCodec;
2015
+ }
2016
+ if (enableAutoStreamCopy !== undefined) {
2017
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
2018
+ }
2019
+ if (allowVideoStreamCopy !== undefined) {
2020
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
2021
+ }
2022
+ if (allowAudioStreamCopy !== undefined) {
2023
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
2024
+ }
2025
+ if (breakOnNonKeyFrames !== undefined) {
2026
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
2027
+ }
2028
+ if (audioSampleRate !== undefined) {
2029
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
2030
+ }
2031
+ if (maxAudioBitDepth !== undefined) {
2032
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
2033
+ }
2034
+ if (audioBitRate !== undefined) {
2035
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
2036
+ }
2037
+ if (audioChannels !== undefined) {
2038
+ localVarQueryParameter['audioChannels'] = audioChannels;
2039
+ }
2040
+ if (maxAudioChannels !== undefined) {
2041
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
2042
+ }
2043
+ if (profile !== undefined) {
2044
+ localVarQueryParameter['profile'] = profile;
2045
+ }
2046
+ if (level !== undefined) {
2047
+ localVarQueryParameter['level'] = level;
2048
+ }
2049
+ if (framerate !== undefined) {
2050
+ localVarQueryParameter['framerate'] = framerate;
2051
+ }
2052
+ if (maxFramerate !== undefined) {
2053
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
2054
+ }
2055
+ if (copyTimestamps !== undefined) {
2056
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
2057
+ }
2058
+ if (startTimeTicks !== undefined) {
2059
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
2060
+ }
2061
+ if (width !== undefined) {
2062
+ localVarQueryParameter['width'] = width;
2063
+ }
2064
+ if (height !== undefined) {
2065
+ localVarQueryParameter['height'] = height;
2066
+ }
2067
+ if (maxWidth !== undefined) {
2068
+ localVarQueryParameter['maxWidth'] = maxWidth;
2069
+ }
2070
+ if (maxHeight !== undefined) {
2071
+ localVarQueryParameter['maxHeight'] = maxHeight;
2072
+ }
2073
+ if (videoBitRate !== undefined) {
2074
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
2075
+ }
2076
+ if (subtitleStreamIndex !== undefined) {
2077
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
2078
+ }
2079
+ if (subtitleMethod !== undefined) {
2080
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
2081
+ }
2082
+ if (maxRefFrames !== undefined) {
2083
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
2084
+ }
2085
+ if (maxVideoBitDepth !== undefined) {
2086
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
2087
+ }
2088
+ if (requireAvc !== undefined) {
2089
+ localVarQueryParameter['requireAvc'] = requireAvc;
2090
+ }
2091
+ if (deInterlace !== undefined) {
2092
+ localVarQueryParameter['deInterlace'] = deInterlace;
2093
+ }
2094
+ if (requireNonAnamorphic !== undefined) {
2095
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
2096
+ }
2097
+ if (transcodingMaxAudioChannels !== undefined) {
2098
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
2099
+ }
2100
+ if (cpuCoreLimit !== undefined) {
2101
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
2102
+ }
2103
+ if (liveStreamId !== undefined) {
2104
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
2105
+ }
2106
+ if (enableMpegtsM2TsMode !== undefined) {
2107
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
2108
+ }
2109
+ if (videoCodec !== undefined) {
2110
+ localVarQueryParameter['videoCodec'] = videoCodec;
2111
+ }
2112
+ if (subtitleCodec !== undefined) {
2113
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
2114
+ }
2115
+ if (transcodeReasons !== undefined) {
2116
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
2117
+ }
2118
+ if (audioStreamIndex !== undefined) {
2119
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
2120
+ }
2121
+ if (videoStreamIndex !== undefined) {
2122
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
2123
+ }
2124
+ if (context !== undefined) {
2125
+ localVarQueryParameter['context'] = context;
2126
+ }
2127
+ if (streamOptions !== undefined) {
2128
+ localVarQueryParameter['streamOptions'] = streamOptions;
2129
+ }
2130
+ if (enableAdaptiveBitrateStreaming !== undefined) {
2131
+ localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming;
2132
+ }
2133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2135
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2136
+ return {
2137
+ url: toPathString(localVarUrlObj),
2138
+ options: localVarRequestOptions,
2139
+ };
2140
+ }),
2141
+ };
2142
+ };
2143
+ /**
2144
+ * DynamicHlsApi - functional programming interface
2145
+ * @export
2146
+ */
2147
+ export const DynamicHlsApiFp = function (configuration) {
2148
+ const localVarAxiosParamCreator = DynamicHlsApiAxiosParamCreator(configuration);
2149
+ return {
2150
+ /**
2151
+ *
2152
+ * @summary Gets a video stream using HTTP live streaming.
2153
+ * @param {string} itemId The item id.
2154
+ * @param {string} playlistId The playlist id.
2155
+ * @param {number} segmentId The segment id.
2156
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
2157
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
2158
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
2159
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2160
+ * @param {string} [params] The streaming parameters.
2161
+ * @param {string} [tag] The tag.
2162
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2163
+ * @param {string} [playSessionId] The play session id.
2164
+ * @param {string} [segmentContainer] The segment container.
2165
+ * @param {number} [segmentLength] The segment length.
2166
+ * @param {number} [minSegments] The minimum number of segments.
2167
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2168
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2169
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2170
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2171
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2172
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2173
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2174
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2175
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2176
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2177
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2178
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2179
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2180
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2181
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2182
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2183
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2184
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2185
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2186
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2187
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2188
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2189
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2190
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2191
+ * @param {number} [maxRefFrames] Optional.
2192
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2193
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2194
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2195
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2196
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2197
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2198
+ * @param {string} [liveStreamId] The live stream id.
2199
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2200
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
2201
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2202
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2203
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2204
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2205
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2206
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2207
+ * @param {*} [options] Override http request option.
2208
+ * @throws {RequiredError}
2209
+ */
2210
+ getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2211
+ return __awaiter(this, void 0, void 0, function* () {
2212
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
2213
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2214
+ });
2215
+ },
2216
+ /**
2217
+ *
2218
+ * @summary Gets a video stream using HTTP live streaming.
2219
+ * @param {string} itemId The item id.
2220
+ * @param {string} playlistId The playlist id.
2221
+ * @param {number} segmentId The segment id.
2222
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
2223
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
2224
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
2225
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2226
+ * @param {string} [params] The streaming parameters.
2227
+ * @param {string} [tag] The tag.
2228
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2229
+ * @param {string} [playSessionId] The play session id.
2230
+ * @param {string} [segmentContainer] The segment container.
2231
+ * @param {number} [segmentLength] The desired segment length.
2232
+ * @param {number} [minSegments] The minimum number of segments.
2233
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2234
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2235
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2236
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2237
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2238
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2239
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2240
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2241
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2242
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2243
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2244
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2245
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2246
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2247
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2248
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2249
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2250
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2251
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2252
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2253
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
2254
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
2255
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2256
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2257
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2258
+ * @param {number} [maxRefFrames] Optional.
2259
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2260
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2261
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2262
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2263
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2264
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2265
+ * @param {string} [liveStreamId] The live stream id.
2266
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2267
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2268
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2269
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2270
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2271
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2272
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2273
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2274
+ * @param {*} [options] Override http request option.
2275
+ * @throws {RequiredError}
2276
+ */
2277
+ getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2278
+ return __awaiter(this, void 0, void 0, function* () {
2279
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
2280
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2281
+ });
2282
+ },
2283
+ /**
2284
+ *
2285
+ * @summary Gets a hls live stream.
2286
+ * @param {string} itemId The item id.
2287
+ * @param {string} [container] The audio container.
2288
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2289
+ * @param {string} [params] The streaming parameters.
2290
+ * @param {string} [tag] The tag.
2291
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2292
+ * @param {string} [playSessionId] The play session id.
2293
+ * @param {string} [segmentContainer] The segment container.
2294
+ * @param {number} [segmentLength] The segment length.
2295
+ * @param {number} [minSegments] The minimum number of segments.
2296
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2297
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2298
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2299
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2300
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2301
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2302
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2303
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2304
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2305
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2306
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2307
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2308
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2309
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2310
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2311
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2312
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2313
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2314
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2315
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2316
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2317
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2318
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2319
+ * @param {number} [maxRefFrames] Optional.
2320
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2321
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2322
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2323
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2324
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2325
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2326
+ * @param {string} [liveStreamId] The live stream id.
2327
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2328
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2329
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2330
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2331
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2332
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2333
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2334
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2335
+ * @param {number} [maxWidth] Optional. The max width.
2336
+ * @param {number} [maxHeight] Optional. The max height.
2337
+ * @param {boolean} [enableSubtitlesInManifest] Optional. Whether to enable subtitles in the manifest.
2338
+ * @param {*} [options] Override http request option.
2339
+ * @throws {RequiredError}
2340
+ */
2341
+ getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options) {
2342
+ return __awaiter(this, void 0, void 0, function* () {
2343
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options);
2344
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2345
+ });
2346
+ },
2347
+ /**
2348
+ *
2349
+ * @summary Gets an audio hls playlist stream.
2350
+ * @param {string} itemId The item id.
2351
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2352
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2353
+ * @param {string} [params] The streaming parameters.
2354
+ * @param {string} [tag] The tag.
2355
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2356
+ * @param {string} [playSessionId] The play session id.
2357
+ * @param {string} [segmentContainer] The segment container.
2358
+ * @param {number} [segmentLength] The segment length.
2359
+ * @param {number} [minSegments] The minimum number of segments.
2360
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2361
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2362
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2363
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2364
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2365
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2366
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2367
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2368
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2369
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2370
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2371
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2372
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2373
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2374
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2375
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2376
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2377
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2378
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2379
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2380
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2381
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2382
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2383
+ * @param {number} [maxRefFrames] Optional.
2384
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2385
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2386
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2387
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2388
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2389
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2390
+ * @param {string} [liveStreamId] The live stream id.
2391
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2392
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2393
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2394
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2395
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2396
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2397
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2398
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2399
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
2404
+ return __awaiter(this, void 0, void 0, function* () {
2405
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options);
2406
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2407
+ });
2408
+ },
2409
+ /**
2410
+ *
2411
+ * @summary Gets a video hls playlist stream.
2412
+ * @param {string} itemId The item id.
2413
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2414
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2415
+ * @param {string} [params] The streaming parameters.
2416
+ * @param {string} [tag] The tag.
2417
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2418
+ * @param {string} [playSessionId] The play session id.
2419
+ * @param {string} [segmentContainer] The segment container.
2420
+ * @param {number} [segmentLength] The segment length.
2421
+ * @param {number} [minSegments] The minimum number of segments.
2422
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2423
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2424
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2425
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2426
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2427
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2428
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2429
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2430
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2431
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2432
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2433
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2434
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2435
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2436
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2437
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2438
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2439
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2440
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2441
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
2442
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
2443
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2444
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2445
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2446
+ * @param {number} [maxRefFrames] Optional.
2447
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2448
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2449
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2450
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2451
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2452
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2453
+ * @param {string} [liveStreamId] The live stream id.
2454
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2455
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2456
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2457
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2458
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2459
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2460
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2461
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2462
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
2463
+ * @param {*} [options] Override http request option.
2464
+ * @throws {RequiredError}
2465
+ */
2466
+ getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
2467
+ return __awaiter(this, void 0, void 0, function* () {
2468
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options);
2469
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2470
+ });
2471
+ },
2472
+ /**
2473
+ *
2474
+ * @summary Gets an audio stream using HTTP live streaming.
2475
+ * @param {string} itemId The item id.
2476
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2477
+ * @param {string} [params] The streaming parameters.
2478
+ * @param {string} [tag] The tag.
2479
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2480
+ * @param {string} [playSessionId] The play session id.
2481
+ * @param {string} [segmentContainer] The segment container.
2482
+ * @param {number} [segmentLength] The segment length.
2483
+ * @param {number} [minSegments] The minimum number of segments.
2484
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2485
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2486
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2487
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2488
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2489
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2490
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2491
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2492
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2493
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2494
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2495
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2496
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2497
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2498
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2499
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2500
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2501
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2502
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2503
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2504
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2505
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2506
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2507
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2508
+ * @param {number} [maxRefFrames] Optional.
2509
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2510
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2511
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2512
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2513
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2514
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2515
+ * @param {string} [liveStreamId] The live stream id.
2516
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2517
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
2518
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2519
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2520
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2521
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2522
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2523
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2524
+ * @param {*} [options] Override http request option.
2525
+ * @throws {RequiredError}
2526
+ */
2527
+ getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2528
+ return __awaiter(this, void 0, void 0, function* () {
2529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
2530
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2531
+ });
2532
+ },
2533
+ /**
2534
+ *
2535
+ * @summary Gets a video stream using HTTP live streaming.
2536
+ * @param {string} itemId The item id.
2537
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2538
+ * @param {string} [params] The streaming parameters.
2539
+ * @param {string} [tag] The tag.
2540
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2541
+ * @param {string} [playSessionId] The play session id.
2542
+ * @param {string} [segmentContainer] The segment container.
2543
+ * @param {number} [segmentLength] The segment length.
2544
+ * @param {number} [minSegments] The minimum number of segments.
2545
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2546
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2547
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2548
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2549
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2550
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2551
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2552
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2553
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2554
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2555
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2556
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2557
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2558
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2559
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2560
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2561
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2562
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2563
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2564
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2565
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
2566
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
2567
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2568
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2569
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2570
+ * @param {number} [maxRefFrames] Optional.
2571
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2572
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2573
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2574
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2575
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2576
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2577
+ * @param {string} [liveStreamId] The live stream id.
2578
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2579
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2580
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2581
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2582
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2583
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2584
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2585
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ */
2589
+ getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2590
+ return __awaiter(this, void 0, void 0, function* () {
2591
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
2592
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2593
+ });
2594
+ },
2595
+ /**
2596
+ *
2597
+ * @summary Gets an audio hls playlist stream.
2598
+ * @param {string} itemId The item id.
2599
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2600
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2601
+ * @param {string} [params] The streaming parameters.
2602
+ * @param {string} [tag] The tag.
2603
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2604
+ * @param {string} [playSessionId] The play session id.
2605
+ * @param {string} [segmentContainer] The segment container.
2606
+ * @param {number} [segmentLength] The segment length.
2607
+ * @param {number} [minSegments] The minimum number of segments.
2608
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2609
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2610
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2611
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2612
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2613
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2614
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2615
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2616
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2617
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2618
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2619
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2620
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2621
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2622
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2623
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2624
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2625
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2626
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2627
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2628
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2629
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2630
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2631
+ * @param {number} [maxRefFrames] Optional.
2632
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2633
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2634
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2635
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2636
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2637
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2638
+ * @param {string} [liveStreamId] The live stream id.
2639
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2640
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2641
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2642
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2643
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2644
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2645
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2646
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2647
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
2648
+ * @param {*} [options] Override http request option.
2649
+ * @throws {RequiredError}
2650
+ */
2651
+ headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
2652
+ return __awaiter(this, void 0, void 0, function* () {
2653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options);
2654
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2655
+ });
2656
+ },
2657
+ /**
2658
+ *
2659
+ * @summary Gets a video hls playlist stream.
2660
+ * @param {string} itemId The item id.
2661
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2662
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2663
+ * @param {string} [params] The streaming parameters.
2664
+ * @param {string} [tag] The tag.
2665
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2666
+ * @param {string} [playSessionId] The play session id.
2667
+ * @param {string} [segmentContainer] The segment container.
2668
+ * @param {number} [segmentLength] The segment length.
2669
+ * @param {number} [minSegments] The minimum number of segments.
2670
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2671
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2672
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2673
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2674
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2675
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2676
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2677
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2678
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2679
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2680
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2681
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2682
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2683
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2684
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2685
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2686
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2687
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2688
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2689
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
2690
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
2691
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2692
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2693
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2694
+ * @param {number} [maxRefFrames] Optional.
2695
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2696
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2697
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2698
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2699
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2700
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2701
+ * @param {string} [liveStreamId] The live stream id.
2702
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2703
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2704
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2705
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2706
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2707
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2708
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2709
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2710
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
2711
+ * @param {*} [options] Override http request option.
2712
+ * @throws {RequiredError}
2713
+ */
2714
+ headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
2715
+ return __awaiter(this, void 0, void 0, function* () {
2716
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options);
2717
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2718
+ });
2719
+ },
2720
+ };
2721
+ };
2722
+ /**
2723
+ * DynamicHlsApi - factory interface
2724
+ * @export
2725
+ */
2726
+ export const DynamicHlsApiFactory = function (configuration, basePath, axios) {
2727
+ const localVarFp = DynamicHlsApiFp(configuration);
2728
+ return {
2729
+ /**
2730
+ *
2731
+ * @summary Gets a video stream using HTTP live streaming.
2732
+ * @param {string} itemId The item id.
2733
+ * @param {string} playlistId The playlist id.
2734
+ * @param {number} segmentId The segment id.
2735
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
2736
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
2737
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
2738
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2739
+ * @param {string} [params] The streaming parameters.
2740
+ * @param {string} [tag] The tag.
2741
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2742
+ * @param {string} [playSessionId] The play session id.
2743
+ * @param {string} [segmentContainer] The segment container.
2744
+ * @param {number} [segmentLength] The segment length.
2745
+ * @param {number} [minSegments] The minimum number of segments.
2746
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2747
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2748
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2749
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2750
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2751
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2752
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2753
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2754
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2755
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2756
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2757
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2758
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2759
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2760
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2761
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2762
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2763
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2764
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2765
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2766
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2767
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2768
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2769
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2770
+ * @param {number} [maxRefFrames] Optional.
2771
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2772
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2773
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2774
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2775
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2776
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2777
+ * @param {string} [liveStreamId] The live stream id.
2778
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2779
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
2780
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2781
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2782
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2783
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2784
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2785
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2786
+ * @param {*} [options] Override http request option.
2787
+ * @throws {RequiredError}
2788
+ */
2789
+ getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2790
+ return localVarFp.getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
2791
+ },
2792
+ /**
2793
+ *
2794
+ * @summary Gets a video stream using HTTP live streaming.
2795
+ * @param {string} itemId The item id.
2796
+ * @param {string} playlistId The playlist id.
2797
+ * @param {number} segmentId The segment id.
2798
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
2799
+ * @param {number} runtimeTicks The position of the requested segment in ticks.
2800
+ * @param {number} actualSegmentLengthTicks The length of the requested segment in ticks.
2801
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2802
+ * @param {string} [params] The streaming parameters.
2803
+ * @param {string} [tag] The tag.
2804
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2805
+ * @param {string} [playSessionId] The play session id.
2806
+ * @param {string} [segmentContainer] The segment container.
2807
+ * @param {number} [segmentLength] The desired segment length.
2808
+ * @param {number} [minSegments] The minimum number of segments.
2809
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2810
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2811
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2812
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2813
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2814
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2815
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2816
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2817
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2818
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2819
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2820
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2821
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2822
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2823
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2824
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2825
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2826
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2827
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2828
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2829
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
2830
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
2831
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2832
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2833
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2834
+ * @param {number} [maxRefFrames] Optional.
2835
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2836
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2837
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2838
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2839
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2840
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2841
+ * @param {string} [liveStreamId] The live stream id.
2842
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2843
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2844
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2845
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2846
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2847
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2848
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2849
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2850
+ * @param {*} [options] Override http request option.
2851
+ * @throws {RequiredError}
2852
+ */
2853
+ getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
2854
+ return localVarFp.getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
2855
+ },
2856
+ /**
2857
+ *
2858
+ * @summary Gets a hls live stream.
2859
+ * @param {string} itemId The item id.
2860
+ * @param {string} [container] The audio container.
2861
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2862
+ * @param {string} [params] The streaming parameters.
2863
+ * @param {string} [tag] The tag.
2864
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2865
+ * @param {string} [playSessionId] The play session id.
2866
+ * @param {string} [segmentContainer] The segment container.
2867
+ * @param {number} [segmentLength] The segment length.
2868
+ * @param {number} [minSegments] The minimum number of segments.
2869
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
2870
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2871
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2872
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2873
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2874
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2875
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2876
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2877
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2878
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2879
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2880
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2881
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2882
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2883
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2884
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2885
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2886
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2887
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2888
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2889
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2890
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2891
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2892
+ * @param {number} [maxRefFrames] Optional.
2893
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2894
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2895
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2896
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2897
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2898
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2899
+ * @param {string} [liveStreamId] The live stream id.
2900
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2901
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2902
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2903
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2904
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2905
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2906
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2907
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2908
+ * @param {number} [maxWidth] Optional. The max width.
2909
+ * @param {number} [maxHeight] Optional. The max height.
2910
+ * @param {boolean} [enableSubtitlesInManifest] Optional. Whether to enable subtitles in the manifest.
2911
+ * @param {*} [options] Override http request option.
2912
+ * @throws {RequiredError}
2913
+ */
2914
+ getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options) {
2915
+ return localVarFp.getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options).then((request) => request(axios, basePath));
2916
+ },
2917
+ /**
2918
+ *
2919
+ * @summary Gets an audio hls playlist stream.
2920
+ * @param {string} itemId The item id.
2921
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2922
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2923
+ * @param {string} [params] The streaming parameters.
2924
+ * @param {string} [tag] The tag.
2925
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2926
+ * @param {string} [playSessionId] The play session id.
2927
+ * @param {string} [segmentContainer] The segment container.
2928
+ * @param {number} [segmentLength] The segment length.
2929
+ * @param {number} [minSegments] The minimum number of segments.
2930
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2931
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2932
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2933
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2934
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2935
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2936
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2937
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2938
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
2939
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2940
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2941
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
2942
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
2943
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
2944
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2945
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
2946
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
2947
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
2948
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
2949
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
2950
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
2951
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
2952
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
2953
+ * @param {number} [maxRefFrames] Optional.
2954
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
2955
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
2956
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
2957
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
2958
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
2959
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
2960
+ * @param {string} [liveStreamId] The live stream id.
2961
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
2962
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
2963
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
2964
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
2965
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
2966
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
2967
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
2968
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
2969
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
2970
+ * @param {*} [options] Override http request option.
2971
+ * @throws {RequiredError}
2972
+ */
2973
+ getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
2974
+ return localVarFp.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath));
2975
+ },
2976
+ /**
2977
+ *
2978
+ * @summary Gets a video hls playlist stream.
2979
+ * @param {string} itemId The item id.
2980
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
2981
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
2982
+ * @param {string} [params] The streaming parameters.
2983
+ * @param {string} [tag] The tag.
2984
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
2985
+ * @param {string} [playSessionId] The play session id.
2986
+ * @param {string} [segmentContainer] The segment container.
2987
+ * @param {number} [segmentLength] The segment length.
2988
+ * @param {number} [minSegments] The minimum number of segments.
2989
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
2990
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
2991
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
2992
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
2993
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
2994
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
2995
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
2996
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
2997
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
2998
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
2999
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
3000
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
3001
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
3002
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3003
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3004
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
3005
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
3006
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
3007
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
3008
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
3009
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
3010
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
3011
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
3012
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
3013
+ * @param {number} [maxRefFrames] Optional.
3014
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
3015
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
3016
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
3017
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
3018
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
3019
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
3020
+ * @param {string} [liveStreamId] The live stream id.
3021
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
3022
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
3023
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
3024
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
3025
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
3026
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
3027
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
3028
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
3029
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ */
3033
+ getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
3034
+ return localVarFp.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath));
3035
+ },
3036
+ /**
3037
+ *
3038
+ * @summary Gets an audio stream using HTTP live streaming.
3039
+ * @param {string} itemId The item id.
3040
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
3041
+ * @param {string} [params] The streaming parameters.
3042
+ * @param {string} [tag] The tag.
3043
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
3044
+ * @param {string} [playSessionId] The play session id.
3045
+ * @param {string} [segmentContainer] The segment container.
3046
+ * @param {number} [segmentLength] The segment length.
3047
+ * @param {number} [minSegments] The minimum number of segments.
3048
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
3049
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
3050
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
3051
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
3052
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
3053
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
3054
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
3055
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
3056
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
3057
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
3058
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
3059
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
3060
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
3061
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
3062
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
3063
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3064
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3065
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
3066
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
3067
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
3068
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
3069
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
3070
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
3071
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
3072
+ * @param {number} [maxRefFrames] Optional.
3073
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
3074
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
3075
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
3076
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
3077
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
3078
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
3079
+ * @param {string} [liveStreamId] The live stream id.
3080
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
3081
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
3082
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
3083
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
3084
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
3085
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
3086
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
3087
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
3088
+ * @param {*} [options] Override http request option.
3089
+ * @throws {RequiredError}
3090
+ */
3091
+ getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
3092
+ return localVarFp.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
3093
+ },
3094
+ /**
3095
+ *
3096
+ * @summary Gets a video stream using HTTP live streaming.
3097
+ * @param {string} itemId The item id.
3098
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
3099
+ * @param {string} [params] The streaming parameters.
3100
+ * @param {string} [tag] The tag.
3101
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
3102
+ * @param {string} [playSessionId] The play session id.
3103
+ * @param {string} [segmentContainer] The segment container.
3104
+ * @param {number} [segmentLength] The segment length.
3105
+ * @param {number} [minSegments] The minimum number of segments.
3106
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
3107
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
3108
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
3109
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
3110
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
3111
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
3112
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
3113
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
3114
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
3115
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
3116
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
3117
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
3118
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
3119
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
3120
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3121
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3122
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
3123
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
3124
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
3125
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
3126
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
3127
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
3128
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
3129
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
3130
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
3131
+ * @param {number} [maxRefFrames] Optional.
3132
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
3133
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
3134
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
3135
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
3136
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
3137
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
3138
+ * @param {string} [liveStreamId] The live stream id.
3139
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
3140
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
3141
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
3142
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
3143
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
3144
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
3145
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
3146
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
3147
+ * @param {*} [options] Override http request option.
3148
+ * @throws {RequiredError}
3149
+ */
3150
+ getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
3151
+ return localVarFp.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
3152
+ },
3153
+ /**
3154
+ *
3155
+ * @summary Gets an audio hls playlist stream.
3156
+ * @param {string} itemId The item id.
3157
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
3158
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
3159
+ * @param {string} [params] The streaming parameters.
3160
+ * @param {string} [tag] The tag.
3161
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
3162
+ * @param {string} [playSessionId] The play session id.
3163
+ * @param {string} [segmentContainer] The segment container.
3164
+ * @param {number} [segmentLength] The segment length.
3165
+ * @param {number} [minSegments] The minimum number of segments.
3166
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
3167
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
3168
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
3169
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
3170
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
3171
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
3172
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
3173
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
3174
+ * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate.
3175
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
3176
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
3177
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
3178
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
3179
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
3180
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3181
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3182
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
3183
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
3184
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
3185
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
3186
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
3187
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
3188
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
3189
+ * @param {number} [maxRefFrames] Optional.
3190
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
3191
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
3192
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
3193
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
3194
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
3195
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
3196
+ * @param {string} [liveStreamId] The live stream id.
3197
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
3198
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
3199
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
3200
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
3201
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
3202
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
3203
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
3204
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
3205
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
3206
+ * @param {*} [options] Override http request option.
3207
+ * @throws {RequiredError}
3208
+ */
3209
+ headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
3210
+ return localVarFp.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath));
3211
+ },
3212
+ /**
3213
+ *
3214
+ * @summary Gets a video hls playlist stream.
3215
+ * @param {string} itemId The item id.
3216
+ * @param {string} mediaSourceId The media version id, if playing an alternate version.
3217
+ * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
3218
+ * @param {string} [params] The streaming parameters.
3219
+ * @param {string} [tag] The tag.
3220
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
3221
+ * @param {string} [playSessionId] The play session id.
3222
+ * @param {string} [segmentContainer] The segment container.
3223
+ * @param {number} [segmentLength] The segment length.
3224
+ * @param {number} [minSegments] The minimum number of segments.
3225
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
3226
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
3227
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
3228
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
3229
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
3230
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
3231
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
3232
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
3233
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
3234
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
3235
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
3236
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
3237
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
3238
+ * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3239
+ * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
3240
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
3241
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
3242
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
3243
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
3244
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
3245
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
3246
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
3247
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
3248
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
3249
+ * @param {number} [maxRefFrames] Optional.
3250
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
3251
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
3252
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
3253
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
3254
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
3255
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
3256
+ * @param {string} [liveStreamId] The live stream id.
3257
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
3258
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
3259
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
3260
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
3261
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
3262
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
3263
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
3264
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
3265
+ * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming.
3266
+ * @param {*} [options] Override http request option.
3267
+ * @throws {RequiredError}
3268
+ */
3269
+ headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) {
3270
+ return localVarFp.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath));
3271
+ },
3272
+ };
3273
+ };
3274
+ /**
3275
+ * DynamicHlsApi - object-oriented interface
3276
+ * @export
3277
+ * @class DynamicHlsApi
3278
+ * @extends {BaseAPI}
3279
+ */
3280
+ export class DynamicHlsApi extends BaseAPI {
3281
+ /**
3282
+ *
3283
+ * @summary Gets a video stream using HTTP live streaming.
3284
+ * @param {DynamicHlsApiGetHlsAudioSegmentRequest} requestParameters Request parameters.
3285
+ * @param {*} [options] Override http request option.
3286
+ * @throws {RequiredError}
3287
+ * @memberof DynamicHlsApi
3288
+ */
3289
+ getHlsAudioSegment(requestParameters, options) {
3290
+ return DynamicHlsApiFp(this.configuration).getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
3291
+ }
3292
+ /**
3293
+ *
3294
+ * @summary Gets a video stream using HTTP live streaming.
3295
+ * @param {DynamicHlsApiGetHlsVideoSegmentRequest} requestParameters Request parameters.
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ * @memberof DynamicHlsApi
3299
+ */
3300
+ getHlsVideoSegment(requestParameters, options) {
3301
+ return DynamicHlsApiFp(this.configuration).getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
3302
+ }
3303
+ /**
3304
+ *
3305
+ * @summary Gets a hls live stream.
3306
+ * @param {DynamicHlsApiGetLiveHlsStreamRequest} requestParameters Request parameters.
3307
+ * @param {*} [options] Override http request option.
3308
+ * @throws {RequiredError}
3309
+ * @memberof DynamicHlsApi
3310
+ */
3311
+ getLiveHlsStream(requestParameters, options) {
3312
+ return DynamicHlsApiFp(this.configuration).getLiveHlsStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.enableSubtitlesInManifest, options).then((request) => request(this.axios, this.basePath));
3313
+ }
3314
+ /**
3315
+ *
3316
+ * @summary Gets an audio hls playlist stream.
3317
+ * @param {DynamicHlsApiGetMasterHlsAudioPlaylistRequest} requestParameters Request parameters.
3318
+ * @param {*} [options] Override http request option.
3319
+ * @throws {RequiredError}
3320
+ * @memberof DynamicHlsApi
3321
+ */
3322
+ getMasterHlsAudioPlaylist(requestParameters, options) {
3323
+ return DynamicHlsApiFp(this.configuration).getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath));
3324
+ }
3325
+ /**
3326
+ *
3327
+ * @summary Gets a video hls playlist stream.
3328
+ * @param {DynamicHlsApiGetMasterHlsVideoPlaylistRequest} requestParameters Request parameters.
3329
+ * @param {*} [options] Override http request option.
3330
+ * @throws {RequiredError}
3331
+ * @memberof DynamicHlsApi
3332
+ */
3333
+ getMasterHlsVideoPlaylist(requestParameters, options) {
3334
+ return DynamicHlsApiFp(this.configuration).getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath));
3335
+ }
3336
+ /**
3337
+ *
3338
+ * @summary Gets an audio stream using HTTP live streaming.
3339
+ * @param {DynamicHlsApiGetVariantHlsAudioPlaylistRequest} requestParameters Request parameters.
3340
+ * @param {*} [options] Override http request option.
3341
+ * @throws {RequiredError}
3342
+ * @memberof DynamicHlsApi
3343
+ */
3344
+ getVariantHlsAudioPlaylist(requestParameters, options) {
3345
+ return DynamicHlsApiFp(this.configuration).getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
3346
+ }
3347
+ /**
3348
+ *
3349
+ * @summary Gets a video stream using HTTP live streaming.
3350
+ * @param {DynamicHlsApiGetVariantHlsVideoPlaylistRequest} requestParameters Request parameters.
3351
+ * @param {*} [options] Override http request option.
3352
+ * @throws {RequiredError}
3353
+ * @memberof DynamicHlsApi
3354
+ */
3355
+ getVariantHlsVideoPlaylist(requestParameters, options) {
3356
+ return DynamicHlsApiFp(this.configuration).getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
3357
+ }
3358
+ /**
3359
+ *
3360
+ * @summary Gets an audio hls playlist stream.
3361
+ * @param {DynamicHlsApiHeadMasterHlsAudioPlaylistRequest} requestParameters Request parameters.
3362
+ * @param {*} [options] Override http request option.
3363
+ * @throws {RequiredError}
3364
+ * @memberof DynamicHlsApi
3365
+ */
3366
+ headMasterHlsAudioPlaylist(requestParameters, options) {
3367
+ return DynamicHlsApiFp(this.configuration).headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath));
3368
+ }
3369
+ /**
3370
+ *
3371
+ * @summary Gets a video hls playlist stream.
3372
+ * @param {DynamicHlsApiHeadMasterHlsVideoPlaylistRequest} requestParameters Request parameters.
3373
+ * @param {*} [options] Override http request option.
3374
+ * @throws {RequiredError}
3375
+ * @memberof DynamicHlsApi
3376
+ */
3377
+ headMasterHlsVideoPlaylist(requestParameters, options) {
3378
+ return DynamicHlsApiFp(this.configuration).headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath));
3379
+ }
3380
+ }