Fix undefined fragData when using parsed manifest object
Created by: CaliAlec
Fixes https://github.com/Dash-Industry-Forum/dash.js/issues/2088
When you initialize the stream with a parsed manifest object instead of the URL of a MPD, getStreamStartTime
in PlaybackController
tries to get the parsed media fragments but it's undefined since the parsing is never done for a parsed manifest object, it's only parsed from the URL of an MPD.
Example manifest that is passed in as a string to the parser: https://gist.github.com/CaliAlec/4ae753844344aab7da98e2418b22a624
In order to parse the manifest string, I'm using internal classes:
const manifest = MANIFEST_STRING;
const parser = DashParser().create();
const xlink = XLinkController().create({});
const mpd = parser.parse(manifest, xlink);