Too restrictive TTML timestamp fraction regexp
Created by: TobbeMobiTV
The regexp for parsing the TTML timestamp (TTMLParser.js line 48) is too restrictive since it looks for exactly 3 digits in the fraction, while the standard says 1 or more :
timingRegex = /^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])((\.[0-9][0-9][0-9])|(:[0-9][0-9]))$/
The test content from BBC (which uses 2 digits) therefore doesn't render properly. The URL to that content is http://rdmedia.bbc.co.uk/dash/ondemand/elephants_dream/1/client_manifest-one_representation_per_component.mpd and its corresponding TTML source is: http://rdmedia.bbc.co.uk/dash/ondemand/elephants_dream/1/elephantsdream_25fps.ebuttd.xml
Replacing (.[0-9][0-9][0-9]) with (.[0-9]+) should fix this issue.