View Single Post
Old 10-06-2012, 09:24 PM   PM User | #498
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by dareweb View Post
Can you help me please to make my script work?
If you have PHP code that needs to be executed after a completed conversion, then you need to put that code in ffmpeg_progress.php, inside the following existing condition:

PHP Code:
                    if (is_file(realpath(Config::_SONGFILEDIR $mp3File)))
                    {
                        
$conversionSuccess 1;
                    } 
If you are using another class, then you will have to instantiate it at the top of ffmpeg_progress.php. And if you need certain conversion data that you don't already have in ffmpeg_progress.php, then you will have to pass the data as additional parameters to the AJAX call in index.php.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote