I've used this code to send a video using an action in CakePHP:
$response = $this->response->withFile(WWW_ROOT.'Component.webm',['download' => false]);
and inside template:
<video class="img-responsive" controls>
<source src="<?= Router::url(['controller' => 'posts', 'action' => 'stream', $id]) ?>" />
</video>
everything works great in Microsoft Edge. But when I view the page inside Google Chrome and I start playing the video I cannot visit any other page of my site, until the video is downloaded completely, and after 30 seconds, if the video is not downloaded this error is shown:
Maximum execution time of 30 seconds exceeded
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…