BA7-899 1.8.3 Warning: include(Zend\Gdata\Media\Extension\MediaFileSource.php)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BA7-899 1.8.3 Warning: include(Zend\Gdata\Media\Extension\MediaFileSource.php)

whisher
This post was updated on .

Hi.

I'm working on a project with zf 1.8.3 and I get the error in the subject (the script works with 1.9.*)

I should upload a file the code is quite the same

protected function _getFileSource(){
        $ext= ltrim(strtolower(strrchr($this->fileToUpload,'.')),'.');
        if($ext !== 'flv'){
           throw new Exception('Invalid extension'); 
        }
        $filesource = $this->yt->newMediaFileSource($this->fileToUpload);
        $filesource->setContentType('video/x-flv');
        $filesource->setSlug($this->fileToUpload);
        return $filesource;
    }
  
    protected function _uploadFile(){
        $myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
        /* ERROR */
        $myVideoEntry->setMediaSource($this->_getFileSource());
    }

Both Zend_Gdata_YouTube and Zend_Gdata_ClientLogin works

What's the 1.8.3 way ?

Thanks in advance. Bye