I created this topic some days ago, but it was closed without I have a chance to reply CEA-608 support for Android
@ludovic.michaud Sorry if I was not clear, but I’m trying to play a HLS stream with CEA-608. I tested it on our Bitmovin web player and it worked, but it didn’t work on the Android player (currently running version 3.75.0).
I also tested the provided dash stream and I confirm that works.
Does the Bitmovin Android Player has CEA-608 support for HLS streams as well?
Summary of the issue, the Multivariant playlist is specifying CLOSED-CAPTIONS=NONE so the player is ignoring the subtitles.
You can either modify it manually, or use the Network API to modify it on the fly.
Example :
val networkConfig = NetworkConfig()
networkConfig.preprocessHttpResponseCallback = PreprocessHttpResponseCallback { type, response ->
if (type == HttpRequestType.ManifestHlsMaster) {
// do something (e.g. rewrite) for response.body
var manifest = String(response.body)
manifest = manifest.replace("CLOSED-CAPTIONS=NONE", "CLOSED-CAPTIONS=\"CC1\"")
response.body = manifest.toByteArray()
}
CompletableFuture.completedFuture(response)
}
player.config.networkConfig = networkConfig
The web player shows the subtitles although they are not referenced in the manifest, but other platforms such as the Android Native SDK, Safari Native player etc, will not show the subtitle unless they are mentioned in the manifest.