VideosApi - functional programming interface

  • Parameters

    Returns {
        deleteAlternateSources(
            itemId: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
        getAdditionalPart(
            itemId: string,
            userId?: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BaseItemDtoQueryResult>,
        >;
        getVideoStream(
            itemId: string,
            container?: string,
            _static?: boolean,
            params?: string,
            tag?: string,
            deviceProfileId?: string,
            playSessionId?: string,
            segmentContainer?: string,
            segmentLength?: number,
            minSegments?: number,
            mediaSourceId?: string,
            deviceId?: string,
            audioCodec?: string,
            enableAutoStreamCopy?: boolean,
            allowVideoStreamCopy?: boolean,
            allowAudioStreamCopy?: boolean,
            breakOnNonKeyFrames?: boolean,
            audioSampleRate?: number,
            maxAudioBitDepth?: number,
            audioBitRate?: number,
            audioChannels?: number,
            maxAudioChannels?: number,
            profile?: string,
            level?: string,
            framerate?: number,
            maxFramerate?: number,
            copyTimestamps?: boolean,
            startTimeTicks?: number,
            width?: number,
            height?: number,
            maxWidth?: number,
            maxHeight?: number,
            videoBitRate?: number,
            subtitleStreamIndex?: number,
            subtitleMethod?: SubtitleDeliveryMethod,
            maxRefFrames?: number,
            maxVideoBitDepth?: number,
            requireAvc?: boolean,
            deInterlace?: boolean,
            requireNonAnamorphic?: boolean,
            transcodingMaxAudioChannels?: number,
            cpuCoreLimit?: number,
            liveStreamId?: string,
            enableMpegtsM2TsMode?: boolean,
            videoCodec?: string,
            subtitleCodec?: string,
            transcodeReasons?: string,
            audioStreamIndex?: number,
            videoStreamIndex?: number,
            context?: EncodingContext,
            streamOptions?: { [key: string]: string },
            enableAudioVbrEncoding?: boolean,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>,
        >;
        getVideoStreamByContainer(
            itemId: string,
            container: string,
            _static?: boolean,
            params?: string,
            tag?: string,
            deviceProfileId?: string,
            playSessionId?: string,
            segmentContainer?: string,
            segmentLength?: number,
            minSegments?: number,
            mediaSourceId?: string,
            deviceId?: string,
            audioCodec?: string,
            enableAutoStreamCopy?: boolean,
            allowVideoStreamCopy?: boolean,
            allowAudioStreamCopy?: boolean,
            breakOnNonKeyFrames?: boolean,
            audioSampleRate?: number,
            maxAudioBitDepth?: number,
            audioBitRate?: number,
            audioChannels?: number,
            maxAudioChannels?: number,
            profile?: string,
            level?: string,
            framerate?: number,
            maxFramerate?: number,
            copyTimestamps?: boolean,
            startTimeTicks?: number,
            width?: number,
            height?: number,
            maxWidth?: number,
            maxHeight?: number,
            videoBitRate?: number,
            subtitleStreamIndex?: number,
            subtitleMethod?: SubtitleDeliveryMethod,
            maxRefFrames?: number,
            maxVideoBitDepth?: number,
            requireAvc?: boolean,
            deInterlace?: boolean,
            requireNonAnamorphic?: boolean,
            transcodingMaxAudioChannels?: number,
            cpuCoreLimit?: number,
            liveStreamId?: string,
            enableMpegtsM2TsMode?: boolean,
            videoCodec?: string,
            subtitleCodec?: string,
            transcodeReasons?: string,
            audioStreamIndex?: number,
            videoStreamIndex?: number,
            context?: EncodingContext,
            streamOptions?: { [key: string]: string },
            enableAudioVbrEncoding?: boolean,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>,
        >;
        headVideoStream(
            itemId: string,
            container?: string,
            _static?: boolean,
            params?: string,
            tag?: string,
            deviceProfileId?: string,
            playSessionId?: string,
            segmentContainer?: string,
            segmentLength?: number,
            minSegments?: number,
            mediaSourceId?: string,
            deviceId?: string,
            audioCodec?: string,
            enableAutoStreamCopy?: boolean,
            allowVideoStreamCopy?: boolean,
            allowAudioStreamCopy?: boolean,
            breakOnNonKeyFrames?: boolean,
            audioSampleRate?: number,
            maxAudioBitDepth?: number,
            audioBitRate?: number,
            audioChannels?: number,
            maxAudioChannels?: number,
            profile?: string,
            level?: string,
            framerate?: number,
            maxFramerate?: number,
            copyTimestamps?: boolean,
            startTimeTicks?: number,
            width?: number,
            height?: number,
            maxWidth?: number,
            maxHeight?: number,
            videoBitRate?: number,
            subtitleStreamIndex?: number,
            subtitleMethod?: SubtitleDeliveryMethod,
            maxRefFrames?: number,
            maxVideoBitDepth?: number,
            requireAvc?: boolean,
            deInterlace?: boolean,
            requireNonAnamorphic?: boolean,
            transcodingMaxAudioChannels?: number,
            cpuCoreLimit?: number,
            liveStreamId?: string,
            enableMpegtsM2TsMode?: boolean,
            videoCodec?: string,
            subtitleCodec?: string,
            transcodeReasons?: string,
            audioStreamIndex?: number,
            videoStreamIndex?: number,
            context?: EncodingContext,
            streamOptions?: { [key: string]: string },
            enableAudioVbrEncoding?: boolean,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>,
        >;
        headVideoStreamByContainer(
            itemId: string,
            container: string,
            _static?: boolean,
            params?: string,
            tag?: string,
            deviceProfileId?: string,
            playSessionId?: string,
            segmentContainer?: string,
            segmentLength?: number,
            minSegments?: number,
            mediaSourceId?: string,
            deviceId?: string,
            audioCodec?: string,
            enableAutoStreamCopy?: boolean,
            allowVideoStreamCopy?: boolean,
            allowAudioStreamCopy?: boolean,
            breakOnNonKeyFrames?: boolean,
            audioSampleRate?: number,
            maxAudioBitDepth?: number,
            audioBitRate?: number,
            audioChannels?: number,
            maxAudioChannels?: number,
            profile?: string,
            level?: string,
            framerate?: number,
            maxFramerate?: number,
            copyTimestamps?: boolean,
            startTimeTicks?: number,
            width?: number,
            height?: number,
            maxWidth?: number,
            maxHeight?: number,
            videoBitRate?: number,
            subtitleStreamIndex?: number,
            subtitleMethod?: SubtitleDeliveryMethod,
            maxRefFrames?: number,
            maxVideoBitDepth?: number,
            requireAvc?: boolean,
            deInterlace?: boolean,
            requireNonAnamorphic?: boolean,
            transcodingMaxAudioChannels?: number,
            cpuCoreLimit?: number,
            liveStreamId?: string,
            enableMpegtsM2TsMode?: boolean,
            videoCodec?: string,
            subtitleCodec?: string,
            transcodeReasons?: string,
            audioStreamIndex?: number,
            videoStreamIndex?: number,
            context?: EncodingContext,
            streamOptions?: { [key: string]: string },
            enableAudioVbrEncoding?: boolean,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>,
        >;
        mergeVersions(
            ids: string[],
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
    }

    • deleteAlternateSources:function
      • Parameters

        • itemId: string

          The item id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>

    • getAdditionalPart:function
      • Parameters

        • itemId: string

          The item id.

        • OptionaluserId: string

          Optional. Filter by user id, and attach user data.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BaseItemDtoQueryResult>,
        >

    • getVideoStream:function
      • Parameters

        • itemId: string

          The item id.

        • Optionalcontainer: string

          The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.

        • Optional_static: boolean

          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.

        • Optionalparams: string

          The streaming parameters.

        • Optionaltag: string

          The tag.

        • OptionaldeviceProfileId: string

          Optional. The dlna device profile id to utilize.

        • OptionalplaySessionId: string

          The play session id.

        • OptionalsegmentContainer: string

          The segment container.

        • OptionalsegmentLength: number

          The segment length.

        • OptionalminSegments: number

          The minimum number of segments.

        • OptionalmediaSourceId: string

          The media version id, if playing an alternate version.

        • OptionaldeviceId: string

          The device id of the client requesting. Used to stop encoding processes when needed.

        • OptionalaudioCodec: string

          Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalenableAutoStreamCopy: boolean

          Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.

        • OptionalallowVideoStreamCopy: boolean

          Whether or not to allow copying of the video stream url.

        • OptionalallowAudioStreamCopy: boolean

          Whether or not to allow copying of the audio stream url.

        • OptionalbreakOnNonKeyFrames: boolean

          Optional. Whether to break on non key frames.

        • OptionalaudioSampleRate: number

          Optional. Specify a specific audio sample rate, e.g. 44100.

        • OptionalmaxAudioBitDepth: number

          Optional. The maximum audio bit depth.

        • OptionalaudioBitRate: number

          Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

        • OptionalaudioChannels: number

          Optional. Specify a specific number of audio channels to encode to, e.g. 2.

        • OptionalmaxAudioChannels: number

          Optional. Specify a maximum number of audio channels to encode to, e.g. 2.

        • Optionalprofile: string

          Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.

        • Optionallevel: string

          Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.

        • Optionalframerate: number

          Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalmaxFramerate: number

          Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalcopyTimestamps: boolean

          Whether or not to copy timestamps when transcoding with an offset. Defaults to false.

        • OptionalstartTimeTicks: number

          Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

        • Optionalwidth: number

          Optional. The fixed horizontal resolution of the encoded video.

        • Optionalheight: number

          Optional. The fixed vertical resolution of the encoded video.

        • OptionalmaxWidth: number

          Optional. The maximum horizontal resolution of the encoded video.

        • OptionalmaxHeight: number

          Optional. The maximum vertical resolution of the encoded video.

        • OptionalvideoBitRate: number

          Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.

        • OptionalsubtitleStreamIndex: number

          Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.

        • OptionalsubtitleMethod: SubtitleDeliveryMethod

          Optional. Specify the subtitle delivery method.

        • OptionalmaxRefFrames: number

          Optional.

        • OptionalmaxVideoBitDepth: number

          Optional. The maximum video bit depth.

        • OptionalrequireAvc: boolean

          Optional. Whether to require avc.

        • OptionaldeInterlace: boolean

          Optional. Whether to deinterlace the video.

        • OptionalrequireNonAnamorphic: boolean

          Optional. Whether to require a non anamorphic stream.

        • OptionaltranscodingMaxAudioChannels: number

          Optional. The maximum number of audio channels to transcode.

        • OptionalcpuCoreLimit: number

          Optional. The limit of how many cpu cores to use.

        • OptionalliveStreamId: string

          The live stream id.

        • OptionalenableMpegtsM2TsMode: boolean

          Optional. Whether to enable the MpegtsM2Ts mode.

        • OptionalvideoCodec: string

          Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalsubtitleCodec: string

          Optional. Specify a subtitle codec to encode to.

        • OptionaltranscodeReasons: string

          Optional. The transcoding reason.

        • OptionalaudioStreamIndex: number

          Optional. The index of the audio stream to use. If omitted the first audio stream will be used.

        • OptionalvideoStreamIndex: number

          Optional. The index of the video stream to use. If omitted the first video stream will be used.

        • Optionalcontext: EncodingContext

          Optional. The MediaBrowser.Model.Dlna.EncodingContext.

        • OptionalstreamOptions: { [key: string]: string }

          Optional. The streaming options.

        • OptionalenableAudioVbrEncoding: boolean

          Optional. Whether to enable Audio Encoding.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>

    • getVideoStreamByContainer:function
      • Parameters

        • itemId: string

          The item id.

        • container: string

          The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.

        • Optional_static: boolean

          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.

        • Optionalparams: string

          The streaming parameters.

        • Optionaltag: string

          The tag.

        • OptionaldeviceProfileId: string

          Optional. The dlna device profile id to utilize.

        • OptionalplaySessionId: string

          The play session id.

        • OptionalsegmentContainer: string

          The segment container.

        • OptionalsegmentLength: number

          The segment length.

        • OptionalminSegments: number

          The minimum number of segments.

        • OptionalmediaSourceId: string

          The media version id, if playing an alternate version.

        • OptionaldeviceId: string

          The device id of the client requesting. Used to stop encoding processes when needed.

        • OptionalaudioCodec: string

          Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalenableAutoStreamCopy: boolean

          Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.

        • OptionalallowVideoStreamCopy: boolean

          Whether or not to allow copying of the video stream url.

        • OptionalallowAudioStreamCopy: boolean

          Whether or not to allow copying of the audio stream url.

        • OptionalbreakOnNonKeyFrames: boolean

          Optional. Whether to break on non key frames.

        • OptionalaudioSampleRate: number

          Optional. Specify a specific audio sample rate, e.g. 44100.

        • OptionalmaxAudioBitDepth: number

          Optional. The maximum audio bit depth.

        • OptionalaudioBitRate: number

          Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

        • OptionalaudioChannels: number

          Optional. Specify a specific number of audio channels to encode to, e.g. 2.

        • OptionalmaxAudioChannels: number

          Optional. Specify a maximum number of audio channels to encode to, e.g. 2.

        • Optionalprofile: string

          Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.

        • Optionallevel: string

          Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.

        • Optionalframerate: number

          Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalmaxFramerate: number

          Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalcopyTimestamps: boolean

          Whether or not to copy timestamps when transcoding with an offset. Defaults to false.

        • OptionalstartTimeTicks: number

          Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

        • Optionalwidth: number

          Optional. The fixed horizontal resolution of the encoded video.

        • Optionalheight: number

          Optional. The fixed vertical resolution of the encoded video.

        • OptionalmaxWidth: number

          Optional. The maximum horizontal resolution of the encoded video.

        • OptionalmaxHeight: number

          Optional. The maximum vertical resolution of the encoded video.

        • OptionalvideoBitRate: number

          Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.

        • OptionalsubtitleStreamIndex: number

          Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.

        • OptionalsubtitleMethod: SubtitleDeliveryMethod

          Optional. Specify the subtitle delivery method.

        • OptionalmaxRefFrames: number

          Optional.

        • OptionalmaxVideoBitDepth: number

          Optional. The maximum video bit depth.

        • OptionalrequireAvc: boolean

          Optional. Whether to require avc.

        • OptionaldeInterlace: boolean

          Optional. Whether to deinterlace the video.

        • OptionalrequireNonAnamorphic: boolean

          Optional. Whether to require a non anamorphic stream.

        • OptionaltranscodingMaxAudioChannels: number

          Optional. The maximum number of audio channels to transcode.

        • OptionalcpuCoreLimit: number

          Optional. The limit of how many cpu cores to use.

        • OptionalliveStreamId: string

          The live stream id.

        • OptionalenableMpegtsM2TsMode: boolean

          Optional. Whether to enable the MpegtsM2Ts mode.

        • OptionalvideoCodec: string

          Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalsubtitleCodec: string

          Optional. Specify a subtitle codec to encode to.

        • OptionaltranscodeReasons: string

          Optional. The transcoding reason.

        • OptionalaudioStreamIndex: number

          Optional. The index of the audio stream to use. If omitted the first audio stream will be used.

        • OptionalvideoStreamIndex: number

          Optional. The index of the video stream to use. If omitted the first video stream will be used.

        • Optionalcontext: EncodingContext

          Optional. The MediaBrowser.Model.Dlna.EncodingContext.

        • OptionalstreamOptions: { [key: string]: string }

          Optional. The streaming options.

        • OptionalenableAudioVbrEncoding: boolean

          Optional. Whether to enable Audio Encoding.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>

    • headVideoStream:function
      • Parameters

        • itemId: string

          The item id.

        • Optionalcontainer: string

          The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.

        • Optional_static: boolean

          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.

        • Optionalparams: string

          The streaming parameters.

        • Optionaltag: string

          The tag.

        • OptionaldeviceProfileId: string

          Optional. The dlna device profile id to utilize.

        • OptionalplaySessionId: string

          The play session id.

        • OptionalsegmentContainer: string

          The segment container.

        • OptionalsegmentLength: number

          The segment length.

        • OptionalminSegments: number

          The minimum number of segments.

        • OptionalmediaSourceId: string

          The media version id, if playing an alternate version.

        • OptionaldeviceId: string

          The device id of the client requesting. Used to stop encoding processes when needed.

        • OptionalaudioCodec: string

          Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalenableAutoStreamCopy: boolean

          Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.

        • OptionalallowVideoStreamCopy: boolean

          Whether or not to allow copying of the video stream url.

        • OptionalallowAudioStreamCopy: boolean

          Whether or not to allow copying of the audio stream url.

        • OptionalbreakOnNonKeyFrames: boolean

          Optional. Whether to break on non key frames.

        • OptionalaudioSampleRate: number

          Optional. Specify a specific audio sample rate, e.g. 44100.

        • OptionalmaxAudioBitDepth: number

          Optional. The maximum audio bit depth.

        • OptionalaudioBitRate: number

          Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

        • OptionalaudioChannels: number

          Optional. Specify a specific number of audio channels to encode to, e.g. 2.

        • OptionalmaxAudioChannels: number

          Optional. Specify a maximum number of audio channels to encode to, e.g. 2.

        • Optionalprofile: string

          Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.

        • Optionallevel: string

          Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.

        • Optionalframerate: number

          Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalmaxFramerate: number

          Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalcopyTimestamps: boolean

          Whether or not to copy timestamps when transcoding with an offset. Defaults to false.

        • OptionalstartTimeTicks: number

          Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

        • Optionalwidth: number

          Optional. The fixed horizontal resolution of the encoded video.

        • Optionalheight: number

          Optional. The fixed vertical resolution of the encoded video.

        • OptionalmaxWidth: number

          Optional. The maximum horizontal resolution of the encoded video.

        • OptionalmaxHeight: number

          Optional. The maximum vertical resolution of the encoded video.

        • OptionalvideoBitRate: number

          Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.

        • OptionalsubtitleStreamIndex: number

          Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.

        • OptionalsubtitleMethod: SubtitleDeliveryMethod

          Optional. Specify the subtitle delivery method.

        • OptionalmaxRefFrames: number

          Optional.

        • OptionalmaxVideoBitDepth: number

          Optional. The maximum video bit depth.

        • OptionalrequireAvc: boolean

          Optional. Whether to require avc.

        • OptionaldeInterlace: boolean

          Optional. Whether to deinterlace the video.

        • OptionalrequireNonAnamorphic: boolean

          Optional. Whether to require a non anamorphic stream.

        • OptionaltranscodingMaxAudioChannels: number

          Optional. The maximum number of audio channels to transcode.

        • OptionalcpuCoreLimit: number

          Optional. The limit of how many cpu cores to use.

        • OptionalliveStreamId: string

          The live stream id.

        • OptionalenableMpegtsM2TsMode: boolean

          Optional. Whether to enable the MpegtsM2Ts mode.

        • OptionalvideoCodec: string

          Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalsubtitleCodec: string

          Optional. Specify a subtitle codec to encode to.

        • OptionaltranscodeReasons: string

          Optional. The transcoding reason.

        • OptionalaudioStreamIndex: number

          Optional. The index of the audio stream to use. If omitted the first audio stream will be used.

        • OptionalvideoStreamIndex: number

          Optional. The index of the video stream to use. If omitted the first video stream will be used.

        • Optionalcontext: EncodingContext

          Optional. The MediaBrowser.Model.Dlna.EncodingContext.

        • OptionalstreamOptions: { [key: string]: string }

          Optional. The streaming options.

        • OptionalenableAudioVbrEncoding: boolean

          Optional. Whether to enable Audio Encoding.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>

    • headVideoStreamByContainer:function
      • Parameters

        • itemId: string

          The item id.

        • container: string

          The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.

        • Optional_static: boolean

          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.

        • Optionalparams: string

          The streaming parameters.

        • Optionaltag: string

          The tag.

        • OptionaldeviceProfileId: string

          Optional. The dlna device profile id to utilize.

        • OptionalplaySessionId: string

          The play session id.

        • OptionalsegmentContainer: string

          The segment container.

        • OptionalsegmentLength: number

          The segment length.

        • OptionalminSegments: number

          The minimum number of segments.

        • OptionalmediaSourceId: string

          The media version id, if playing an alternate version.

        • OptionaldeviceId: string

          The device id of the client requesting. Used to stop encoding processes when needed.

        • OptionalaudioCodec: string

          Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalenableAutoStreamCopy: boolean

          Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.

        • OptionalallowVideoStreamCopy: boolean

          Whether or not to allow copying of the video stream url.

        • OptionalallowAudioStreamCopy: boolean

          Whether or not to allow copying of the audio stream url.

        • OptionalbreakOnNonKeyFrames: boolean

          Optional. Whether to break on non key frames.

        • OptionalaudioSampleRate: number

          Optional. Specify a specific audio sample rate, e.g. 44100.

        • OptionalmaxAudioBitDepth: number

          Optional. The maximum audio bit depth.

        • OptionalaudioBitRate: number

          Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

        • OptionalaudioChannels: number

          Optional. Specify a specific number of audio channels to encode to, e.g. 2.

        • OptionalmaxAudioChannels: number

          Optional. Specify a maximum number of audio channels to encode to, e.g. 2.

        • Optionalprofile: string

          Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.

        • Optionallevel: string

          Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.

        • Optionalframerate: number

          Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalmaxFramerate: number

          Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

        • OptionalcopyTimestamps: boolean

          Whether or not to copy timestamps when transcoding with an offset. Defaults to false.

        • OptionalstartTimeTicks: number

          Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

        • Optionalwidth: number

          Optional. The fixed horizontal resolution of the encoded video.

        • Optionalheight: number

          Optional. The fixed vertical resolution of the encoded video.

        • OptionalmaxWidth: number

          Optional. The maximum horizontal resolution of the encoded video.

        • OptionalmaxHeight: number

          Optional. The maximum vertical resolution of the encoded video.

        • OptionalvideoBitRate: number

          Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.

        • OptionalsubtitleStreamIndex: number

          Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.

        • OptionalsubtitleMethod: SubtitleDeliveryMethod

          Optional. Specify the subtitle delivery method.

        • OptionalmaxRefFrames: number

          Optional.

        • OptionalmaxVideoBitDepth: number

          Optional. The maximum video bit depth.

        • OptionalrequireAvc: boolean

          Optional. Whether to require avc.

        • OptionaldeInterlace: boolean

          Optional. Whether to deinterlace the video.

        • OptionalrequireNonAnamorphic: boolean

          Optional. Whether to require a non anamorphic stream.

        • OptionaltranscodingMaxAudioChannels: number

          Optional. The maximum number of audio channels to transcode.

        • OptionalcpuCoreLimit: number

          Optional. The limit of how many cpu cores to use.

        • OptionalliveStreamId: string

          The live stream id.

        • OptionalenableMpegtsM2TsMode: boolean

          Optional. Whether to enable the MpegtsM2Ts mode.

        • OptionalvideoCodec: string

          Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url&#39;s extension.

        • OptionalsubtitleCodec: string

          Optional. Specify a subtitle codec to encode to.

        • OptionaltranscodeReasons: string

          Optional. The transcoding reason.

        • OptionalaudioStreamIndex: number

          Optional. The index of the audio stream to use. If omitted the first audio stream will be used.

        • OptionalvideoStreamIndex: number

          Optional. The index of the video stream to use. If omitted the first video stream will be used.

        • Optionalcontext: EncodingContext

          Optional. The MediaBrowser.Model.Dlna.EncodingContext.

        • OptionalstreamOptions: { [key: string]: string }

          Optional. The streaming options.

        • OptionalenableAudioVbrEncoding: boolean

          Optional. Whether to enable Audio Encoding.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>

    • mergeVersions:function
      • Parameters

        • ids: string[]

          Item id list. This allows multiple, comma delimited.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>