HlsSegmentApi - functional programming interface

  • Parameters

    Returns {
        getHlsAudioSegmentLegacyAac(itemId: string, segmentId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        getHlsAudioSegmentLegacyMp3(itemId: string, segmentId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        getHlsPlaylistLegacy(itemId: string, playlistId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        getHlsVideoSegmentLegacy(itemId: string, playlistId: string, segmentId: string, segmentContainer: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        stopEncodingProcess(deviceId: string, playSessionId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
    }

    • getHlsAudioSegmentLegacyAac:function
      • Parameters

        • itemId: string

          The item id.

        • segmentId: string

          The segment id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets the specified audio segment for an audio item.

    • getHlsAudioSegmentLegacyMp3:function
      • Parameters

        • itemId: string

          The item id.

        • segmentId: string

          The segment id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets the specified audio segment for an audio item.

    • getHlsPlaylistLegacy:function
      • Parameters

        • itemId: string

          The video id.

        • playlistId: string

          The playlist id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets a hls video playlist.

    • getHlsVideoSegmentLegacy:function
      • Parameters

        • itemId: string

          The item id.

        • playlistId: string

          The playlist id.

        • segmentId: string

          The segment id.

        • segmentContainer: string

          The segment container.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Gets a hls video segment.

    • stopEncodingProcess:function
      • Parameters

        • deviceId: string

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

        • playSessionId: string

          The play session id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

        Stops an active encoding.