We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access protected property YouTube\Models\VideoDetails::$videoDetails
try { $downloadOptions = $youtube->getDownloadLinks("https://www.youtube.com/watch?v=aqz-KE-bpKQ"); if ($downloadOptions->getAllFormats()) { $info = $downloadOptions->getInfo(); echo $info->videoDetails['title']; } else { echo 'No links found'; } } catch (YouTubeException $e) { echo 'Something went wrong: ' . $e->getMessage(); }
When we need additional information and call $videoDetails property of video we get an error.
For solution i changed this code inside YouTube\Models\VideoDetails;
YouTube\Models\VideoDetails;
public $videoDetails = array(); public function __construct($videoDetails) { $this->videoDetails = $videoDetails; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cannot access protected property YouTube\Models\VideoDetails::$videoDetails
When we need additional information and call $videoDetails property of video we get an error.
For solution i changed this code inside
YouTube\Models\VideoDetails;
The text was updated successfully, but these errors were encountered: