- PlaystateApiFp(
configuration?: Configuration,
): {
markPlayedItem(
itemId: string,
userId?: string,
datePlayed?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>;
markUnplayedItem(
itemId: string,
userId?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>;
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<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
onPlaybackStart(
itemId: string,
mediaSourceId?: string,
audioStreamIndex?: number,
subtitleStreamIndex?: number,
playMethod?: PlayMethod,
liveStreamId?: string,
playSessionId?: string,
canSeek?: boolean,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
onPlaybackStopped(
itemId: string,
mediaSourceId?: string,
nextMediaType?: string,
positionTicks?: number,
liveStreamId?: string,
playSessionId?: string,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
pingPlaybackSession(
playSessionId: string,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackProgress(
playbackProgressInfo?: PlaybackProgressInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackStart(
playbackStartInfo?: PlaybackStartInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackStopped(
playbackStopInfo?: PlaybackStopInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
} Returns {
markPlayedItem(
itemId: string,
userId?: string,
datePlayed?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>;
markUnplayedItem(
itemId: string,
userId?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>;
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<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
onPlaybackStart(
itemId: string,
mediaSourceId?: string,
audioStreamIndex?: number,
subtitleStreamIndex?: number,
playMethod?: PlayMethod,
liveStreamId?: string,
playSessionId?: string,
canSeek?: boolean,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
onPlaybackStopped(
itemId: string,
mediaSourceId?: string,
nextMediaType?: string,
positionTicks?: number,
liveStreamId?: string,
playSessionId?: string,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
pingPlaybackSession(
playSessionId: string,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackProgress(
playbackProgressInfo?: PlaybackProgressInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackStart(
playbackStartInfo?: PlaybackStartInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
reportPlaybackStopped(
playbackStopInfo?: PlaybackStopInfo,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
>;
}
markPlayedItem:function
- markPlayedItem(
itemId: string,
userId?: string,
datePlayed?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
> Parameters
- itemId: string
Optional
userId: stringOptional
datePlayed: stringOptional
options: RawAxiosRequestConfig
Returns Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>
markUnplayedItem:function
- markUnplayedItem(
itemId: string,
userId?: string,
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
> Parameters
- itemId: string
Optional
userId: stringOptional
options: RawAxiosRequestConfig
Returns Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<UserItemDataDto>,
>
onPlaybackProgress:function
- 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<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Parameters
- itemId: string
Optional
mediaSourceId: stringOptional
positionTicks: numberOptional
audioStreamIndex: numberOptional
subtitleStreamIndex: numberOptional
volumeLevel: numberOptional
playMethod: PlayMethodOptional
liveStreamId: stringOptional
playSessionId: stringOptional
repeatMode: RepeatModeOptional
isPaused: booleanOptional
isMuted: booleanOptional
options: RawAxiosRequestConfig
Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
onPlaybackStart:function
- onPlaybackStart(
itemId: string,
mediaSourceId?: string,
audioStreamIndex?: number,
subtitleStreamIndex?: number,
playMethod?: PlayMethod,
liveStreamId?: string,
playSessionId?: string,
canSeek?: boolean,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Parameters
- itemId: string
Optional
mediaSourceId: stringOptional
audioStreamIndex: numberOptional
subtitleStreamIndex: numberOptional
playMethod: PlayMethodOptional
liveStreamId: stringOptional
playSessionId: stringOptional
canSeek: booleanOptional
options: RawAxiosRequestConfig
Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
onPlaybackStopped:function
- onPlaybackStopped(
itemId: string,
mediaSourceId?: string,
nextMediaType?: string,
positionTicks?: number,
liveStreamId?: string,
playSessionId?: string,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Parameters
- itemId: string
Optional
mediaSourceId: stringOptional
nextMediaType: stringOptional
positionTicks: numberOptional
liveStreamId: stringOptional
playSessionId: stringOptional
options: RawAxiosRequestConfig
Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
pingPlaybackSession:function
- pingPlaybackSession(
playSessionId: string,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Parameters
- playSessionId: string
Optional
options: RawAxiosRequestConfig
Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
reportPlaybackProgress:function
- reportPlaybackProgress(
playbackProgressInfo?: PlaybackProgressInfo,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
reportPlaybackStart:function
- reportPlaybackStart(
playbackStartInfo?: PlaybackStartInfo,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
reportPlaybackStopped:function
- reportPlaybackStopped(
playbackStopInfo?: PlaybackStopInfo,
options?: RawAxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> Parameters
Optional
playbackStopInfo: PlaybackStopInfoOptional
options: RawAxiosRequestConfig
Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>
PlaystateApi - functional programming interface
Export