From b2a8038b30d430972e187d4043038cc33ee40457 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 18 Apr 2023 00:07:42 +0200 Subject: [PATCH] Revert "Fix: safari requires one big range of video" This reverts commit 7a946911b9bbc8fb77fde678af965c5263f6e2e1. --- src/MTProtoTools/ResponseInfo.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/MTProtoTools/ResponseInfo.php b/src/MTProtoTools/ResponseInfo.php index 95309e78c..b668db2e9 100644 --- a/src/MTProtoTools/ResponseInfo.php +++ b/src/MTProtoTools/ResponseInfo.php @@ -100,13 +100,6 @@ final class ResponseInfo } $seek_start = empty($seek_start) ? 0 : \abs(\intval($seek_start)); - //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) { $this->code = HttpStatus::PARTIAL_CONTENT;