@jellyfin/sdk 0.7.0

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