TTML Parser incorrectly scales root container region by cellResolution
Created by: davemevans
Environment
-
The MPD passes the DASH-IF Conformance Tool on http://dashif.org/conformance.html -
The stream has correct Access-Control-Allow-Origin headers (CORS) -
There are no network errors such as 404s in the browser console when trying to play the stream -
The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ -
The issue occurrs in the latest reference client on http://dashif.org/reference/players/javascript/ and not just on my page - Link to playable MPD file: http://rdmedia.bbc.co.uk/dash/ondemand/elephants_dream/1/client_manifest-snake.mpd
- Dash.js version: dev + https://github.com/Dash-Industry-Forum/dash.js/pull/1427
- Browser name/version: Chrome 50.0.2661.102
- OS name/version: Win7
Steps to reproduce
Play MPD linked above. Occurs 100% of the time.
Observed behaviour
Root Container Region is being vertically scaled by some ratio of the cellResolution. This can be observed by inspecting the elements in the developer tools. I don't think this is correct. EBU 3380 states 'If the related media object is a video media object then the rendering plane shall be coincident with the rendering plane of the video media object' which I assume to mean it is the same size. The cell resolution is used for calculating line padding, font size etc, but the container should not be scaled by it.
I tried simply removing the "aspect ratio" passed to getVideoVisibleVideoSize
from checkVideoSize
but this appears to cause other scaling issues.
Console output
N/A