Quote:
|
Format: MP3 or whatever was chosen
|
To get the file type/extension:
In index.php, you can get the value of $_POST['ftype'] and then access the corresponding key of Config::_convertedFileTypes array, i.e.:
PHP Code:
echo $ftypes[$_POST['ftype']]['fileExt'];
Quote:
|
Status: 0 - 100% (without Progressbar)
|
To eliminate progress bar and just show percentage:
In css/styles.css, you will need to edit #progress-bar and #progress styles.
In index.php, change this line:
PHP Code:
echo '<div id="progress-bar"><div id="progress">0%</div></div>';
...to ...
PHP Code:
echo '<div id="progress-bar">Status: <div id="progress">0%</div></div>';
And change this line in updateVideoDownloadProgress javascript function:
Code:
progress.style.width = progress.innerHTML = parseInt(percentage) + '%';
...to...
Code:
progress.innerHTML = parseInt(percentage) + '%';
And change this line in updateConversionProgress javascript function:
Code:
progress.style.width = progress.innerHTML = parseInt(retVals[1]) + '%';
...to...
Code:
progress.innerHTML = parseInt(retVals[1]) + '%';
Quote:
|
and when the conversion is completed
|
To do that, it's a little tricky. There isn't an easy way to explain how to do that, but I assure you, it is possible. You need to play with the javascript in updateConversionProgress function and possibly in window.onload event handler as well. It's a matter of toggling the display of elements that you want to be visible and those that you want hidden, following video conversion,
via javascript.
Edit: I hope that helps a little bit. That should get you going in the right direction. As you can see, there is more going on here than just changing the CSS styles.
If you need me to write the code for you, then I will need to charge you for the additional work and time spent. Unfortunately, I've got too much going on here at the moment to do the work for free.