Skip to content

Commit

Permalink
Revert "Fix: safari requires one big range of video"
Browse files Browse the repository at this point in the history
This reverts commit 7a94691.
  • Loading branch information
danog committed Apr 17, 2023
1 parent 8ae9696 commit b2a8038
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/MTProtoTools/ResponseInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ private function __construct(string $method, array $headers, array $messageMedia
}
$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;
Expand Down

0 comments on commit b2a8038

Please sign in to comment.