@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.
- package/.gitattributes +5 -0
- package/LICENSE +373 -0
- package/README.md +141 -0
- package/lib/api.d.ts +42 -0
- package/lib/api.js +99 -0
- package/lib/discovery/discovery-service.d.ts +41 -0
- package/lib/discovery/discovery-service.js +112 -0
- package/lib/discovery/index.d.ts +7 -0
- package/lib/discovery/index.js +23 -0
- package/lib/discovery/recommended-server-discovery.d.ts +23 -0
- package/lib/discovery/recommended-server-discovery.js +153 -0
- package/lib/generated-client/api/activity-log-api.d.ts +113 -0
- package/lib/generated-client/api/activity-log-api.js +234 -0
- package/lib/generated-client/api/api-key-api.d.ts +161 -0
- package/lib/generated-client/api/api-key-api.js +374 -0
- package/lib/generated-client/api/artists-api.d.ts +751 -0
- package/lib/generated-client/api/artists-api.js +759 -0
- package/lib/generated-client/api/audio-api.d.ts +1985 -0
- package/lib/generated-client/api/audio-api.js +1582 -0
- package/lib/generated-client/api/branding-api.d.ts +127 -0
- package/lib/generated-client/api/branding-api.js +334 -0
- package/lib/generated-client/api/channels-api.d.ts +419 -0
- package/lib/generated-client/api/channels-api.js +648 -0
- package/lib/generated-client/api/client-log-api.d.ts +86 -0
- package/lib/generated-client/api/client-log-api.js +213 -0
- package/lib/generated-client/api/collection-api.d.ts +223 -0
- package/lib/generated-client/api/collection-api.js +414 -0
- package/lib/generated-client/api/configuration-api.d.ts +293 -0
- package/lib/generated-client/api/configuration-api.js +623 -0
- package/lib/generated-client/api/dashboard-api.d.ts +132 -0
- package/lib/generated-client/api/dashboard-api.js +290 -0
- package/lib/generated-client/api/devices-api.d.ts +291 -0
- package/lib/generated-client/api/devices-api.js +567 -0
- package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
- package/lib/generated-client/api/display-preferences-api.js +335 -0
- package/lib/generated-client/api/dlna-api.d.ts +292 -0
- package/lib/generated-client/api/dlna-api.js +619 -0
- package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
- package/lib/generated-client/api/dlna-server-api.js +1464 -0
- package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
- package/lib/generated-client/api/dynamic-hls-api.js +3611 -0
- package/lib/generated-client/api/environment-api.d.ts +289 -0
- package/lib/generated-client/api/environment-api.js +628 -0
- package/lib/generated-client/api/filter-api.d.ts +242 -0
- package/lib/generated-client/api/filter-api.js +370 -0
- package/lib/generated-client/api/genres-api.d.ts +299 -0
- package/lib/generated-client/api/genres-api.js +405 -0
- package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
- package/lib/generated-client/api/hls-segment-api.js +567 -0
- package/lib/generated-client/api/image-api.d.ts +6744 -0
- package/lib/generated-client/api/image-api.js +6515 -0
- package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
- package/lib/generated-client/api/image-by-name-api.js +601 -0
- package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
- package/lib/generated-client/api/instant-mix-api.js +1138 -0
- package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
- package/lib/generated-client/api/item-lookup-api.js +1065 -0
- package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
- package/lib/generated-client/api/item-refresh-api.js +237 -0
- package/lib/generated-client/api/item-update-api.d.ts +197 -0
- package/lib/generated-client/api/item-update-api.js +392 -0
- package/lib/generated-client/api/items-api.d.ts +1824 -0
- package/lib/generated-client/api/items-api.js +1488 -0
- package/lib/generated-client/api/library-api.d.ts +1482 -0
- package/lib/generated-client/api/library-api.js +2414 -0
- package/lib/generated-client/api/library-structure-api.d.ts +486 -0
- package/lib/generated-client/api/library-structure-api.js +852 -0
- package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
- package/lib/generated-client/api/live-tv-api.js +4165 -0
- package/lib/generated-client/api/localization-api.d.ts +159 -0
- package/lib/generated-client/api/localization-api.js +434 -0
- package/lib/generated-client/api/media-info-api.d.ts +516 -0
- package/lib/generated-client/api/media-info-api.js +711 -0
- package/lib/generated-client/api/movies-api.d.ts +123 -0
- package/lib/generated-client/api/movies-api.js +238 -0
- package/lib/generated-client/api/music-genres-api.d.ts +303 -0
- package/lib/generated-client/api/music-genres-api.js +409 -0
- package/lib/generated-client/api/notifications-api.d.ts +332 -0
- package/lib/generated-client/api/notifications-api.js +698 -0
- package/lib/generated-client/api/package-api.d.ts +319 -0
- package/lib/generated-client/api/package-api.js +639 -0
- package/lib/generated-client/api/persons-api.d.ts +253 -0
- package/lib/generated-client/api/persons-api.js +375 -0
- package/lib/generated-client/api/playlists-api.d.ts +427 -0
- package/lib/generated-client/api/playlists-api.js +649 -0
- package/lib/generated-client/api/playstate-api.d.ts +720 -0
- package/lib/generated-client/api/playstate-api.js +1055 -0
- package/lib/generated-client/api/plugins-api.d.ts +477 -0
- package/lib/generated-client/api/plugins-api.js +898 -0
- package/lib/generated-client/api/quick-connect-api.d.ts +190 -0
- package/lib/generated-client/api/quick-connect-api.js +428 -0
- package/lib/generated-client/api/remote-image-api.d.ts +243 -0
- package/lib/generated-client/api/remote-image-api.js +423 -0
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
- package/lib/generated-client/api/scheduled-tasks-api.js +559 -0
- package/lib/generated-client/api/search-api.d.ts +240 -0
- package/lib/generated-client/api/search-api.js +317 -0
- package/lib/generated-client/api/session-api.d.ts +985 -0
- package/lib/generated-client/api/session-api.js +1622 -0
- package/lib/generated-client/api/startup-api.d.ts +296 -0
- package/lib/generated-client/api/startup-api.js +685 -0
- package/lib/generated-client/api/studios-api.d.ts +289 -0
- package/lib/generated-client/api/studios-api.js +399 -0
- package/lib/generated-client/api/subtitle-api.d.ts +764 -0
- package/lib/generated-client/api/subtitle-api.js +1126 -0
- package/lib/generated-client/api/suggestions-api.d.ts +132 -0
- package/lib/generated-client/api/suggestions-api.js +243 -0
- package/lib/generated-client/api/sync-play-api.d.ts +937 -0
- package/lib/generated-client/api/sync-play-api.js +1854 -0
- package/lib/generated-client/api/system-api.d.ts +355 -0
- package/lib/generated-client/api/system-api.js +879 -0
- package/lib/generated-client/api/time-sync-api.d.ts +69 -0
- package/lib/generated-client/api/time-sync-api.js +198 -0
- package/lib/generated-client/api/tmdb-api.d.ts +69 -0
- package/lib/generated-client/api/tmdb-api.js +206 -0
- package/lib/generated-client/api/trailers-api.d.ts +841 -0
- package/lib/generated-client/api/trailers-api.js +720 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
- package/lib/generated-client/api/tv-shows-api.js +730 -0
- package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
- package/lib/generated-client/api/universal-audio-api.js +500 -0
- package/lib/generated-client/api/user-api.d.ts +826 -0
- package/lib/generated-client/api/user-api.js +1457 -0
- package/lib/generated-client/api/user-library-api.d.ts +676 -0
- package/lib/generated-client/api/user-library-api.js +1074 -0
- package/lib/generated-client/api/user-views-api.d.ts +160 -0
- package/lib/generated-client/api/user-views-api.js +314 -0
- package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
- package/lib/generated-client/api/video-attachments-api.js +217 -0
- package/lib/generated-client/api/videos-api.d.ts +2205 -0
- package/lib/generated-client/api/videos-api.js +1887 -0
- package/lib/generated-client/api/years-api.d.ts +272 -0
- package/lib/generated-client/api/years-api.js +387 -0
- package/lib/generated-client/api.d.ts +71 -0
- package/lib/generated-client/api.js +89 -0
- package/lib/generated-client/base.d.ts +54 -0
- package/lib/generated-client/base.js +84 -0
- package/lib/generated-client/common.d.ts +64 -0
- package/lib/generated-client/common.js +242 -0
- package/lib/generated-client/configuration.d.ts +82 -0
- package/lib/generated-client/configuration.js +43 -0
- package/lib/generated-client/index.d.ts +13 -0
- package/lib/generated-client/index.js +31 -0
- package/lib/generated-client/models/access-schedule.d.ts +48 -0
- package/lib/generated-client/models/access-schedule.js +14 -0
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
- package/lib/generated-client/models/activity-log-entry-query-result.js +14 -0
- package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
- package/lib/generated-client/models/activity-log-entry.js +14 -0
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
- package/lib/generated-client/models/add-virtual-folder-dto.js +14 -0
- package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
- package/lib/generated-client/models/admin-notification-dto.js +14 -0
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/album-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/album-info.d.ts +106 -0
- package/lib/generated-client/models/album-info.js +14 -0
- package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
- package/lib/generated-client/models/all-theme-media-result.js +14 -0
- package/lib/generated-client/models/architecture.d.ts +23 -0
- package/lib/generated-client/models/architecture.js +29 -0
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/artist-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/artist-info.d.ts +92 -0
- package/lib/generated-client/models/artist-info.js +14 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
- package/lib/generated-client/models/authenticate-user-by-name.js +14 -0
- package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/authentication-info-query-result.js +14 -0
- package/lib/generated-client/models/authentication-info.d.ts +89 -0
- package/lib/generated-client/models/authentication-info.js +14 -0
- package/lib/generated-client/models/authentication-result.d.ts +43 -0
- package/lib/generated-client/models/authentication-result.js +14 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +14 -0
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/base-item-dto-query-result.js +14 -0
- package/lib/generated-client/models/base-item-dto.d.ts +947 -0
- package/lib/generated-client/models/base-item-dto.js +14 -0
- package/lib/generated-client/models/base-item-kind.d.ts +54 -0
- package/lib/generated-client/models/base-item-kind.js +60 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.js +14 -0
- package/lib/generated-client/models/base-item-person.d.ts +54 -0
- package/lib/generated-client/models/base-item-person.js +14 -0
- package/lib/generated-client/models/base-item.d.ts +84 -0
- package/lib/generated-client/models/base-item.js +14 -0
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/book-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/book-info.d.ts +91 -0
- package/lib/generated-client/models/book-info.js +14 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/box-set-info.d.ts +85 -0
- package/lib/generated-client/models/box-set-info.js +14 -0
- package/lib/generated-client/models/branding-options.d.ts +35 -0
- package/lib/generated-client/models/branding-options.js +14 -0
- package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
- package/lib/generated-client/models/buffer-request-dto.js +14 -0
- package/lib/generated-client/models/channel-features.d.ts +92 -0
- package/lib/generated-client/models/channel-features.js +14 -0
- package/lib/generated-client/models/channel-item-sort-field.d.ts +24 -0
- package/lib/generated-client/models/channel-item-sort-field.js +30 -0
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
- package/lib/generated-client/models/channel-mapping-options-dto.js +14 -0
- package/lib/generated-client/models/channel-media-content-type.d.ts +25 -0
- package/lib/generated-client/models/channel-media-content-type.js +31 -0
- package/lib/generated-client/models/channel-media-type.d.ts +20 -0
- package/lib/generated-client/models/channel-media-type.js +26 -0
- package/lib/generated-client/models/channel-type.d.ts +19 -0
- package/lib/generated-client/models/channel-type.js +25 -0
- package/lib/generated-client/models/chapter-info.d.ts +47 -0
- package/lib/generated-client/models/chapter-info.js +14 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities-dto.js +14 -0
- package/lib/generated-client/models/client-capabilities.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities.js +14 -0
- package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
- package/lib/generated-client/models/client-log-document-response-dto.js +14 -0
- package/lib/generated-client/models/codec-profile.d.ts +49 -0
- package/lib/generated-client/models/codec-profile.js +14 -0
- package/lib/generated-client/models/codec-type.d.ts +20 -0
- package/lib/generated-client/models/codec-type.js +26 -0
- package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
- package/lib/generated-client/models/collection-creation-result.js +14 -0
- package/lib/generated-client/models/collection-type-options.d.ts +25 -0
- package/lib/generated-client/models/collection-type-options.js +31 -0
- package/lib/generated-client/models/config-image-types.d.ts +59 -0
- package/lib/generated-client/models/config-image-types.js +14 -0
- package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
- package/lib/generated-client/models/configuration-page-info.js +14 -0
- package/lib/generated-client/models/container-profile.d.ts +37 -0
- package/lib/generated-client/models/container-profile.js +14 -0
- package/lib/generated-client/models/control-response.d.ts +37 -0
- package/lib/generated-client/models/control-response.js +14 -0
- package/lib/generated-client/models/country-info.d.ts +41 -0
- package/lib/generated-client/models/country-info.js +14 -0
- package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
- package/lib/generated-client/models/create-playlist-dto.js +14 -0
- package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
- package/lib/generated-client/models/create-user-by-name.js +14 -0
- package/lib/generated-client/models/culture-dto.d.ts +47 -0
- package/lib/generated-client/models/culture-dto.js +14 -0
- package/lib/generated-client/models/day-of-week.d.ts +24 -0
- package/lib/generated-client/models/day-of-week.js +30 -0
- package/lib/generated-client/models/day-pattern.d.ts +20 -0
- package/lib/generated-client/models/day-pattern.js +26 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.js +14 -0
- package/lib/generated-client/models/device-identification.d.ts +72 -0
- package/lib/generated-client/models/device-identification.js +14 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-query-result.js +14 -0
- package/lib/generated-client/models/device-info.d.ts +78 -0
- package/lib/generated-client/models/device-info.js +14 -0
- package/lib/generated-client/models/device-options-dto.d.ts +35 -0
- package/lib/generated-client/models/device-options-dto.js +14 -0
- package/lib/generated-client/models/device-options.d.ts +35 -0
- package/lib/generated-client/models/device-options.js +14 -0
- package/lib/generated-client/models/device-profile-info.d.ts +36 -0
- package/lib/generated-client/models/device-profile-info.js +14 -0
- package/lib/generated-client/models/device-profile-type.d.ts +19 -0
- package/lib/generated-client/models/device-profile-type.js +25 -0
- package/lib/generated-client/models/device-profile.d.ts +259 -0
- package/lib/generated-client/models/device-profile.js +14 -0
- package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
- package/lib/generated-client/models/direct-play-profile.js +14 -0
- package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
- package/lib/generated-client/models/display-preferences-dto.js +14 -0
- package/lib/generated-client/models/dlna-options.d.ts +83 -0
- package/lib/generated-client/models/dlna-options.js +14 -0
- package/lib/generated-client/models/dlna-profile-type.d.ts +21 -0
- package/lib/generated-client/models/dlna-profile-type.js +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.d.ts +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.js +33 -0
- package/lib/generated-client/models/embedded-subtitle-options.d.ts +21 -0
- package/lib/generated-client/models/embedded-subtitle-options.js +27 -0
- package/lib/generated-client/models/encoding-context.d.ts +19 -0
- package/lib/generated-client/models/encoding-context.js +25 -0
- package/lib/generated-client/models/encoding-options.d.ts +245 -0
- package/lib/generated-client/models/encoding-options.js +14 -0
- package/lib/generated-client/models/end-point-info.d.ts +29 -0
- package/lib/generated-client/models/end-point-info.js +14 -0
- package/lib/generated-client/models/external-id-info.d.ts +42 -0
- package/lib/generated-client/models/external-id-info.js +14 -0
- package/lib/generated-client/models/external-id-media-type.d.ts +29 -0
- package/lib/generated-client/models/external-id-media-type.js +35 -0
- package/lib/generated-client/models/external-url.d.ts +29 -0
- package/lib/generated-client/models/external-url.js +14 -0
- package/lib/generated-client/models/ffmpeg-location.d.ts +21 -0
- package/lib/generated-client/models/ffmpeg-location.js +27 -0
- package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
- package/lib/generated-client/models/file-system-entry-info.js +14 -0
- package/lib/generated-client/models/file-system-entry-type.d.ts +21 -0
- package/lib/generated-client/models/file-system-entry-type.js +27 -0
- package/lib/generated-client/models/font-file.d.ts +41 -0
- package/lib/generated-client/models/font-file.js +14 -0
- package/lib/generated-client/models/forgot-password-action.d.ts +20 -0
- package/lib/generated-client/models/forgot-password-action.js +26 -0
- package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-pin-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
- package/lib/generated-client/models/forgot-password-result.js +14 -0
- package/lib/generated-client/models/general-command-type.d.ts +59 -0
- package/lib/generated-client/models/general-command-type.js +65 -0
- package/lib/generated-client/models/general-command.d.ts +38 -0
- package/lib/generated-client/models/general-command.js +14 -0
- package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
- package/lib/generated-client/models/get-programs-dto.js +14 -0
- package/lib/generated-client/models/group-info-dto.d.ts +48 -0
- package/lib/generated-client/models/group-info-dto.js +14 -0
- package/lib/generated-client/models/group-queue-mode.d.ts +19 -0
- package/lib/generated-client/models/group-queue-mode.js +25 -0
- package/lib/generated-client/models/group-repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/group-repeat-mode.js +26 -0
- package/lib/generated-client/models/group-shuffle-mode.d.ts +19 -0
- package/lib/generated-client/models/group-shuffle-mode.js +25 -0
- package/lib/generated-client/models/group-state-type.d.ts +21 -0
- package/lib/generated-client/models/group-state-type.js +27 -0
- package/lib/generated-client/models/group-update-type.d.ts +28 -0
- package/lib/generated-client/models/group-update-type.js +34 -0
- package/lib/generated-client/models/guide-info.d.ts +29 -0
- package/lib/generated-client/models/guide-info.js +14 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +23 -0
- package/lib/generated-client/models/hardware-encoding-type.js +29 -0
- package/lib/generated-client/models/header-match-type.d.ts +20 -0
- package/lib/generated-client/models/header-match-type.js +26 -0
- package/lib/generated-client/models/http-header-info.d.ts +36 -0
- package/lib/generated-client/models/http-header-info.js +14 -0
- package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ignore-wait-request-dto.js +14 -0
- package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
- package/lib/generated-client/models/image-by-name-info.js +14 -0
- package/lib/generated-client/models/image-format.d.ts +22 -0
- package/lib/generated-client/models/image-format.js +28 -0
- package/lib/generated-client/models/image-info.d.ts +66 -0
- package/lib/generated-client/models/image-info.js +14 -0
- package/lib/generated-client/models/image-option.d.ts +36 -0
- package/lib/generated-client/models/image-option.js +14 -0
- package/lib/generated-client/models/image-orientation.d.ts +25 -0
- package/lib/generated-client/models/image-orientation.js +31 -0
- package/lib/generated-client/models/image-provider-info.d.ts +30 -0
- package/lib/generated-client/models/image-provider-info.js +14 -0
- package/lib/generated-client/models/image-saving-convention.d.ts +19 -0
- package/lib/generated-client/models/image-saving-convention.js +25 -0
- package/lib/generated-client/models/image-type.d.ts +30 -0
- package/lib/generated-client/models/image-type.js +36 -0
- package/lib/generated-client/models/index.d.ts +284 -0
- package/lib/generated-client/models/index.js +300 -0
- package/lib/generated-client/models/installation-info.d.ts +60 -0
- package/lib/generated-client/models/installation-info.js +14 -0
- package/lib/generated-client/models/iplugin.d.ts +59 -0
- package/lib/generated-client/models/iplugin.js +14 -0
- package/lib/generated-client/models/iso-type.d.ts +19 -0
- package/lib/generated-client/models/iso-type.js +25 -0
- package/lib/generated-client/models/item-counts.d.ts +89 -0
- package/lib/generated-client/models/item-counts.js +14 -0
- package/lib/generated-client/models/item-fields.d.ts +78 -0
- package/lib/generated-client/models/item-fields.js +84 -0
- package/lib/generated-client/models/item-filter.d.ts +26 -0
- package/lib/generated-client/models/item-filter.js +32 -0
- package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/join-group-request-dto.js +14 -0
- package/lib/generated-client/models/keep-until.d.ts +21 -0
- package/lib/generated-client/models/keep-until.js +27 -0
- package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
- package/lib/generated-client/models/library-option-info-dto.js +14 -0
- package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
- package/lib/generated-client/models/library-options-result-dto.js +14 -0
- package/lib/generated-client/models/library-options.d.ts +183 -0
- package/lib/generated-client/models/library-options.js +14 -0
- package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
- package/lib/generated-client/models/library-type-options-dto.js +14 -0
- package/lib/generated-client/models/library-update-info.d.ts +59 -0
- package/lib/generated-client/models/library-update-info.js +14 -0
- package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
- package/lib/generated-client/models/listings-provider-info.js +14 -0
- package/lib/generated-client/models/live-stream-response.d.ts +24 -0
- package/lib/generated-client/models/live-stream-response.js +14 -0
- package/lib/generated-client/models/live-tv-info.d.ts +36 -0
- package/lib/generated-client/models/live-tv-info.js +14 -0
- package/lib/generated-client/models/live-tv-options.d.ts +97 -0
- package/lib/generated-client/models/live-tv-options.js +14 -0
- package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
- package/lib/generated-client/models/live-tv-service-info.js +14 -0
- package/lib/generated-client/models/live-tv-service-status.d.ts +19 -0
- package/lib/generated-client/models/live-tv-service-status.js +25 -0
- package/lib/generated-client/models/localization-option.d.ts +29 -0
- package/lib/generated-client/models/localization-option.js +14 -0
- package/lib/generated-client/models/location-type.d.ts +21 -0
- package/lib/generated-client/models/location-type.js +27 -0
- package/lib/generated-client/models/log-file.d.ts +41 -0
- package/lib/generated-client/models/log-file.js +14 -0
- package/lib/generated-client/models/log-level.d.ts +24 -0
- package/lib/generated-client/models/log-level.js +30 -0
- package/lib/generated-client/models/media-attachment.d.ts +59 -0
- package/lib/generated-client/models/media-attachment.js +14 -0
- package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-encoder-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-dto.d.ts +36 -0
- package/lib/generated-client/models/media-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-info.d.ts +29 -0
- package/lib/generated-client/models/media-path-info.js +14 -0
- package/lib/generated-client/models/media-protocol.d.ts +24 -0
- package/lib/generated-client/models/media-protocol.js +30 -0
- package/lib/generated-client/models/media-source-info.d.ts +279 -0
- package/lib/generated-client/models/media-source-info.js +14 -0
- package/lib/generated-client/models/media-source-type.d.ts +20 -0
- package/lib/generated-client/models/media-source-type.js +26 -0
- package/lib/generated-client/models/media-stream-type.d.ts +21 -0
- package/lib/generated-client/models/media-stream-type.js +27 -0
- package/lib/generated-client/models/media-stream.d.ts +367 -0
- package/lib/generated-client/models/media-stream.js +14 -0
- package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
- package/lib/generated-client/models/media-update-info-dto.js +14 -0
- package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-update-info-path-dto.js +14 -0
- package/lib/generated-client/models/media-url.d.ts +29 -0
- package/lib/generated-client/models/media-url.js +14 -0
- package/lib/generated-client/models/message-command.d.ts +35 -0
- package/lib/generated-client/models/message-command.js +14 -0
- package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
- package/lib/generated-client/models/metadata-configuration.js +14 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
- package/lib/generated-client/models/metadata-editor-info.js +14 -0
- package/lib/generated-client/models/metadata-field.d.ts +26 -0
- package/lib/generated-client/models/metadata-field.js +32 -0
- package/lib/generated-client/models/metadata-options.d.ts +59 -0
- package/lib/generated-client/models/metadata-options.js +14 -0
- package/lib/generated-client/models/metadata-refresh-mode.d.ts +21 -0
- package/lib/generated-client/models/metadata-refresh-mode.js +27 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.js +14 -0
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/movie-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/movie-info.d.ts +85 -0
- package/lib/generated-client/models/movie-info.js +14 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/music-video-info.d.ts +91 -0
- package/lib/generated-client/models/music-video-info.js +14 -0
- package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
- package/lib/generated-client/models/name-guid-pair.js +14 -0
- package/lib/generated-client/models/name-id-pair.d.ts +29 -0
- package/lib/generated-client/models/name-id-pair.js +14 -0
- package/lib/generated-client/models/name-value-pair.d.ts +29 -0
- package/lib/generated-client/models/name-value-pair.js +14 -0
- package/lib/generated-client/models/network-configuration.d.ts +221 -0
- package/lib/generated-client/models/network-configuration.js +14 -0
- package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/new-group-request-dto.js +14 -0
- package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/next-item-request-dto.js +14 -0
- package/lib/generated-client/models/notification-dto.d.ts +66 -0
- package/lib/generated-client/models/notification-dto.js +14 -0
- package/lib/generated-client/models/notification-level.d.ts +20 -0
- package/lib/generated-client/models/notification-level.js +26 -0
- package/lib/generated-client/models/notification-option.d.ts +54 -0
- package/lib/generated-client/models/notification-option.js +14 -0
- package/lib/generated-client/models/notification-options.d.ts +24 -0
- package/lib/generated-client/models/notification-options.js +14 -0
- package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
- package/lib/generated-client/models/notification-result-dto.js +14 -0
- package/lib/generated-client/models/notification-type-info.d.ts +47 -0
- package/lib/generated-client/models/notification-type-info.js +14 -0
- package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
- package/lib/generated-client/models/notifications-summary-dto.js +14 -0
- package/lib/generated-client/models/object-group-update.d.ts +36 -0
- package/lib/generated-client/models/object-group-update.js +14 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
- package/lib/generated-client/models/open-live-stream-dto.js +14 -0
- package/lib/generated-client/models/package-info.d.ts +66 -0
- package/lib/generated-client/models/package-info.js +14 -0
- package/lib/generated-client/models/parental-rating.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.js +14 -0
- package/lib/generated-client/models/path-substitution.d.ts +29 -0
- package/lib/generated-client/models/path-substitution.js +14 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
- package/lib/generated-client/models/person-lookup-info.js +14 -0
- package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
- package/lib/generated-client/models/pin-redeem-result.js +14 -0
- package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ping-request-dto.js +14 -0
- package/lib/generated-client/models/play-access.d.ts +19 -0
- package/lib/generated-client/models/play-access.js +25 -0
- package/lib/generated-client/models/play-command.d.ts +22 -0
- package/lib/generated-client/models/play-command.js +28 -0
- package/lib/generated-client/models/play-method.d.ts +20 -0
- package/lib/generated-client/models/play-method.js +26 -0
- package/lib/generated-client/models/play-request-dto.d.ts +35 -0
- package/lib/generated-client/models/play-request-dto.js +14 -0
- package/lib/generated-client/models/play-request.d.ts +66 -0
- package/lib/generated-client/models/play-request.js +14 -0
- package/lib/generated-client/models/playback-error-code.d.ts +20 -0
- package/lib/generated-client/models/playback-error-code.js +26 -0
- package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
- package/lib/generated-client/models/playback-info-dto.js +14 -0
- package/lib/generated-client/models/playback-info-response.d.ts +37 -0
- package/lib/generated-client/models/playback-info-response.js +14 -0
- package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
- package/lib/generated-client/models/playback-progress-info.js +14 -0
- package/lib/generated-client/models/playback-start-info.d.ts +141 -0
- package/lib/generated-client/models/playback-start-info.js +14 -0
- package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
- package/lib/generated-client/models/playback-stop-info.js +14 -0
- package/lib/generated-client/models/player-state-info.d.ts +85 -0
- package/lib/generated-client/models/player-state-info.js +14 -0
- package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
- package/lib/generated-client/models/playlist-creation-result.js +14 -0
- package/lib/generated-client/models/playstate-command.d.ts +26 -0
- package/lib/generated-client/models/playstate-command.js +32 -0
- package/lib/generated-client/models/playstate-request.d.ts +36 -0
- package/lib/generated-client/models/playstate-request.js +14 -0
- package/lib/generated-client/models/plugin-info.d.ts +66 -0
- package/lib/generated-client/models/plugin-info.js +14 -0
- package/lib/generated-client/models/plugin-status.d.ts +24 -0
- package/lib/generated-client/models/plugin-status.js +30 -0
- package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/previous-item-request-dto.js +14 -0
- package/lib/generated-client/models/problem-details.d.ts +48 -0
- package/lib/generated-client/models/problem-details.js +14 -0
- package/lib/generated-client/models/profile-condition-type.d.ts +22 -0
- package/lib/generated-client/models/profile-condition-type.js +28 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +41 -0
- package/lib/generated-client/models/profile-condition-value.js +47 -0
- package/lib/generated-client/models/profile-condition.d.ts +43 -0
- package/lib/generated-client/models/profile-condition.js +14 -0
- package/lib/generated-client/models/program-audio.d.ts +23 -0
- package/lib/generated-client/models/program-audio.js +29 -0
- package/lib/generated-client/models/public-system-info.d.ts +59 -0
- package/lib/generated-client/models/public-system-info.js +14 -0
- package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
- package/lib/generated-client/models/query-filters-legacy.js +14 -0
- package/lib/generated-client/models/query-filters.d.ts +30 -0
- package/lib/generated-client/models/query-filters.js +14 -0
- package/lib/generated-client/models/queue-item.d.ts +29 -0
- package/lib/generated-client/models/queue-item.js +14 -0
- package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
- package/lib/generated-client/models/queue-request-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
- package/lib/generated-client/models/quick-connect-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
- package/lib/generated-client/models/quick-connect-result.js +14 -0
- package/lib/generated-client/models/rating-type.d.ts +19 -0
- package/lib/generated-client/models/rating-type.js +25 -0
- package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
- package/lib/generated-client/models/ready-request-dto.js +14 -0
- package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
- package/lib/generated-client/models/recommendation-dto.js +14 -0
- package/lib/generated-client/models/recommendation-type.d.ts +23 -0
- package/lib/generated-client/models/recommendation-type.js +29 -0
- package/lib/generated-client/models/recording-status.d.ts +24 -0
- package/lib/generated-client/models/recording-status.js +30 -0
- package/lib/generated-client/models/remote-image-info.d.ts +79 -0
- package/lib/generated-client/models/remote-image-info.js +14 -0
- package/lib/generated-client/models/remote-image-result.d.ts +36 -0
- package/lib/generated-client/models/remote-image-result.js +14 -0
- package/lib/generated-client/models/remote-search-result.d.ts +91 -0
- package/lib/generated-client/models/remote-search-result.js +14 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
- package/lib/generated-client/models/remote-subtitle-info.js +14 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.js +14 -0
- package/lib/generated-client/models/repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/repeat-mode.js +26 -0
- package/lib/generated-client/models/repository-info.d.ts +35 -0
- package/lib/generated-client/models/repository-info.js +14 -0
- package/lib/generated-client/models/response-profile.d.ts +61 -0
- package/lib/generated-client/models/response-profile.js +14 -0
- package/lib/generated-client/models/scroll-direction.d.ts +19 -0
- package/lib/generated-client/models/scroll-direction.js +25 -0
- package/lib/generated-client/models/search-hint-result.d.ts +30 -0
- package/lib/generated-client/models/search-hint-result.js +14 -0
- package/lib/generated-client/models/search-hint.d.ts +191 -0
- package/lib/generated-client/models/search-hint.js +14 -0
- package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
- package/lib/generated-client/models/seek-request-dto.js +14 -0
- package/lib/generated-client/models/send-command-type.d.ts +21 -0
- package/lib/generated-client/models/send-command-type.js +27 -0
- package/lib/generated-client/models/send-command.d.ts +54 -0
- package/lib/generated-client/models/send-command.js +14 -0
- package/lib/generated-client/models/send-to-user-type.d.ts +20 -0
- package/lib/generated-client/models/send-to-user-type.js +26 -0
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/series-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/series-info.d.ts +85 -0
- package/lib/generated-client/models/series-info.js +14 -0
- package/lib/generated-client/models/series-status.d.ts +19 -0
- package/lib/generated-client/models/series-status.js +25 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.js +14 -0
- package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
- package/lib/generated-client/models/series-timer-info-dto.js +14 -0
- package/lib/generated-client/models/server-configuration.d.ts +310 -0
- package/lib/generated-client/models/server-configuration.js +14 -0
- package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
- package/lib/generated-client/models/server-discovery-info.js +14 -0
- package/lib/generated-client/models/session-info.d.ts +199 -0
- package/lib/generated-client/models/session-info.js +14 -0
- package/lib/generated-client/models/session-message-type.d.ts +51 -0
- package/lib/generated-client/models/session-message-type.js +57 -0
- package/lib/generated-client/models/session-user-info.d.ts +29 -0
- package/lib/generated-client/models/session-user-info.js +14 -0
- package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
- package/lib/generated-client/models/set-channel-mapping-dto.js +14 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.js +14 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.js +14 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.js +14 -0
- package/lib/generated-client/models/song-info.d.ts +103 -0
- package/lib/generated-client/models/song-info.js +14 -0
- package/lib/generated-client/models/sort-order.d.ts +19 -0
- package/lib/generated-client/models/sort-order.js +25 -0
- package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
- package/lib/generated-client/models/special-view-option-dto.js +14 -0
- package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
- package/lib/generated-client/models/startup-configuration-dto.js +14 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-remote-access-dto.js +14 -0
- package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-user-dto.js +14 -0
- package/lib/generated-client/models/subtitle-delivery-method.d.ts +22 -0
- package/lib/generated-client/models/subtitle-delivery-method.js +28 -0
- package/lib/generated-client/models/subtitle-options.d.ts +71 -0
- package/lib/generated-client/models/subtitle-options.js +14 -0
- package/lib/generated-client/models/subtitle-playback-mode.d.ts +22 -0
- package/lib/generated-client/models/subtitle-playback-mode.js +28 -0
- package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
- package/lib/generated-client/models/subtitle-profile.js +14 -0
- package/lib/generated-client/models/sync-play-user-access-type.d.ts +20 -0
- package/lib/generated-client/models/sync-play-user-access-type.js +26 -0
- package/lib/generated-client/models/system-info.d.ts +177 -0
- package/lib/generated-client/models/system-info.js +14 -0
- package/lib/generated-client/models/task-completion-status.d.ts +21 -0
- package/lib/generated-client/models/task-completion-status.js +27 -0
- package/lib/generated-client/models/task-info.d.ts +80 -0
- package/lib/generated-client/models/task-info.js +14 -0
- package/lib/generated-client/models/task-result.d.ts +66 -0
- package/lib/generated-client/models/task-result.js +14 -0
- package/lib/generated-client/models/task-state.d.ts +20 -0
- package/lib/generated-client/models/task-state.js +26 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
- package/lib/generated-client/models/task-trigger-info.js +14 -0
- package/lib/generated-client/models/theme-media-result.d.ts +42 -0
- package/lib/generated-client/models/theme-media-result.js +14 -0
- package/lib/generated-client/models/timer-event-info.d.ts +29 -0
- package/lib/generated-client/models/timer-event-info.js +14 -0
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/timer-info-dto-query-result.js +14 -0
- package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
- package/lib/generated-client/models/timer-info-dto.js +14 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.js +14 -0
- package/lib/generated-client/models/trailer-info.d.ts +85 -0
- package/lib/generated-client/models/trailer-info.js +14 -0
- package/lib/generated-client/models/transcode-seek-info.d.ts +19 -0
- package/lib/generated-client/models/transcode-seek-info.js +25 -0
- package/lib/generated-client/models/transcoding-info.d.ts +127 -0
- package/lib/generated-client/models/transcoding-info.js +47 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
- package/lib/generated-client/models/transcoding-profile.js +14 -0
- package/lib/generated-client/models/transport-stream-timestamp.d.ts +20 -0
- package/lib/generated-client/models/transport-stream-timestamp.js +26 -0
- package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
- package/lib/generated-client/models/tuner-channel-mapping.js +14 -0
- package/lib/generated-client/models/tuner-host-info.d.ts +83 -0
- package/lib/generated-client/models/tuner-host-info.js +14 -0
- package/lib/generated-client/models/type-options.d.ts +54 -0
- package/lib/generated-client/models/type-options.js +14 -0
- package/lib/generated-client/models/unrated-item.d.ts +26 -0
- package/lib/generated-client/models/unrated-item.js +32 -0
- package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
- package/lib/generated-client/models/update-library-options-dto.js +14 -0
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
- package/lib/generated-client/models/update-media-path-request-dto.js +14 -0
- package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
- package/lib/generated-client/models/update-user-easy-password.js +14 -0
- package/lib/generated-client/models/update-user-password.d.ts +41 -0
- package/lib/generated-client/models/update-user-password.js +14 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
- package/lib/generated-client/models/upload-subtitle-dto.js +14 -0
- package/lib/generated-client/models/user-configuration.d.ts +108 -0
- package/lib/generated-client/models/user-configuration.js +14 -0
- package/lib/generated-client/models/user-dto.d.ts +103 -0
- package/lib/generated-client/models/user-dto.js +14 -0
- package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/user-item-data-dto.js +14 -0
- package/lib/generated-client/models/user-policy.d.ts +254 -0
- package/lib/generated-client/models/user-policy.js +14 -0
- package/lib/generated-client/models/utc-time-response.d.ts +29 -0
- package/lib/generated-client/models/utc-time-response.js +14 -0
- package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
- package/lib/generated-client/models/validate-path-dto.js +14 -0
- package/lib/generated-client/models/version-info.d.ts +71 -0
- package/lib/generated-client/models/version-info.js +14 -0
- package/lib/generated-client/models/video-type.d.ts +21 -0
- package/lib/generated-client/models/video-type.js +27 -0
- package/lib/generated-client/models/video3-dformat.d.ts +22 -0
- package/lib/generated-client/models/video3-dformat.js +28 -0
- package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
- package/lib/generated-client/models/virtual-folder-info.js +14 -0
- package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
- package/lib/generated-client/models/wake-on-lan-info.js +14 -0
- package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
- package/lib/generated-client/models/xbmc-metadata-options.js +14 -0
- package/lib/generated-client/models/xml-attribute.d.ts +29 -0
- package/lib/generated-client/models/xml-attribute.js +14 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +39 -0
- package/lib/jellyfin.d.ts +33 -0
- package/lib/jellyfin.js +34 -0
- package/lib/models/api/image-request-parameters.d.ts +29 -0
- package/lib/models/api/image-request-parameters.js +7 -0
- package/lib/models/api/index.d.ts +7 -0
- package/lib/models/api/index.js +23 -0
- package/lib/models/api/item-sort-by.d.ts +40 -0
- package/lib/models/api/item-sort-by.js +44 -0
- package/lib/models/client-info.d.ts +12 -0
- package/lib/models/client-info.js +7 -0
- package/lib/models/device-info.d.ts +12 -0
- package/lib/models/device-info.js +7 -0
- package/lib/models/index.d.ts +9 -0
- package/lib/models/index.js +25 -0
- package/lib/models/recommended-server-info.d.ts +22 -0
- package/lib/models/recommended-server-info.js +16 -0
- package/lib/models/recommended-server-issue.d.ts +48 -0
- package/lib/models/recommended-server-issue.js +103 -0
- package/lib/utils/address-candidates.d.ts +16 -0
- package/lib/utils/address-candidates.js +85 -0
- package/lib/utils/api/activity-log-api.d.ts +8 -0
- package/lib/utils/api/activity-log-api.js +13 -0
- package/lib/utils/api/api-key-api.d.ts +8 -0
- package/lib/utils/api/api-key-api.js +13 -0
- package/lib/utils/api/artists-api.d.ts +8 -0
- package/lib/utils/api/artists-api.js +13 -0
- package/lib/utils/api/audio-api.d.ts +8 -0
- package/lib/utils/api/audio-api.js +13 -0
- package/lib/utils/api/branding-api.d.ts +8 -0
- package/lib/utils/api/branding-api.js +13 -0
- package/lib/utils/api/channels-api.d.ts +8 -0
- package/lib/utils/api/channels-api.js +13 -0
- package/lib/utils/api/client-log-api.d.ts +8 -0
- package/lib/utils/api/client-log-api.js +13 -0
- package/lib/utils/api/collection-api.d.ts +8 -0
- package/lib/utils/api/collection-api.js +13 -0
- package/lib/utils/api/configuration-api.d.ts +8 -0
- package/lib/utils/api/configuration-api.js +13 -0
- package/lib/utils/api/dashboard-api.d.ts +8 -0
- package/lib/utils/api/dashboard-api.js +13 -0
- package/lib/utils/api/devices-api.d.ts +8 -0
- package/lib/utils/api/devices-api.js +13 -0
- package/lib/utils/api/display-preferences-api.d.ts +8 -0
- package/lib/utils/api/display-preferences-api.js +13 -0
- package/lib/utils/api/dlna-api.d.ts +8 -0
- package/lib/utils/api/dlna-api.js +13 -0
- package/lib/utils/api/dlna-server-api.d.ts +8 -0
- package/lib/utils/api/dlna-server-api.js +13 -0
- package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
- package/lib/utils/api/dynamic-hls-api.js +13 -0
- package/lib/utils/api/environment-api.d.ts +8 -0
- package/lib/utils/api/environment-api.js +13 -0
- package/lib/utils/api/filter-api.d.ts +8 -0
- package/lib/utils/api/filter-api.js +13 -0
- package/lib/utils/api/genres-api.d.ts +8 -0
- package/lib/utils/api/genres-api.js +13 -0
- package/lib/utils/api/hls-segment-api.d.ts +8 -0
- package/lib/utils/api/hls-segment-api.js +13 -0
- package/lib/utils/api/image-api.d.ts +8 -0
- package/lib/utils/api/image-api.js +13 -0
- package/lib/utils/api/image-by-name-api.d.ts +8 -0
- package/lib/utils/api/image-by-name-api.js +13 -0
- package/lib/utils/api/instant-mix-api.d.ts +8 -0
- package/lib/utils/api/instant-mix-api.js +13 -0
- package/lib/utils/api/item-lookup-api.d.ts +8 -0
- package/lib/utils/api/item-lookup-api.js +13 -0
- package/lib/utils/api/item-refresh-api.d.ts +8 -0
- package/lib/utils/api/item-refresh-api.js +13 -0
- package/lib/utils/api/item-update-api.d.ts +8 -0
- package/lib/utils/api/item-update-api.js +13 -0
- package/lib/utils/api/items-api.d.ts +8 -0
- package/lib/utils/api/items-api.js +13 -0
- package/lib/utils/api/library-api.d.ts +8 -0
- package/lib/utils/api/library-api.js +13 -0
- package/lib/utils/api/library-structure-api.d.ts +8 -0
- package/lib/utils/api/library-structure-api.js +13 -0
- package/lib/utils/api/live-tv-api.d.ts +8 -0
- package/lib/utils/api/live-tv-api.js +13 -0
- package/lib/utils/api/localization-api.d.ts +8 -0
- package/lib/utils/api/localization-api.js +13 -0
- package/lib/utils/api/media-info-api.d.ts +8 -0
- package/lib/utils/api/media-info-api.js +13 -0
- package/lib/utils/api/movies-api.d.ts +8 -0
- package/lib/utils/api/movies-api.js +13 -0
- package/lib/utils/api/music-genres-api.d.ts +8 -0
- package/lib/utils/api/music-genres-api.js +13 -0
- package/lib/utils/api/notifications-api.d.ts +8 -0
- package/lib/utils/api/notifications-api.js +13 -0
- package/lib/utils/api/package-api.d.ts +8 -0
- package/lib/utils/api/package-api.js +13 -0
- package/lib/utils/api/persons-api.d.ts +8 -0
- package/lib/utils/api/persons-api.js +13 -0
- package/lib/utils/api/playlists-api.d.ts +8 -0
- package/lib/utils/api/playlists-api.js +13 -0
- package/lib/utils/api/playstate-api.d.ts +8 -0
- package/lib/utils/api/playstate-api.js +13 -0
- package/lib/utils/api/plugins-api.d.ts +8 -0
- package/lib/utils/api/plugins-api.js +13 -0
- package/lib/utils/api/quick-connect-api.d.ts +8 -0
- package/lib/utils/api/quick-connect-api.js +13 -0
- package/lib/utils/api/remote-image-api.d.ts +8 -0
- package/lib/utils/api/remote-image-api.js +13 -0
- package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
- package/lib/utils/api/scheduled-tasks-api.js +13 -0
- package/lib/utils/api/search-api.d.ts +8 -0
- package/lib/utils/api/search-api.js +13 -0
- package/lib/utils/api/session-api.d.ts +8 -0
- package/lib/utils/api/session-api.js +13 -0
- package/lib/utils/api/startup-api.d.ts +8 -0
- package/lib/utils/api/startup-api.js +13 -0
- package/lib/utils/api/studios-api.d.ts +8 -0
- package/lib/utils/api/studios-api.js +13 -0
- package/lib/utils/api/subtitle-api.d.ts +8 -0
- package/lib/utils/api/subtitle-api.js +13 -0
- package/lib/utils/api/suggestions-api.d.ts +8 -0
- package/lib/utils/api/suggestions-api.js +13 -0
- package/lib/utils/api/sync-play-api.d.ts +8 -0
- package/lib/utils/api/sync-play-api.js +13 -0
- package/lib/utils/api/system-api.d.ts +8 -0
- package/lib/utils/api/system-api.js +13 -0
- package/lib/utils/api/time-sync-api.d.ts +8 -0
- package/lib/utils/api/time-sync-api.js +13 -0
- package/lib/utils/api/tmdb-api.d.ts +8 -0
- package/lib/utils/api/tmdb-api.js +13 -0
- package/lib/utils/api/trailers-api.d.ts +8 -0
- package/lib/utils/api/trailers-api.js +13 -0
- package/lib/utils/api/tv-shows-api.d.ts +8 -0
- package/lib/utils/api/tv-shows-api.js +13 -0
- package/lib/utils/api/universal-audio-api.d.ts +8 -0
- package/lib/utils/api/universal-audio-api.js +13 -0
- package/lib/utils/api/user-api.d.ts +8 -0
- package/lib/utils/api/user-api.js +13 -0
- package/lib/utils/api/user-library-api.d.ts +8 -0
- package/lib/utils/api/user-library-api.js +13 -0
- package/lib/utils/api/user-views-api.d.ts +8 -0
- package/lib/utils/api/user-views-api.js +13 -0
- package/lib/utils/api/video-attachments-api.d.ts +8 -0
- package/lib/utils/api/video-attachments-api.js +13 -0
- package/lib/utils/api/videos-api.d.ts +8 -0
- package/lib/utils/api/videos-api.js +13 -0
- package/lib/utils/api/years-api.d.ts +8 -0
- package/lib/utils/api/years-api.js +13 -0
- package/lib/utils/authentication.d.ts +10 -0
- package/lib/utils/authentication.js +18 -0
- package/lib/utils/browser-profiles.d.ts +25 -0
- package/lib/utils/browser-profiles.js +44 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/normalize-url.d.ts +20 -0
- package/lib/utils/normalize-url.js +96 -0
- package/lib/utils/url.d.ts +31 -0
- package/lib/utils/url.js +54 -0
- package/openapi-templates/licenseInfo.mustache +10 -0
- package/package.json +46 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,1582 @@
|
|
|
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.AudioApi = exports.AudioApiFactory = exports.AudioApiFp = exports.AudioApiAxiosParamCreator = 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
|
+
* AudioApi - axios parameter creator
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
var AudioApiAxiosParamCreator = function (configuration) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Gets an audio stream.
|
|
97
|
+
* @param {string} itemId The item id.
|
|
98
|
+
* @param {string} [container] The audio container.
|
|
99
|
+
* @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.
|
|
100
|
+
* @param {string} [params] The streaming parameters.
|
|
101
|
+
* @param {string} [tag] The tag.
|
|
102
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
103
|
+
* @param {string} [playSessionId] The play session id.
|
|
104
|
+
* @param {string} [segmentContainer] The segment container.
|
|
105
|
+
* @param {number} [segmentLength] The segment length.
|
|
106
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
107
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
108
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
109
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
110
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
111
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
112
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
113
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
114
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
115
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
116
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
117
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
118
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
119
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
120
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
121
|
+
* @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.
|
|
122
|
+
* @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.
|
|
123
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
124
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
125
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
126
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
127
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
128
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
129
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
130
|
+
* @param {number} [maxRefFrames] Optional.
|
|
131
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
132
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
133
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
134
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
135
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
136
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
137
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
138
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
139
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
140
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
141
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
142
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
143
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
144
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
145
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
getAudioStream: 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, options) {
|
|
150
|
+
if (options === void 0) { options = {}; }
|
|
151
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
152
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
153
|
+
return __generator(this, function (_a) {
|
|
154
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
155
|
+
(0, common_1.assertParamExists)('getAudioStream', 'itemId', itemId);
|
|
156
|
+
localVarPath = "/Audio/{itemId}/stream"
|
|
157
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
158
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
159
|
+
if (configuration) {
|
|
160
|
+
baseOptions = configuration.baseOptions;
|
|
161
|
+
}
|
|
162
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
163
|
+
localVarHeaderParameter = {};
|
|
164
|
+
localVarQueryParameter = {};
|
|
165
|
+
if (container !== undefined) {
|
|
166
|
+
localVarQueryParameter['container'] = container;
|
|
167
|
+
}
|
|
168
|
+
if (_static !== undefined) {
|
|
169
|
+
localVarQueryParameter['static'] = _static;
|
|
170
|
+
}
|
|
171
|
+
if (params !== undefined) {
|
|
172
|
+
localVarQueryParameter['params'] = params;
|
|
173
|
+
}
|
|
174
|
+
if (tag !== undefined) {
|
|
175
|
+
localVarQueryParameter['tag'] = tag;
|
|
176
|
+
}
|
|
177
|
+
if (deviceProfileId !== undefined) {
|
|
178
|
+
localVarQueryParameter['deviceProfileId'] = deviceProfileId;
|
|
179
|
+
}
|
|
180
|
+
if (playSessionId !== undefined) {
|
|
181
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
182
|
+
}
|
|
183
|
+
if (segmentContainer !== undefined) {
|
|
184
|
+
localVarQueryParameter['segmentContainer'] = segmentContainer;
|
|
185
|
+
}
|
|
186
|
+
if (segmentLength !== undefined) {
|
|
187
|
+
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
188
|
+
}
|
|
189
|
+
if (minSegments !== undefined) {
|
|
190
|
+
localVarQueryParameter['minSegments'] = minSegments;
|
|
191
|
+
}
|
|
192
|
+
if (mediaSourceId !== undefined) {
|
|
193
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
194
|
+
}
|
|
195
|
+
if (deviceId !== undefined) {
|
|
196
|
+
localVarQueryParameter['deviceId'] = deviceId;
|
|
197
|
+
}
|
|
198
|
+
if (audioCodec !== undefined) {
|
|
199
|
+
localVarQueryParameter['audioCodec'] = audioCodec;
|
|
200
|
+
}
|
|
201
|
+
if (enableAutoStreamCopy !== undefined) {
|
|
202
|
+
localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
|
|
203
|
+
}
|
|
204
|
+
if (allowVideoStreamCopy !== undefined) {
|
|
205
|
+
localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
|
|
206
|
+
}
|
|
207
|
+
if (allowAudioStreamCopy !== undefined) {
|
|
208
|
+
localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
|
|
209
|
+
}
|
|
210
|
+
if (breakOnNonKeyFrames !== undefined) {
|
|
211
|
+
localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
|
|
212
|
+
}
|
|
213
|
+
if (audioSampleRate !== undefined) {
|
|
214
|
+
localVarQueryParameter['audioSampleRate'] = audioSampleRate;
|
|
215
|
+
}
|
|
216
|
+
if (maxAudioBitDepth !== undefined) {
|
|
217
|
+
localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
|
|
218
|
+
}
|
|
219
|
+
if (audioBitRate !== undefined) {
|
|
220
|
+
localVarQueryParameter['audioBitRate'] = audioBitRate;
|
|
221
|
+
}
|
|
222
|
+
if (audioChannels !== undefined) {
|
|
223
|
+
localVarQueryParameter['audioChannels'] = audioChannels;
|
|
224
|
+
}
|
|
225
|
+
if (maxAudioChannels !== undefined) {
|
|
226
|
+
localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
|
|
227
|
+
}
|
|
228
|
+
if (profile !== undefined) {
|
|
229
|
+
localVarQueryParameter['profile'] = profile;
|
|
230
|
+
}
|
|
231
|
+
if (level !== undefined) {
|
|
232
|
+
localVarQueryParameter['level'] = level;
|
|
233
|
+
}
|
|
234
|
+
if (framerate !== undefined) {
|
|
235
|
+
localVarQueryParameter['framerate'] = framerate;
|
|
236
|
+
}
|
|
237
|
+
if (maxFramerate !== undefined) {
|
|
238
|
+
localVarQueryParameter['maxFramerate'] = maxFramerate;
|
|
239
|
+
}
|
|
240
|
+
if (copyTimestamps !== undefined) {
|
|
241
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
242
|
+
}
|
|
243
|
+
if (startTimeTicks !== undefined) {
|
|
244
|
+
localVarQueryParameter['startTimeTicks'] = startTimeTicks;
|
|
245
|
+
}
|
|
246
|
+
if (width !== undefined) {
|
|
247
|
+
localVarQueryParameter['width'] = width;
|
|
248
|
+
}
|
|
249
|
+
if (height !== undefined) {
|
|
250
|
+
localVarQueryParameter['height'] = height;
|
|
251
|
+
}
|
|
252
|
+
if (videoBitRate !== undefined) {
|
|
253
|
+
localVarQueryParameter['videoBitRate'] = videoBitRate;
|
|
254
|
+
}
|
|
255
|
+
if (subtitleStreamIndex !== undefined) {
|
|
256
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
257
|
+
}
|
|
258
|
+
if (subtitleMethod !== undefined) {
|
|
259
|
+
localVarQueryParameter['subtitleMethod'] = subtitleMethod;
|
|
260
|
+
}
|
|
261
|
+
if (maxRefFrames !== undefined) {
|
|
262
|
+
localVarQueryParameter['maxRefFrames'] = maxRefFrames;
|
|
263
|
+
}
|
|
264
|
+
if (maxVideoBitDepth !== undefined) {
|
|
265
|
+
localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
|
|
266
|
+
}
|
|
267
|
+
if (requireAvc !== undefined) {
|
|
268
|
+
localVarQueryParameter['requireAvc'] = requireAvc;
|
|
269
|
+
}
|
|
270
|
+
if (deInterlace !== undefined) {
|
|
271
|
+
localVarQueryParameter['deInterlace'] = deInterlace;
|
|
272
|
+
}
|
|
273
|
+
if (requireNonAnamorphic !== undefined) {
|
|
274
|
+
localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
|
|
275
|
+
}
|
|
276
|
+
if (transcodingMaxAudioChannels !== undefined) {
|
|
277
|
+
localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
|
|
278
|
+
}
|
|
279
|
+
if (cpuCoreLimit !== undefined) {
|
|
280
|
+
localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
|
|
281
|
+
}
|
|
282
|
+
if (liveStreamId !== undefined) {
|
|
283
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
284
|
+
}
|
|
285
|
+
if (enableMpegtsM2TsMode !== undefined) {
|
|
286
|
+
localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
|
|
287
|
+
}
|
|
288
|
+
if (videoCodec !== undefined) {
|
|
289
|
+
localVarQueryParameter['videoCodec'] = videoCodec;
|
|
290
|
+
}
|
|
291
|
+
if (subtitleCodec !== undefined) {
|
|
292
|
+
localVarQueryParameter['subtitleCodec'] = subtitleCodec;
|
|
293
|
+
}
|
|
294
|
+
if (transcodeReasons !== undefined) {
|
|
295
|
+
localVarQueryParameter['transcodeReasons'] = transcodeReasons;
|
|
296
|
+
}
|
|
297
|
+
if (audioStreamIndex !== undefined) {
|
|
298
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
299
|
+
}
|
|
300
|
+
if (videoStreamIndex !== undefined) {
|
|
301
|
+
localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
|
|
302
|
+
}
|
|
303
|
+
if (context !== undefined) {
|
|
304
|
+
localVarQueryParameter['context'] = context;
|
|
305
|
+
}
|
|
306
|
+
if (streamOptions !== undefined) {
|
|
307
|
+
localVarQueryParameter['streamOptions'] = streamOptions;
|
|
308
|
+
}
|
|
309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
310
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
+
return [2 /*return*/, {
|
|
313
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
314
|
+
options: localVarRequestOptions,
|
|
315
|
+
}];
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @summary Gets an audio stream.
|
|
322
|
+
* @param {string} itemId The item id.
|
|
323
|
+
* @param {string} container The audio container.
|
|
324
|
+
* @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.
|
|
325
|
+
* @param {string} [params] The streaming parameters.
|
|
326
|
+
* @param {string} [tag] The tag.
|
|
327
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
328
|
+
* @param {string} [playSessionId] The play session id.
|
|
329
|
+
* @param {string} [segmentContainer] The segment container.
|
|
330
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
331
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
332
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
333
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
334
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
335
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
336
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
337
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
338
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
339
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
340
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
341
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
342
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
343
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
344
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
345
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
346
|
+
* @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.
|
|
347
|
+
* @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.
|
|
348
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
349
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
350
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
351
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
352
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
353
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
354
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
355
|
+
* @param {number} [maxRefFrames] Optional.
|
|
356
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
357
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
358
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
359
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
360
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
361
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
362
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
363
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
364
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
365
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
366
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
367
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
368
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
369
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
370
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
getAudioStreamByContainer: 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, options) {
|
|
375
|
+
if (options === void 0) { options = {}; }
|
|
376
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
378
|
+
return __generator(this, function (_a) {
|
|
379
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
380
|
+
(0, common_1.assertParamExists)('getAudioStreamByContainer', 'itemId', itemId);
|
|
381
|
+
// verify required parameter 'container' is not null or undefined
|
|
382
|
+
(0, common_1.assertParamExists)('getAudioStreamByContainer', 'container', container);
|
|
383
|
+
localVarPath = "/Audio/{itemId}/stream.{container}"
|
|
384
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
385
|
+
.replace("{".concat("container", "}"), encodeURIComponent(String(container)));
|
|
386
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
387
|
+
if (configuration) {
|
|
388
|
+
baseOptions = configuration.baseOptions;
|
|
389
|
+
}
|
|
390
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
391
|
+
localVarHeaderParameter = {};
|
|
392
|
+
localVarQueryParameter = {};
|
|
393
|
+
if (_static !== undefined) {
|
|
394
|
+
localVarQueryParameter['static'] = _static;
|
|
395
|
+
}
|
|
396
|
+
if (params !== undefined) {
|
|
397
|
+
localVarQueryParameter['params'] = params;
|
|
398
|
+
}
|
|
399
|
+
if (tag !== undefined) {
|
|
400
|
+
localVarQueryParameter['tag'] = tag;
|
|
401
|
+
}
|
|
402
|
+
if (deviceProfileId !== undefined) {
|
|
403
|
+
localVarQueryParameter['deviceProfileId'] = deviceProfileId;
|
|
404
|
+
}
|
|
405
|
+
if (playSessionId !== undefined) {
|
|
406
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
407
|
+
}
|
|
408
|
+
if (segmentContainer !== undefined) {
|
|
409
|
+
localVarQueryParameter['segmentContainer'] = segmentContainer;
|
|
410
|
+
}
|
|
411
|
+
if (segmentLength !== undefined) {
|
|
412
|
+
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
413
|
+
}
|
|
414
|
+
if (minSegments !== undefined) {
|
|
415
|
+
localVarQueryParameter['minSegments'] = minSegments;
|
|
416
|
+
}
|
|
417
|
+
if (mediaSourceId !== undefined) {
|
|
418
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
419
|
+
}
|
|
420
|
+
if (deviceId !== undefined) {
|
|
421
|
+
localVarQueryParameter['deviceId'] = deviceId;
|
|
422
|
+
}
|
|
423
|
+
if (audioCodec !== undefined) {
|
|
424
|
+
localVarQueryParameter['audioCodec'] = audioCodec;
|
|
425
|
+
}
|
|
426
|
+
if (enableAutoStreamCopy !== undefined) {
|
|
427
|
+
localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
|
|
428
|
+
}
|
|
429
|
+
if (allowVideoStreamCopy !== undefined) {
|
|
430
|
+
localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
|
|
431
|
+
}
|
|
432
|
+
if (allowAudioStreamCopy !== undefined) {
|
|
433
|
+
localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
|
|
434
|
+
}
|
|
435
|
+
if (breakOnNonKeyFrames !== undefined) {
|
|
436
|
+
localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
|
|
437
|
+
}
|
|
438
|
+
if (audioSampleRate !== undefined) {
|
|
439
|
+
localVarQueryParameter['audioSampleRate'] = audioSampleRate;
|
|
440
|
+
}
|
|
441
|
+
if (maxAudioBitDepth !== undefined) {
|
|
442
|
+
localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
|
|
443
|
+
}
|
|
444
|
+
if (audioBitRate !== undefined) {
|
|
445
|
+
localVarQueryParameter['audioBitRate'] = audioBitRate;
|
|
446
|
+
}
|
|
447
|
+
if (audioChannels !== undefined) {
|
|
448
|
+
localVarQueryParameter['audioChannels'] = audioChannels;
|
|
449
|
+
}
|
|
450
|
+
if (maxAudioChannels !== undefined) {
|
|
451
|
+
localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
|
|
452
|
+
}
|
|
453
|
+
if (profile !== undefined) {
|
|
454
|
+
localVarQueryParameter['profile'] = profile;
|
|
455
|
+
}
|
|
456
|
+
if (level !== undefined) {
|
|
457
|
+
localVarQueryParameter['level'] = level;
|
|
458
|
+
}
|
|
459
|
+
if (framerate !== undefined) {
|
|
460
|
+
localVarQueryParameter['framerate'] = framerate;
|
|
461
|
+
}
|
|
462
|
+
if (maxFramerate !== undefined) {
|
|
463
|
+
localVarQueryParameter['maxFramerate'] = maxFramerate;
|
|
464
|
+
}
|
|
465
|
+
if (copyTimestamps !== undefined) {
|
|
466
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
467
|
+
}
|
|
468
|
+
if (startTimeTicks !== undefined) {
|
|
469
|
+
localVarQueryParameter['startTimeTicks'] = startTimeTicks;
|
|
470
|
+
}
|
|
471
|
+
if (width !== undefined) {
|
|
472
|
+
localVarQueryParameter['width'] = width;
|
|
473
|
+
}
|
|
474
|
+
if (height !== undefined) {
|
|
475
|
+
localVarQueryParameter['height'] = height;
|
|
476
|
+
}
|
|
477
|
+
if (videoBitRate !== undefined) {
|
|
478
|
+
localVarQueryParameter['videoBitRate'] = videoBitRate;
|
|
479
|
+
}
|
|
480
|
+
if (subtitleStreamIndex !== undefined) {
|
|
481
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
482
|
+
}
|
|
483
|
+
if (subtitleMethod !== undefined) {
|
|
484
|
+
localVarQueryParameter['subtitleMethod'] = subtitleMethod;
|
|
485
|
+
}
|
|
486
|
+
if (maxRefFrames !== undefined) {
|
|
487
|
+
localVarQueryParameter['maxRefFrames'] = maxRefFrames;
|
|
488
|
+
}
|
|
489
|
+
if (maxVideoBitDepth !== undefined) {
|
|
490
|
+
localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
|
|
491
|
+
}
|
|
492
|
+
if (requireAvc !== undefined) {
|
|
493
|
+
localVarQueryParameter['requireAvc'] = requireAvc;
|
|
494
|
+
}
|
|
495
|
+
if (deInterlace !== undefined) {
|
|
496
|
+
localVarQueryParameter['deInterlace'] = deInterlace;
|
|
497
|
+
}
|
|
498
|
+
if (requireNonAnamorphic !== undefined) {
|
|
499
|
+
localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
|
|
500
|
+
}
|
|
501
|
+
if (transcodingMaxAudioChannels !== undefined) {
|
|
502
|
+
localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
|
|
503
|
+
}
|
|
504
|
+
if (cpuCoreLimit !== undefined) {
|
|
505
|
+
localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
|
|
506
|
+
}
|
|
507
|
+
if (liveStreamId !== undefined) {
|
|
508
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
509
|
+
}
|
|
510
|
+
if (enableMpegtsM2TsMode !== undefined) {
|
|
511
|
+
localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
|
|
512
|
+
}
|
|
513
|
+
if (videoCodec !== undefined) {
|
|
514
|
+
localVarQueryParameter['videoCodec'] = videoCodec;
|
|
515
|
+
}
|
|
516
|
+
if (subtitleCodec !== undefined) {
|
|
517
|
+
localVarQueryParameter['subtitleCodec'] = subtitleCodec;
|
|
518
|
+
}
|
|
519
|
+
if (transcodeReasons !== undefined) {
|
|
520
|
+
localVarQueryParameter['transcodeReasons'] = transcodeReasons;
|
|
521
|
+
}
|
|
522
|
+
if (audioStreamIndex !== undefined) {
|
|
523
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
524
|
+
}
|
|
525
|
+
if (videoStreamIndex !== undefined) {
|
|
526
|
+
localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
|
|
527
|
+
}
|
|
528
|
+
if (context !== undefined) {
|
|
529
|
+
localVarQueryParameter['context'] = context;
|
|
530
|
+
}
|
|
531
|
+
if (streamOptions !== undefined) {
|
|
532
|
+
localVarQueryParameter['streamOptions'] = streamOptions;
|
|
533
|
+
}
|
|
534
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
535
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
537
|
+
return [2 /*return*/, {
|
|
538
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
539
|
+
options: localVarRequestOptions,
|
|
540
|
+
}];
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @summary Gets an audio stream.
|
|
547
|
+
* @param {string} itemId The item id.
|
|
548
|
+
* @param {string} [container] The audio container.
|
|
549
|
+
* @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.
|
|
550
|
+
* @param {string} [params] The streaming parameters.
|
|
551
|
+
* @param {string} [tag] The tag.
|
|
552
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
553
|
+
* @param {string} [playSessionId] The play session id.
|
|
554
|
+
* @param {string} [segmentContainer] The segment container.
|
|
555
|
+
* @param {number} [segmentLength] The segment length.
|
|
556
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
557
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
558
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
559
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
560
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
561
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
562
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
563
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
564
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
565
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
566
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
567
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
568
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
569
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
570
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
571
|
+
* @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.
|
|
572
|
+
* @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.
|
|
573
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
574
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
575
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
576
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
577
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
578
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
579
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
580
|
+
* @param {number} [maxRefFrames] Optional.
|
|
581
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
582
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
583
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
584
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
585
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
586
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
587
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
588
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
589
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
590
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
591
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
592
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
593
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
594
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
595
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
headAudioStream: 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, options) {
|
|
600
|
+
if (options === void 0) { options = {}; }
|
|
601
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
602
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
603
|
+
return __generator(this, function (_a) {
|
|
604
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
605
|
+
(0, common_1.assertParamExists)('headAudioStream', 'itemId', itemId);
|
|
606
|
+
localVarPath = "/Audio/{itemId}/stream"
|
|
607
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
608
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
609
|
+
if (configuration) {
|
|
610
|
+
baseOptions = configuration.baseOptions;
|
|
611
|
+
}
|
|
612
|
+
localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options);
|
|
613
|
+
localVarHeaderParameter = {};
|
|
614
|
+
localVarQueryParameter = {};
|
|
615
|
+
if (container !== undefined) {
|
|
616
|
+
localVarQueryParameter['container'] = container;
|
|
617
|
+
}
|
|
618
|
+
if (_static !== undefined) {
|
|
619
|
+
localVarQueryParameter['static'] = _static;
|
|
620
|
+
}
|
|
621
|
+
if (params !== undefined) {
|
|
622
|
+
localVarQueryParameter['params'] = params;
|
|
623
|
+
}
|
|
624
|
+
if (tag !== undefined) {
|
|
625
|
+
localVarQueryParameter['tag'] = tag;
|
|
626
|
+
}
|
|
627
|
+
if (deviceProfileId !== undefined) {
|
|
628
|
+
localVarQueryParameter['deviceProfileId'] = deviceProfileId;
|
|
629
|
+
}
|
|
630
|
+
if (playSessionId !== undefined) {
|
|
631
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
632
|
+
}
|
|
633
|
+
if (segmentContainer !== undefined) {
|
|
634
|
+
localVarQueryParameter['segmentContainer'] = segmentContainer;
|
|
635
|
+
}
|
|
636
|
+
if (segmentLength !== undefined) {
|
|
637
|
+
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
638
|
+
}
|
|
639
|
+
if (minSegments !== undefined) {
|
|
640
|
+
localVarQueryParameter['minSegments'] = minSegments;
|
|
641
|
+
}
|
|
642
|
+
if (mediaSourceId !== undefined) {
|
|
643
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
644
|
+
}
|
|
645
|
+
if (deviceId !== undefined) {
|
|
646
|
+
localVarQueryParameter['deviceId'] = deviceId;
|
|
647
|
+
}
|
|
648
|
+
if (audioCodec !== undefined) {
|
|
649
|
+
localVarQueryParameter['audioCodec'] = audioCodec;
|
|
650
|
+
}
|
|
651
|
+
if (enableAutoStreamCopy !== undefined) {
|
|
652
|
+
localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
|
|
653
|
+
}
|
|
654
|
+
if (allowVideoStreamCopy !== undefined) {
|
|
655
|
+
localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
|
|
656
|
+
}
|
|
657
|
+
if (allowAudioStreamCopy !== undefined) {
|
|
658
|
+
localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
|
|
659
|
+
}
|
|
660
|
+
if (breakOnNonKeyFrames !== undefined) {
|
|
661
|
+
localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
|
|
662
|
+
}
|
|
663
|
+
if (audioSampleRate !== undefined) {
|
|
664
|
+
localVarQueryParameter['audioSampleRate'] = audioSampleRate;
|
|
665
|
+
}
|
|
666
|
+
if (maxAudioBitDepth !== undefined) {
|
|
667
|
+
localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
|
|
668
|
+
}
|
|
669
|
+
if (audioBitRate !== undefined) {
|
|
670
|
+
localVarQueryParameter['audioBitRate'] = audioBitRate;
|
|
671
|
+
}
|
|
672
|
+
if (audioChannels !== undefined) {
|
|
673
|
+
localVarQueryParameter['audioChannels'] = audioChannels;
|
|
674
|
+
}
|
|
675
|
+
if (maxAudioChannels !== undefined) {
|
|
676
|
+
localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
|
|
677
|
+
}
|
|
678
|
+
if (profile !== undefined) {
|
|
679
|
+
localVarQueryParameter['profile'] = profile;
|
|
680
|
+
}
|
|
681
|
+
if (level !== undefined) {
|
|
682
|
+
localVarQueryParameter['level'] = level;
|
|
683
|
+
}
|
|
684
|
+
if (framerate !== undefined) {
|
|
685
|
+
localVarQueryParameter['framerate'] = framerate;
|
|
686
|
+
}
|
|
687
|
+
if (maxFramerate !== undefined) {
|
|
688
|
+
localVarQueryParameter['maxFramerate'] = maxFramerate;
|
|
689
|
+
}
|
|
690
|
+
if (copyTimestamps !== undefined) {
|
|
691
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
692
|
+
}
|
|
693
|
+
if (startTimeTicks !== undefined) {
|
|
694
|
+
localVarQueryParameter['startTimeTicks'] = startTimeTicks;
|
|
695
|
+
}
|
|
696
|
+
if (width !== undefined) {
|
|
697
|
+
localVarQueryParameter['width'] = width;
|
|
698
|
+
}
|
|
699
|
+
if (height !== undefined) {
|
|
700
|
+
localVarQueryParameter['height'] = height;
|
|
701
|
+
}
|
|
702
|
+
if (videoBitRate !== undefined) {
|
|
703
|
+
localVarQueryParameter['videoBitRate'] = videoBitRate;
|
|
704
|
+
}
|
|
705
|
+
if (subtitleStreamIndex !== undefined) {
|
|
706
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
707
|
+
}
|
|
708
|
+
if (subtitleMethod !== undefined) {
|
|
709
|
+
localVarQueryParameter['subtitleMethod'] = subtitleMethod;
|
|
710
|
+
}
|
|
711
|
+
if (maxRefFrames !== undefined) {
|
|
712
|
+
localVarQueryParameter['maxRefFrames'] = maxRefFrames;
|
|
713
|
+
}
|
|
714
|
+
if (maxVideoBitDepth !== undefined) {
|
|
715
|
+
localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
|
|
716
|
+
}
|
|
717
|
+
if (requireAvc !== undefined) {
|
|
718
|
+
localVarQueryParameter['requireAvc'] = requireAvc;
|
|
719
|
+
}
|
|
720
|
+
if (deInterlace !== undefined) {
|
|
721
|
+
localVarQueryParameter['deInterlace'] = deInterlace;
|
|
722
|
+
}
|
|
723
|
+
if (requireNonAnamorphic !== undefined) {
|
|
724
|
+
localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
|
|
725
|
+
}
|
|
726
|
+
if (transcodingMaxAudioChannels !== undefined) {
|
|
727
|
+
localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
|
|
728
|
+
}
|
|
729
|
+
if (cpuCoreLimit !== undefined) {
|
|
730
|
+
localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
|
|
731
|
+
}
|
|
732
|
+
if (liveStreamId !== undefined) {
|
|
733
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
734
|
+
}
|
|
735
|
+
if (enableMpegtsM2TsMode !== undefined) {
|
|
736
|
+
localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
|
|
737
|
+
}
|
|
738
|
+
if (videoCodec !== undefined) {
|
|
739
|
+
localVarQueryParameter['videoCodec'] = videoCodec;
|
|
740
|
+
}
|
|
741
|
+
if (subtitleCodec !== undefined) {
|
|
742
|
+
localVarQueryParameter['subtitleCodec'] = subtitleCodec;
|
|
743
|
+
}
|
|
744
|
+
if (transcodeReasons !== undefined) {
|
|
745
|
+
localVarQueryParameter['transcodeReasons'] = transcodeReasons;
|
|
746
|
+
}
|
|
747
|
+
if (audioStreamIndex !== undefined) {
|
|
748
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
749
|
+
}
|
|
750
|
+
if (videoStreamIndex !== undefined) {
|
|
751
|
+
localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
|
|
752
|
+
}
|
|
753
|
+
if (context !== undefined) {
|
|
754
|
+
localVarQueryParameter['context'] = context;
|
|
755
|
+
}
|
|
756
|
+
if (streamOptions !== undefined) {
|
|
757
|
+
localVarQueryParameter['streamOptions'] = streamOptions;
|
|
758
|
+
}
|
|
759
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
760
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
761
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
762
|
+
return [2 /*return*/, {
|
|
763
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
764
|
+
options: localVarRequestOptions,
|
|
765
|
+
}];
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @summary Gets an audio stream.
|
|
772
|
+
* @param {string} itemId The item id.
|
|
773
|
+
* @param {string} container The audio container.
|
|
774
|
+
* @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.
|
|
775
|
+
* @param {string} [params] The streaming parameters.
|
|
776
|
+
* @param {string} [tag] The tag.
|
|
777
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
778
|
+
* @param {string} [playSessionId] The play session id.
|
|
779
|
+
* @param {string} [segmentContainer] The segment container.
|
|
780
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
781
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
782
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
783
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
784
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
785
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
786
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
787
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
788
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
789
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
790
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
791
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
792
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
793
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
794
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
795
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
796
|
+
* @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.
|
|
797
|
+
* @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.
|
|
798
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
799
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
800
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
801
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
802
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
803
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
804
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
805
|
+
* @param {number} [maxRefFrames] Optional.
|
|
806
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
807
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
808
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
809
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
810
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
811
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
812
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
813
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
814
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
815
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
816
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
817
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
818
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
819
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
820
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
821
|
+
* @param {*} [options] Override http request option.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
headAudioStreamByContainer: 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, options) {
|
|
825
|
+
if (options === void 0) { options = {}; }
|
|
826
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
827
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
828
|
+
return __generator(this, function (_a) {
|
|
829
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
830
|
+
(0, common_1.assertParamExists)('headAudioStreamByContainer', 'itemId', itemId);
|
|
831
|
+
// verify required parameter 'container' is not null or undefined
|
|
832
|
+
(0, common_1.assertParamExists)('headAudioStreamByContainer', 'container', container);
|
|
833
|
+
localVarPath = "/Audio/{itemId}/stream.{container}"
|
|
834
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
835
|
+
.replace("{".concat("container", "}"), encodeURIComponent(String(container)));
|
|
836
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
837
|
+
if (configuration) {
|
|
838
|
+
baseOptions = configuration.baseOptions;
|
|
839
|
+
}
|
|
840
|
+
localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options);
|
|
841
|
+
localVarHeaderParameter = {};
|
|
842
|
+
localVarQueryParameter = {};
|
|
843
|
+
if (_static !== undefined) {
|
|
844
|
+
localVarQueryParameter['static'] = _static;
|
|
845
|
+
}
|
|
846
|
+
if (params !== undefined) {
|
|
847
|
+
localVarQueryParameter['params'] = params;
|
|
848
|
+
}
|
|
849
|
+
if (tag !== undefined) {
|
|
850
|
+
localVarQueryParameter['tag'] = tag;
|
|
851
|
+
}
|
|
852
|
+
if (deviceProfileId !== undefined) {
|
|
853
|
+
localVarQueryParameter['deviceProfileId'] = deviceProfileId;
|
|
854
|
+
}
|
|
855
|
+
if (playSessionId !== undefined) {
|
|
856
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
857
|
+
}
|
|
858
|
+
if (segmentContainer !== undefined) {
|
|
859
|
+
localVarQueryParameter['segmentContainer'] = segmentContainer;
|
|
860
|
+
}
|
|
861
|
+
if (segmentLength !== undefined) {
|
|
862
|
+
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
863
|
+
}
|
|
864
|
+
if (minSegments !== undefined) {
|
|
865
|
+
localVarQueryParameter['minSegments'] = minSegments;
|
|
866
|
+
}
|
|
867
|
+
if (mediaSourceId !== undefined) {
|
|
868
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
869
|
+
}
|
|
870
|
+
if (deviceId !== undefined) {
|
|
871
|
+
localVarQueryParameter['deviceId'] = deviceId;
|
|
872
|
+
}
|
|
873
|
+
if (audioCodec !== undefined) {
|
|
874
|
+
localVarQueryParameter['audioCodec'] = audioCodec;
|
|
875
|
+
}
|
|
876
|
+
if (enableAutoStreamCopy !== undefined) {
|
|
877
|
+
localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
|
|
878
|
+
}
|
|
879
|
+
if (allowVideoStreamCopy !== undefined) {
|
|
880
|
+
localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
|
|
881
|
+
}
|
|
882
|
+
if (allowAudioStreamCopy !== undefined) {
|
|
883
|
+
localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
|
|
884
|
+
}
|
|
885
|
+
if (breakOnNonKeyFrames !== undefined) {
|
|
886
|
+
localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
|
|
887
|
+
}
|
|
888
|
+
if (audioSampleRate !== undefined) {
|
|
889
|
+
localVarQueryParameter['audioSampleRate'] = audioSampleRate;
|
|
890
|
+
}
|
|
891
|
+
if (maxAudioBitDepth !== undefined) {
|
|
892
|
+
localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
|
|
893
|
+
}
|
|
894
|
+
if (audioBitRate !== undefined) {
|
|
895
|
+
localVarQueryParameter['audioBitRate'] = audioBitRate;
|
|
896
|
+
}
|
|
897
|
+
if (audioChannels !== undefined) {
|
|
898
|
+
localVarQueryParameter['audioChannels'] = audioChannels;
|
|
899
|
+
}
|
|
900
|
+
if (maxAudioChannels !== undefined) {
|
|
901
|
+
localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
|
|
902
|
+
}
|
|
903
|
+
if (profile !== undefined) {
|
|
904
|
+
localVarQueryParameter['profile'] = profile;
|
|
905
|
+
}
|
|
906
|
+
if (level !== undefined) {
|
|
907
|
+
localVarQueryParameter['level'] = level;
|
|
908
|
+
}
|
|
909
|
+
if (framerate !== undefined) {
|
|
910
|
+
localVarQueryParameter['framerate'] = framerate;
|
|
911
|
+
}
|
|
912
|
+
if (maxFramerate !== undefined) {
|
|
913
|
+
localVarQueryParameter['maxFramerate'] = maxFramerate;
|
|
914
|
+
}
|
|
915
|
+
if (copyTimestamps !== undefined) {
|
|
916
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
917
|
+
}
|
|
918
|
+
if (startTimeTicks !== undefined) {
|
|
919
|
+
localVarQueryParameter['startTimeTicks'] = startTimeTicks;
|
|
920
|
+
}
|
|
921
|
+
if (width !== undefined) {
|
|
922
|
+
localVarQueryParameter['width'] = width;
|
|
923
|
+
}
|
|
924
|
+
if (height !== undefined) {
|
|
925
|
+
localVarQueryParameter['height'] = height;
|
|
926
|
+
}
|
|
927
|
+
if (videoBitRate !== undefined) {
|
|
928
|
+
localVarQueryParameter['videoBitRate'] = videoBitRate;
|
|
929
|
+
}
|
|
930
|
+
if (subtitleStreamIndex !== undefined) {
|
|
931
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
932
|
+
}
|
|
933
|
+
if (subtitleMethod !== undefined) {
|
|
934
|
+
localVarQueryParameter['subtitleMethod'] = subtitleMethod;
|
|
935
|
+
}
|
|
936
|
+
if (maxRefFrames !== undefined) {
|
|
937
|
+
localVarQueryParameter['maxRefFrames'] = maxRefFrames;
|
|
938
|
+
}
|
|
939
|
+
if (maxVideoBitDepth !== undefined) {
|
|
940
|
+
localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
|
|
941
|
+
}
|
|
942
|
+
if (requireAvc !== undefined) {
|
|
943
|
+
localVarQueryParameter['requireAvc'] = requireAvc;
|
|
944
|
+
}
|
|
945
|
+
if (deInterlace !== undefined) {
|
|
946
|
+
localVarQueryParameter['deInterlace'] = deInterlace;
|
|
947
|
+
}
|
|
948
|
+
if (requireNonAnamorphic !== undefined) {
|
|
949
|
+
localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
|
|
950
|
+
}
|
|
951
|
+
if (transcodingMaxAudioChannels !== undefined) {
|
|
952
|
+
localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
|
|
953
|
+
}
|
|
954
|
+
if (cpuCoreLimit !== undefined) {
|
|
955
|
+
localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
|
|
956
|
+
}
|
|
957
|
+
if (liveStreamId !== undefined) {
|
|
958
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
959
|
+
}
|
|
960
|
+
if (enableMpegtsM2TsMode !== undefined) {
|
|
961
|
+
localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
|
|
962
|
+
}
|
|
963
|
+
if (videoCodec !== undefined) {
|
|
964
|
+
localVarQueryParameter['videoCodec'] = videoCodec;
|
|
965
|
+
}
|
|
966
|
+
if (subtitleCodec !== undefined) {
|
|
967
|
+
localVarQueryParameter['subtitleCodec'] = subtitleCodec;
|
|
968
|
+
}
|
|
969
|
+
if (transcodeReasons !== undefined) {
|
|
970
|
+
localVarQueryParameter['transcodeReasons'] = transcodeReasons;
|
|
971
|
+
}
|
|
972
|
+
if (audioStreamIndex !== undefined) {
|
|
973
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
974
|
+
}
|
|
975
|
+
if (videoStreamIndex !== undefined) {
|
|
976
|
+
localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
|
|
977
|
+
}
|
|
978
|
+
if (context !== undefined) {
|
|
979
|
+
localVarQueryParameter['context'] = context;
|
|
980
|
+
}
|
|
981
|
+
if (streamOptions !== undefined) {
|
|
982
|
+
localVarQueryParameter['streamOptions'] = streamOptions;
|
|
983
|
+
}
|
|
984
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
985
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
986
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
987
|
+
return [2 /*return*/, {
|
|
988
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
989
|
+
options: localVarRequestOptions,
|
|
990
|
+
}];
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
},
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
exports.AudioApiAxiosParamCreator = AudioApiAxiosParamCreator;
|
|
997
|
+
/**
|
|
998
|
+
* AudioApi - functional programming interface
|
|
999
|
+
* @export
|
|
1000
|
+
*/
|
|
1001
|
+
var AudioApiFp = function (configuration) {
|
|
1002
|
+
var localVarAxiosParamCreator = (0, exports.AudioApiAxiosParamCreator)(configuration);
|
|
1003
|
+
return {
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @summary Gets an audio stream.
|
|
1007
|
+
* @param {string} itemId The item id.
|
|
1008
|
+
* @param {string} [container] The audio container.
|
|
1009
|
+
* @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.
|
|
1010
|
+
* @param {string} [params] The streaming parameters.
|
|
1011
|
+
* @param {string} [tag] The tag.
|
|
1012
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1013
|
+
* @param {string} [playSessionId] The play session id.
|
|
1014
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1015
|
+
* @param {number} [segmentLength] The segment length.
|
|
1016
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1017
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1018
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1019
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1020
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1021
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1022
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1023
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1024
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1025
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1026
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1027
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1028
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1029
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1030
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1031
|
+
* @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.
|
|
1032
|
+
* @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.
|
|
1033
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1034
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1035
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1036
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1037
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1038
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1039
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1040
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1041
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1042
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1043
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1044
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
1045
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1046
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1047
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1048
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1049
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1050
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1051
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1052
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1053
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1054
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1055
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
getAudioStream: 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, options) {
|
|
1060
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1061
|
+
var localVarAxiosArgs;
|
|
1062
|
+
return __generator(this, function (_a) {
|
|
1063
|
+
switch (_a.label) {
|
|
1064
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAudioStream(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, options)];
|
|
1065
|
+
case 1:
|
|
1066
|
+
localVarAxiosArgs = _a.sent();
|
|
1067
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
});
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @summary Gets an audio stream.
|
|
1075
|
+
* @param {string} itemId The item id.
|
|
1076
|
+
* @param {string} container The audio container.
|
|
1077
|
+
* @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.
|
|
1078
|
+
* @param {string} [params] The streaming parameters.
|
|
1079
|
+
* @param {string} [tag] The tag.
|
|
1080
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1081
|
+
* @param {string} [playSessionId] The play session id.
|
|
1082
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1083
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
1084
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1085
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1086
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1087
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1088
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1089
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1090
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1091
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1092
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1093
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1094
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1095
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1096
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1097
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1098
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1099
|
+
* @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.
|
|
1100
|
+
* @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.
|
|
1101
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1102
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1103
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1104
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1105
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1106
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1107
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1108
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1109
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1110
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1111
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1112
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
1113
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1114
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1115
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1116
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1117
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1118
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1119
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1120
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1121
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1122
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1123
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
*/
|
|
1127
|
+
getAudioStreamByContainer: 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, options) {
|
|
1128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1129
|
+
var localVarAxiosArgs;
|
|
1130
|
+
return __generator(this, function (_a) {
|
|
1131
|
+
switch (_a.label) {
|
|
1132
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAudioStreamByContainer(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, options)];
|
|
1133
|
+
case 1:
|
|
1134
|
+
localVarAxiosArgs = _a.sent();
|
|
1135
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
});
|
|
1139
|
+
},
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @summary Gets an audio stream.
|
|
1143
|
+
* @param {string} itemId The item id.
|
|
1144
|
+
* @param {string} [container] The audio container.
|
|
1145
|
+
* @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.
|
|
1146
|
+
* @param {string} [params] The streaming parameters.
|
|
1147
|
+
* @param {string} [tag] The tag.
|
|
1148
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1149
|
+
* @param {string} [playSessionId] The play session id.
|
|
1150
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1151
|
+
* @param {number} [segmentLength] The segment length.
|
|
1152
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1153
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1154
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1155
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1156
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1157
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1158
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1159
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1160
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1161
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1162
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1163
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1164
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1165
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1166
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1167
|
+
* @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.
|
|
1168
|
+
* @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.
|
|
1169
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1170
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1171
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1172
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1173
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1174
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1175
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1176
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1177
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1178
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1179
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1180
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
1181
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1182
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1183
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1184
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1185
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1186
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1187
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1188
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1189
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1190
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1191
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
*/
|
|
1195
|
+
headAudioStream: 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, options) {
|
|
1196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1197
|
+
var localVarAxiosArgs;
|
|
1198
|
+
return __generator(this, function (_a) {
|
|
1199
|
+
switch (_a.label) {
|
|
1200
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.headAudioStream(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, options)];
|
|
1201
|
+
case 1:
|
|
1202
|
+
localVarAxiosArgs = _a.sent();
|
|
1203
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
});
|
|
1207
|
+
},
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @summary Gets an audio stream.
|
|
1211
|
+
* @param {string} itemId The item id.
|
|
1212
|
+
* @param {string} container The audio container.
|
|
1213
|
+
* @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.
|
|
1214
|
+
* @param {string} [params] The streaming parameters.
|
|
1215
|
+
* @param {string} [tag] The tag.
|
|
1216
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1217
|
+
* @param {string} [playSessionId] The play session id.
|
|
1218
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1219
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
1220
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1221
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1222
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1223
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1224
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1225
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1226
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1227
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1228
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1229
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1230
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1231
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1232
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1233
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1234
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1235
|
+
* @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.
|
|
1236
|
+
* @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.
|
|
1237
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1238
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1239
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1240
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1241
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1242
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1243
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1244
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1245
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1246
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1247
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1248
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
1249
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1250
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1251
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1252
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1253
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1254
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1255
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1256
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1257
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1258
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1259
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
headAudioStreamByContainer: 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, options) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1265
|
+
var localVarAxiosArgs;
|
|
1266
|
+
return __generator(this, function (_a) {
|
|
1267
|
+
switch (_a.label) {
|
|
1268
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.headAudioStreamByContainer(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, options)];
|
|
1269
|
+
case 1:
|
|
1270
|
+
localVarAxiosArgs = _a.sent();
|
|
1271
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
});
|
|
1275
|
+
},
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
exports.AudioApiFp = AudioApiFp;
|
|
1279
|
+
/**
|
|
1280
|
+
* AudioApi - factory interface
|
|
1281
|
+
* @export
|
|
1282
|
+
*/
|
|
1283
|
+
var AudioApiFactory = function (configuration, basePath, axios) {
|
|
1284
|
+
var localVarFp = (0, exports.AudioApiFp)(configuration);
|
|
1285
|
+
return {
|
|
1286
|
+
/**
|
|
1287
|
+
*
|
|
1288
|
+
* @summary Gets an audio stream.
|
|
1289
|
+
* @param {string} itemId The item id.
|
|
1290
|
+
* @param {string} [container] The audio container.
|
|
1291
|
+
* @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.
|
|
1292
|
+
* @param {string} [params] The streaming parameters.
|
|
1293
|
+
* @param {string} [tag] The tag.
|
|
1294
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1295
|
+
* @param {string} [playSessionId] The play session id.
|
|
1296
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1297
|
+
* @param {number} [segmentLength] The segment length.
|
|
1298
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1299
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1300
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1301
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1302
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1303
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1304
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1305
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1306
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1307
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1308
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1309
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1310
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1311
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1312
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1313
|
+
* @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.
|
|
1314
|
+
* @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.
|
|
1315
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1316
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1317
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1318
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1319
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1320
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1321
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1322
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1323
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1324
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1325
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1326
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
1327
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1328
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1329
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1330
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1331
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1332
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1333
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1334
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1335
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1336
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1337
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
getAudioStream: 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, options) {
|
|
1342
|
+
return localVarFp.getAudioStream(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, options).then(function (request) { return request(axios, basePath); });
|
|
1343
|
+
},
|
|
1344
|
+
/**
|
|
1345
|
+
*
|
|
1346
|
+
* @summary Gets an audio stream.
|
|
1347
|
+
* @param {string} itemId The item id.
|
|
1348
|
+
* @param {string} container The audio container.
|
|
1349
|
+
* @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.
|
|
1350
|
+
* @param {string} [params] The streaming parameters.
|
|
1351
|
+
* @param {string} [tag] The tag.
|
|
1352
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1353
|
+
* @param {string} [playSessionId] The play session id.
|
|
1354
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1355
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
1356
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1357
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1358
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1359
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1360
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1361
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1362
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1363
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1364
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1365
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1366
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1367
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1368
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1369
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1370
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1371
|
+
* @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.
|
|
1372
|
+
* @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.
|
|
1373
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1374
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1375
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1376
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1377
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1378
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1379
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1380
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1381
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1382
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1383
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1384
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
1385
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1386
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1387
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1388
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1389
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1390
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1391
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1392
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1393
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1394
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1395
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
getAudioStreamByContainer: 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, options) {
|
|
1400
|
+
return localVarFp.getAudioStreamByContainer(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, options).then(function (request) { return request(axios, basePath); });
|
|
1401
|
+
},
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @summary Gets an audio stream.
|
|
1405
|
+
* @param {string} itemId The item id.
|
|
1406
|
+
* @param {string} [container] The audio container.
|
|
1407
|
+
* @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.
|
|
1408
|
+
* @param {string} [params] The streaming parameters.
|
|
1409
|
+
* @param {string} [tag] The tag.
|
|
1410
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1411
|
+
* @param {string} [playSessionId] The play session id.
|
|
1412
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1413
|
+
* @param {number} [segmentLength] The segment length.
|
|
1414
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1415
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1416
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1417
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1418
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1419
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1420
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1421
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1422
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1423
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1424
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1425
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1426
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1427
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1428
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1429
|
+
* @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.
|
|
1430
|
+
* @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.
|
|
1431
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1432
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1433
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1434
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1435
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1436
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1437
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1438
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1439
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1440
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1441
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1442
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
|
|
1443
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1444
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1445
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1446
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1447
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1448
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1449
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1450
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1451
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1452
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1453
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
headAudioStream: 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, options) {
|
|
1458
|
+
return localVarFp.headAudioStream(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, options).then(function (request) { return request(axios, basePath); });
|
|
1459
|
+
},
|
|
1460
|
+
/**
|
|
1461
|
+
*
|
|
1462
|
+
* @summary Gets an audio stream.
|
|
1463
|
+
* @param {string} itemId The item id.
|
|
1464
|
+
* @param {string} container The audio container.
|
|
1465
|
+
* @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.
|
|
1466
|
+
* @param {string} [params] The streaming parameters.
|
|
1467
|
+
* @param {string} [tag] The tag.
|
|
1468
|
+
* @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
|
|
1469
|
+
* @param {string} [playSessionId] The play session id.
|
|
1470
|
+
* @param {string} [segmentContainer] The segment container.
|
|
1471
|
+
* @param {number} [segmentLength] The segment lenght.
|
|
1472
|
+
* @param {number} [minSegments] The minimum number of segments.
|
|
1473
|
+
* @param {string} [mediaSourceId] The media version id, if playing an alternate version.
|
|
1474
|
+
* @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
|
|
1475
|
+
* @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
|
|
1476
|
+
* @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
|
|
1477
|
+
* @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
|
|
1478
|
+
* @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
|
|
1479
|
+
* @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
|
|
1480
|
+
* @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
|
|
1481
|
+
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
1482
|
+
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
1483
|
+
* @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
|
|
1484
|
+
* @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
|
|
1485
|
+
* @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
|
|
1486
|
+
* @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
|
|
1487
|
+
* @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.
|
|
1488
|
+
* @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.
|
|
1489
|
+
* @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
|
|
1490
|
+
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
1491
|
+
* @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
|
|
1492
|
+
* @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
|
|
1493
|
+
* @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
|
|
1494
|
+
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
|
|
1495
|
+
* @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
|
|
1496
|
+
* @param {number} [maxRefFrames] Optional.
|
|
1497
|
+
* @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
|
|
1498
|
+
* @param {boolean} [requireAvc] Optional. Whether to require avc.
|
|
1499
|
+
* @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
|
|
1500
|
+
* @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
|
|
1501
|
+
* @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
|
|
1502
|
+
* @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
|
|
1503
|
+
* @param {string} [liveStreamId] The live stream id.
|
|
1504
|
+
* @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
|
|
1505
|
+
* @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
|
|
1506
|
+
* @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
|
|
1507
|
+
* @param {string} [transcodeReasons] Optional. The transcoding reason.
|
|
1508
|
+
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
|
|
1509
|
+
* @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
|
|
1510
|
+
* @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
|
|
1511
|
+
* @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
|
|
1512
|
+
* @param {*} [options] Override http request option.
|
|
1513
|
+
* @throws {RequiredError}
|
|
1514
|
+
*/
|
|
1515
|
+
headAudioStreamByContainer: 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, options) {
|
|
1516
|
+
return localVarFp.headAudioStreamByContainer(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, options).then(function (request) { return request(axios, basePath); });
|
|
1517
|
+
},
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
exports.AudioApiFactory = AudioApiFactory;
|
|
1521
|
+
/**
|
|
1522
|
+
* AudioApi - object-oriented interface
|
|
1523
|
+
* @export
|
|
1524
|
+
* @class AudioApi
|
|
1525
|
+
* @extends {BaseAPI}
|
|
1526
|
+
*/
|
|
1527
|
+
var AudioApi = /** @class */ (function (_super) {
|
|
1528
|
+
__extends(AudioApi, _super);
|
|
1529
|
+
function AudioApi() {
|
|
1530
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
*
|
|
1534
|
+
* @summary Gets an audio stream.
|
|
1535
|
+
* @param {AudioApiGetAudioStreamRequest} requestParameters Request parameters.
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
* @memberof AudioApi
|
|
1539
|
+
*/
|
|
1540
|
+
AudioApi.prototype.getAudioStream = function (requestParameters, options) {
|
|
1541
|
+
var _this = this;
|
|
1542
|
+
return (0, exports.AudioApiFp)(this.configuration).getAudioStream(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, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Gets an audio stream.
|
|
1547
|
+
* @param {AudioApiGetAudioStreamByContainerRequest} requestParameters Request parameters.
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
* @memberof AudioApi
|
|
1551
|
+
*/
|
|
1552
|
+
AudioApi.prototype.getAudioStreamByContainer = function (requestParameters, options) {
|
|
1553
|
+
var _this = this;
|
|
1554
|
+
return (0, exports.AudioApiFp)(this.configuration).getAudioStreamByContainer(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, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
*
|
|
1558
|
+
* @summary Gets an audio stream.
|
|
1559
|
+
* @param {AudioApiHeadAudioStreamRequest} requestParameters Request parameters.
|
|
1560
|
+
* @param {*} [options] Override http request option.
|
|
1561
|
+
* @throws {RequiredError}
|
|
1562
|
+
* @memberof AudioApi
|
|
1563
|
+
*/
|
|
1564
|
+
AudioApi.prototype.headAudioStream = function (requestParameters, options) {
|
|
1565
|
+
var _this = this;
|
|
1566
|
+
return (0, exports.AudioApiFp)(this.configuration).headAudioStream(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, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1567
|
+
};
|
|
1568
|
+
/**
|
|
1569
|
+
*
|
|
1570
|
+
* @summary Gets an audio stream.
|
|
1571
|
+
* @param {AudioApiHeadAudioStreamByContainerRequest} requestParameters Request parameters.
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
* @memberof AudioApi
|
|
1575
|
+
*/
|
|
1576
|
+
AudioApi.prototype.headAudioStreamByContainer = function (requestParameters, options) {
|
|
1577
|
+
var _this = this;
|
|
1578
|
+
return (0, exports.AudioApiFp)(this.configuration).headAudioStreamByContainer(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, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1579
|
+
};
|
|
1580
|
+
return AudioApi;
|
|
1581
|
+
}(base_1.BaseAPI));
|
|
1582
|
+
exports.AudioApi = AudioApi;
|