@@ -108,7 +108,7 @@ |
||
108 | 108 | if (preg_match('/^#EXT-X-BYTERANGE:(\d+)(@(\d+))?$/', $line, $matches)) { |
109 | 109 | $data['playlist'][$mediaSequence]['byteRangeLength'] = (int) $matches[1]; |
110 | 110 | if (isset($matches[3])) { |
111 | - $data['playlist'][$mediaSequence]['byteRangeOffset'] = (int) $matches[3]; |
|
111 | + $data['playlist'][$mediaSequence]['byteRangeOffset'] = (int) $matches[3]; |
|
112 | 112 | } |
113 | 113 | continue; |
114 | 114 | } |
@@ -28,9 +28,9 @@ |
||
28 | 28 | $this->isDiscontinuity = $isDiscontinuity; |
29 | 29 | $this->title = $title; |
30 | 30 | $this->byterange = \SplFixedArray::fromArray( |
31 | - array($byteRangeLength, |
|
32 | - is_null($byteRangeLength) ? null : $byteRangeOffset), |
|
33 | - false); |
|
31 | + array($byteRangeLength, |
|
32 | + is_null($byteRangeLength) ? null : $byteRangeOffset), |
|
33 | + false); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function getUri() |
@@ -38,12 +38,12 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | if (!is_null($mediaSegment->getByterangeFixed()[0])) { |
41 | - $lines[] = sprintf( |
|
41 | + $lines[] = sprintf( |
|
42 | 42 | '#EXT-X-BYTERANGE:%d%s%d', |
43 | 43 | $mediaSegment->getByteRangeFixed()[0], |
44 | 44 | is_null($mediaSegment->getByteRangeFixed()[1]) ? null : '@', |
45 | 45 | $mediaSegment->getByteRangeFixed()[1] |
46 | - ); |
|
46 | + ); |
|
47 | 47 | |
48 | 48 | } |
49 | 49 |