for you have been following my blog and postings will see that I have been looking at creating a player that will enable me to fade/slide volume over time. I have now written a function that enables you to do just that. Following my logic, you can also add additional screens/functions into RuneAudio. I will be looking at changing to a specific playlist at a pre-specified time.
Here is the screenshot:
- Screenshot
- fade.jpg (61.69 KiB) Viewed 15364 times
Here is the instructions (first by hand if you want to see the logic) then automated with the attached tar file:
By Hand:
Installing Volume Fade Over Time:
1. "pacman -S bc"
2. "vi /var/www/app/templates/header.php"
add after line 79:
<li class="<?=$this->uri(1, 'fade', 'active')?>"><a href="/fade/"><i class="fa fa-volume-up"></i> Fade</a></li>
NOTE: http://fortawesome.github.io/Font-Awesome/icons/ has all the fa-FONTS
3. dump fade.php into "/var/www/app/templates/"
4. dump "mpc_fade" to /var/www/
5. "cd /var/www/app"
"cp credits_ctl.php fade_ctl.php"
6. "vi /var/www/index.php"
add after line 56:
"'fade',"
without the ""
7. Restart your system
Auto:
1. "pacman -S bc"
2. "cd /var/www"
3. "tar -xvf fade.tar"
4. Restart your system.
cool hey?
cyber7 (aka Aubrey Kloppers; Cape Town; South Africa)