Layout - Change duration dynamically?

Hi,
Is it currently possible to increase the duration of a displayed layout by code? Or any way to attain that effect of displaying a webpage/video with a dynamical duration?

Thanks in advance

So I assume there’s no way to do it and I shouldn’t expect it to be implemented in the near future.