File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ class Options
126
126
private ?string $ externalDownloader = null ;
127
127
private ?string $ externalDownloaderArgs = null ;
128
128
private ?string $ downloadSections = null ;
129
+ private ?int $ concurrentFragments = null ;
129
130
130
131
// Filesystem Options
131
132
private ?string $ batchFile = null ;
@@ -1541,6 +1542,18 @@ public function downloadSections(?string $downloadSections): self
1541
1542
return $ new ;
1542
1543
}
1543
1544
1545
+ /**
1546
+ * Number of fragments of a dash/hlsnative
1547
+ * video that should be downloaded concurrently (default is 1).
1548
+ */
1549
+ public function concurrentFragments (?int $ concurrentFragments ): self
1550
+ {
1551
+ $ new = clone $ this ;
1552
+ $ new ->concurrentFragments = $ concurrentFragments ;
1553
+
1554
+ return $ new ;
1555
+ }
1556
+
1544
1557
/**
1545
1558
* Force keyframes at cuts when downloading/splitting/removing sections.
1546
1559
* This is slow due to needing a re-encode, but the resulting video
@@ -1829,6 +1842,7 @@ public function toArray(): array
1829
1842
'external-downloader ' => $ this ->externalDownloader ,
1830
1843
'external-downloader-args ' => $ this ->externalDownloaderArgs ,
1831
1844
'download-sections ' => $ this ->downloadSections ,
1845
+ 'concurrent-fragments ' => $ this ->concurrentFragments ,
1832
1846
// Filesystem Options
1833
1847
'batch-file ' => $ this ->batchFile ,
1834
1848
'id ' => $ this ->id ,
You can’t perform that action at this time.
0 commit comments