mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-02 15:17:46 +01:00
Merge branch 'danog:v8' into story
This commit is contained in:
commit
863f063c7a
@ -106,14 +106,15 @@ final class ResponseInfo
|
||||
}
|
||||
$seek_start = empty($seek_start) ? 0 : \abs(\intval($seek_start));
|
||||
|
||||
/*if ($range !== '') {
|
||||
$isSafari = !empty($headers['user-agent']) && preg_match('/^((?!chrome|android).)*safari/i', $headers['user-agent']);
|
||||
if ($range !== '' && $isSafari) {
|
||||
//Safari video streaming fix
|
||||
$length = ($seek_end - $seek_start + 1);
|
||||
$maxChunkSize = 10 * 1024 ** 2;
|
||||
if ($length > $maxChunkSize) {
|
||||
$seek_end = $seek_start + $maxChunkSize - 1;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
$this->serve = $method !== 'HEAD';
|
||||
if ($seek_start > 0 || $seek_end < $size - 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user