AudioDidact\SupportedSites\SupportedSite::downloadWithPercentage
Download the video to $localFile with a given $url While downloading output progress to UI as JSON array
Signature
protected function downloadWithPercentage(
$url,
$localFile )
Parameters
$url
—
$localFile
—
Returns
- bool
Errors/Exceptions
-
Exception
Test Coverage
Information
- Coverage: 26/30 Lines (86.666666666667%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — SoundCloudTest::testDownload
- [ PASSED ] — VimeoTest::testDownload
- [ PASSED ] — YouTubeTest::testDownload