PlaystateApi - axios parameter creator

  • Parameters

    Returns {
        markPlayedItem: (
            itemId: string,
            userId?: string,
            datePlayed?: string,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        markUnplayedItem: (
            itemId: string,
            userId?: string,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        onPlaybackProgress: (
            itemId: string,
            mediaSourceId?: string,
            positionTicks?: number,
            audioStreamIndex?: number,
            subtitleStreamIndex?: number,
            volumeLevel?: number,
            playMethod?: PlayMethod,
            liveStreamId?: string,
            playSessionId?: string,
            repeatMode?: RepeatMode,
            isPaused?: boolean,
            isMuted?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        onPlaybackStart: (
            itemId: string,
            mediaSourceId?: string,
            audioStreamIndex?: number,
            subtitleStreamIndex?: number,
            playMethod?: PlayMethod,
            liveStreamId?: string,
            playSessionId?: string,
            canSeek?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        onPlaybackStopped: (
            itemId: string,
            mediaSourceId?: string,
            nextMediaType?: string,
            positionTicks?: number,
            liveStreamId?: string,
            playSessionId?: string,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        pingPlaybackSession: (
            playSessionId: string,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        reportPlaybackProgress: (
            playbackProgressInfo?: PlaybackProgressInfo,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        reportPlaybackStart: (
            playbackStartInfo?: PlaybackStartInfo,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        reportPlaybackStopped: (
            playbackStopInfo?: PlaybackStopInfo,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
    }

    • markPlayedItem: (
          itemId: string,
          userId?: string,
          datePlayed?: string,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • markUnplayedItem: (
          itemId: string,
          userId?: string,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • onPlaybackProgress: (
          itemId: string,
          mediaSourceId?: string,
          positionTicks?: number,
          audioStreamIndex?: number,
          subtitleStreamIndex?: number,
          volumeLevel?: number,
          playMethod?: PlayMethod,
          liveStreamId?: string,
          playSessionId?: string,
          repeatMode?: RepeatMode,
          isPaused?: boolean,
          isMuted?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • onPlaybackStart: (
          itemId: string,
          mediaSourceId?: string,
          audioStreamIndex?: number,
          subtitleStreamIndex?: number,
          playMethod?: PlayMethod,
          liveStreamId?: string,
          playSessionId?: string,
          canSeek?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • onPlaybackStopped: (
          itemId: string,
          mediaSourceId?: string,
          nextMediaType?: string,
          positionTicks?: number,
          liveStreamId?: string,
          playSessionId?: string,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • pingPlaybackSession: (playSessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • reportPlaybackProgress: (
          playbackProgressInfo?: PlaybackProgressInfo,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • reportPlaybackStart: (
          playbackStartInfo?: PlaybackStartInfo,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • reportPlaybackStopped: (
          playbackStopInfo?: PlaybackStopInfo,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>