Wrong capping of live delay for Live streaming
Created by: jeffcunat
It seems that the capping calculation for the live delay can be far less than expected.
Let's say you set player.updateSettings({ 'streaming': { 'liveDelay': 16 }})
Let's say you have a 30s DVR Window size, it is divided by 2 in https://github.com/Dash-Industry-Forum/dash.js/blob/9291d30ca8a85bfa7ce934dc9e6cc905c46bafea/src/streaming/controllers/ScheduleController.js#L410
passed to computeLiveDelay function, it is again divided by 2 to cap the live delay. https://github.com/Dash-Industry-Forum/dash.js/blob/9291d30ca8a85bfa7ce934dc9e6cc905c46bafea/src/streaming/controllers/PlaybackController.js#L257
In our case 30 / 2 / 2 = 7.5s which can be to close to the live edge and a lot less that what we have configured (16s)
I would suggest not to divide twice dvrWindowSize