I am using joedawson / youtube laravel package. I have an issue with the video upload. I first upload the video to my project folder using below code:
if ($this->uploaded_video) {
$filename = $this->uploaded_video->getFilename();
$this->uploaded_video->storeAs('public/instruction-videos', $filename);
}
It's uploaded successfully to project folder and i can access the video in browser by getting the url from below code
$fullpath = asset('storage/instruction-videos/'.$filename);
I can see the video in browser by accessing the path which I get from the above code snippet.
I upload the video to youtube using below code
$video = Youtube::upload($fullpath, ['title'=> 'title','description' => 'description'],'unlisted');
But I get the below error when I upload it to youtube