Skip to content

onManifestUpdated and getStreamsInfo optimizations

Created by: Gontran-Molotov

This PR optimizes the StreamController.onManifestUpdated() method. It removes the manifest passed as argument to adapter.getStreamsInfo() because the DashAdapter instance already got regular periods for the current manifest. So it is useless to re-analyze the manifest once again to get them.

This PR also adds a new limit argument to DashAdapter.getStreamsInfo(). It allows to specify for how many streams we want to get info. Currently, some classes calls getStreamInfos() to uselessly get info for all streams but only use the first one.

Merge request reports