Skip to content

Commit

Permalink
[MSL] write Role for forced subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
liberty-developer committed Nov 13, 2018
1 parent 58c85cf commit 6e6c426
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/lib/MSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6e6c426

Please sign in to comment.