extractStreamLinks
suspend fun extractStreamLinks(script: String, sourceName: String, mainUrl: String, callback: (ExtractorLink) -> Unit, subtitleCallback: (SubtitleFile) -> Unit, headers: Map<String, String> = mapOf()): Boolean(source)
Get stream links the "sources" attribute inside a JWPlayer script, e.g.
<script>
jwplayer("vplayer").setup({
sources: [{
file: "https://example.com/master.m3u8",
}],
tracks: [{
file: "https://example.com/subtitles.vtt",
kind: "captions",
label: "en",
}],
}Content copied to clipboard
Return
whether any extractor or subtitle link was found
Parameters
script
The content of a HTML