Skip to content
Snippets Groups Projects
Commit 196e5589 authored by Koen J's avatar Koen J
Browse files

Fixed DASH generation with subtitles.

parent 8950bd94
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,8 @@ class DashBuilder : XMLBuilder {
fun withRepresentationOnDemand(id: String, subtitleSource: ISubtitleSource, subtitleUrl: String) {
withRepresentation(id, mapOf(
Pair("mimeType", subtitleSource.format ?: "text/vtt"),
Pair("startWithSAP", "1"),
Pair("default", "true"),
Pair("lang", "en"),
Pair("bandwidth", "1000")
)) {
it.withBaseURL(subtitleUrl)
......@@ -151,7 +152,7 @@ class DashBuilder : XMLBuilder {
)
) {
//TODO: Verify if & really should be replaced like this?
it.withRepresentationOnDemand("1", subtitleSource, subtitleUrl.replace("&", "&"))
it.withRepresentationOnDemand("caption_en", subtitleSource, subtitleUrl.replace("&", "&"))
}
}
//Video
......@@ -164,7 +165,7 @@ class DashBuilder : XMLBuilder {
Pair("subsegmentStartsWithSAP", "1")
)
) {
it.withRepresentationOnDemand("1", vidSource, vidUrl.replace("&", "&"));
it.withRepresentationOnDemand("2", vidSource, vidUrl.replace("&", "&"));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment