loadSubtitleContent

actual suspend fun loadSubtitleContent(src: String): String

Android implementation of the loadSubtitleContent function. Loads subtitle content from a local file or a remote URL.

Return

The content of the subtitle file as a string

Parameters

src

The source URI of the subtitle file

expect suspend fun loadSubtitleContent(src: String): String

Loads the content of a subtitle file from the given source. This is implemented in a platform-specific way.

actual suspend fun loadSubtitleContent(src: String): String

iOS implementation of the loadSubtitleContent function. Loads subtitle content from a local file or a remote URL.

Return

The content of the subtitle file as a string

Parameters

src

The source URI of the subtitle file

actual suspend fun loadSubtitleContent(src: String): String

JVM implementation of the loadSubtitleContent function. Loads subtitle content from a local file or a remote URL.

Return

The content of the subtitle file as a string

Parameters

src

The source URI of the subtitle file

actual suspend fun loadSubtitleContent(src: String): String

WASM JS implementation of the loadSubtitleContent function. Loads subtitle content from a URL using XMLHttpRequest.

Return

The content of the subtitle file as a string

Parameters

src

The source URI of the subtitle file