From 6e6c4263a02c9162e1ce63015edc0c6432be619b Mon Sep 17 00:00:00 2001 From: liberty-developer Date: Tue, 13 Nov 2018 15:51:23 +0100 Subject: [PATCH] [MSL] write Role for forced subtitles --- resources/lib/MSL.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/MSL.py b/resources/lib/MSL.py index 57eb46a6c..79f703fa0 100644 --- a/resources/lib/MSL.py +++ b/resources/lib/MSL.py @@ -464,6 +464,11 @@ def __tranform_to_dash(self, manifest): codecs='wvtt' if downloadable.get('contentProfile') == 'webvtt-lssdh-ios8' else 'stpp', contentType='text', mimeType='text/vtt' if downloadable.get('contentProfile') == 'webvtt-lssdh-ios8' else 'application/ttml+xml') + role = ET.SubElement( + parent=subtiles_adaption_set, + tag = 'Role', + schemeIdUri = 'urn:mpeg:dash:role:2011', + value = 'forced' if text_track.get('isForced') == True else 'main') rep = ET.SubElement( parent=subtiles_adaption_set, tag='Representation',