MediaInfoApi - functional programming interface

  • Parameters

    Returns {
        closeLiveStream(liveStreamId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        getBitrateTestBytes(size?: number, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        getPlaybackInfo(itemId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlaybackInfoResponse>)>;
        getPostedPlaybackInfo(itemId: string, userId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, mediaSourceId?: string, liveStreamId?: string, autoOpenLiveStream?: boolean, enableDirectPlay?: boolean, enableDirectStream?: boolean, enableTranscoding?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, playbackInfoDto?: PlaybackInfoDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlaybackInfoResponse>)>;
        openLiveStream(openToken?: string, userId?: string, playSessionId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, itemId?: string, enableDirectPlay?: boolean, enableDirectStream?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, openLiveStreamDto?: OpenLiveStreamDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<LiveStreamResponse>)>;
    }

    • closeLiveStream:function
      • Parameters

        • liveStreamId: string

          The livestream id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Closes a media source.

    • getBitrateTestBytes:function
      • Parameters

        • Optionalsize: number

          The bitrate. Defaults to 102400.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Tests the network with a request with the size of the bitrate.

    • getPlaybackInfo:function
      • Parameters

        • itemId: string

          The item id.

        • OptionaluserId: string

          The user id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets live playback media info for an item.

    • getPostedPlaybackInfo:function
      • For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.

        Parameters

        • itemId: string

          The item id.

        • OptionaluserId: string

          The user id.

        • OptionalmaxStreamingBitrate: number

          The maximum streaming bitrate.

        • OptionalstartTimeTicks: number

          The start time in ticks.

        • OptionalaudioStreamIndex: number

          The audio stream index.

        • OptionalsubtitleStreamIndex: number

          The subtitle stream index.

        • OptionalmaxAudioChannels: number

          The maximum number of audio channels.

        • OptionalmediaSourceId: string

          The media source id.

        • OptionalliveStreamId: string

          The livestream id.

        • OptionalautoOpenLiveStream: boolean

          Whether to auto open the livestream.

        • OptionalenableDirectPlay: boolean

          Whether to enable direct play. Default: true.

        • OptionalenableDirectStream: boolean

          Whether to enable direct stream. Default: true.

        • OptionalenableTranscoding: boolean

          Whether to enable transcoding. Default: true.

        • OptionalallowVideoStreamCopy: boolean

          Whether to allow to copy the video stream. Default: true.

        • OptionalallowAudioStreamCopy: boolean

          Whether to allow to copy the audio stream. Default: true.

        • OptionalplaybackInfoDto: PlaybackInfoDto

          The playback info.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets live playback media info for an item.

    • openLiveStream:function
      • Parameters

        • OptionalopenToken: string

          The open token.

        • OptionaluserId: string

          The user id.

        • OptionalplaySessionId: string

          The play session id.

        • OptionalmaxStreamingBitrate: number

          The maximum streaming bitrate.

        • OptionalstartTimeTicks: number

          The start time in ticks.

        • OptionalaudioStreamIndex: number

          The audio stream index.

        • OptionalsubtitleStreamIndex: number

          The subtitle stream index.

        • OptionalmaxAudioChannels: number

          The maximum number of audio channels.

        • OptionalitemId: string

          The item id.

        • OptionalenableDirectPlay: boolean

          Whether to enable direct play. Default: true.

        • OptionalenableDirectStream: boolean

          Whether to enable direct stream. Default: true.

        • OptionalalwaysBurnInSubtitleWhenTranscoding: boolean

          Always burn-in subtitle when transcoding.

        • OptionalopenLiveStreamDto: OpenLiveStreamDto

          The open live stream dto.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Opens a media source.