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