getSubtitle

suspend fun getSubtitle(routeItemId: <Error class: unknown 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.

Parameters

routeItemId

The (route) item id.

routeMediaSourceId

The (route) media source id.

routeIndex

The (route) subtitle stream index.

routeFormat

The (route) format of the returned subtitle.

endPositionTicks

Optional. The end position of the subtitle in ticks.

copyTimestamps

Optional. Whether to copy the timestamps.

addVttTimeMap

Optional. Whether to add a VTT time map.

startPositionTicks

The start position of the subtitle in ticks.


suspend fun getSubtitle(request: <Error class: unknown class>): Response<String>

Gets subtitles in a specified format.

Parameters

request

The request parameters