Store and use fragmentedText settings in localStorage
Created by: jeffcunat
fragmentedText initial settings were already stored in localStorage but never used. This PR allows to reuse previous subtitles settings stored in localStorage.
They are only used when loading a stream if
- settings streaming.lastMediaSettingsCachingInfo.enabled is true
- textDefaultEnabled is not explicitly false (can be undefined if setTextDefaultEnabled is not called)
- setInitialMediaSettingsFor('fragmentedText') has not been called to set preferred language and/or role
This means that, if no other settings are set, dash.js player will reuse previously used subtitles language/role when loading a new stream (like what is already done for audio content)
samples/captioning/multi-track-captions.html has been modified in order to test various settings combination (no more auto-load to be able to set settings before loading)