SubtitleApi

class SubtitleApi(api: ApiClient) : Api

Constructors

Link copied to clipboard
fun SubtitleApi(api: ApiClient)

Functions

Link copied to clipboard
suspend fun deleteSubtitle(itemId: <ERROR CLASS>, index: Int): Response<Unit>

Deletes an external subtitle file.

Link copied to clipboard
suspend fun downloadRemoteSubtitles(itemId: <ERROR CLASS>, subtitleId: String): Response<Unit>

Downloads a remote subtitle.

Link copied to clipboard
suspend fun getFallbackFont(name: String): Response<ByteReadChannel>

Gets a fallback font file.

Link copied to clipboard
suspend fun getFallbackFontList(): Response<List<<ERROR CLASS>>>

Gets a list of available fallback font files.

Link copied to clipboard
fun getFallbackFontUrl(name: String, includeCredentials: Boolean = true): String

Gets a fallback font file.

Link copied to clipboard
suspend fun getRemoteSubtitles(id: String): Response<String>

Gets the remote subtitles.

Link copied to clipboard
suspend fun getSubtitle(    routeItemId: <ERROR CLASS>,     routeMediaSourceId: String,     routeIndex: Int,     routeFormat: String,     endPositionTicks: Long? = null,     copyTimestamps: Boolean? = false,     addVttTimeMap: Boolean? = false,     startPositionTicks: Long? = 0): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitleDeprecated(    routeItemId: <ERROR CLASS>,     routeMediaSourceId: String,     routeIndex: Int,     routeFormat: String,     itemId: <ERROR CLASS>? = null,     mediaSourceId: String? = null,     index: Int? = null,     format: String? = null,     endPositionTicks: Long? = null,     copyTimestamps: Boolean? = false,     addVttTimeMap: Boolean? = false,     startPositionTicks: Long? = 0): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitlePlaylist(    itemId: <ERROR CLASS>,     index: Int,     mediaSourceId: String,     segmentLength: Int): Response<ByteReadChannel>

Gets an HLS subtitle playlist.

Link copied to clipboard
fun getSubtitlePlaylistUrl(    itemId: <ERROR CLASS>,     index: Int,     mediaSourceId: String,     segmentLength: Int,     includeCredentials: Boolean = true): String

Gets an HLS subtitle playlist.

Link copied to clipboard
suspend fun getSubtitleWithTicks(    routeItemId: <ERROR CLASS>,     routeMediaSourceId: String,     routeIndex: Int,     routeStartPositionTicks: Long,     routeFormat: String,     endPositionTicks: Long? = null,     copyTimestamps: Boolean? = false,     addVttTimeMap: Boolean? = false): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun getSubtitleWithTicksDeprecated(    routeItemId: <ERROR CLASS>,     routeMediaSourceId: String,     routeIndex: Int,     routeStartPositionTicks: Long,     routeFormat: String,     itemId: <ERROR CLASS>? = null,     mediaSourceId: String? = null,     index: Int? = null,     startPositionTicks: Long? = null,     format: String? = null,     endPositionTicks: Long? = null,     copyTimestamps: Boolean? = false,     addVttTimeMap: Boolean? = false): Response<String>

Gets subtitles in a specified format.

Link copied to clipboard
suspend fun searchRemoteSubtitles(    itemId: <ERROR CLASS>,     language: String,     isPerfectMatch: Boolean? = null): Response<List<<ERROR CLASS>>>

Search remote subtitles.

Link copied to clipboard
suspend fun uploadSubtitle(itemId: <ERROR CLASS>, data: <ERROR CLASS>): Response<Unit>

Upload an external subtitle file.