I actually considered making a similar change. I wanted to move the list to a div on the left side of the screen using css flexbox and use another div on the right to display the player. Using jQuery, I would then load the player into the div on the right anytime an album folder is clicked from the list on the left (without reloading the whole page). I also wanted to add playlists and make it so individual songs could be added and removed from the playlists. I just haven't gotten around to doing...
I actually considered making a similar change. I wanted to move the list to the left side of the screen using css flexbox and use another div on the right to display the player. Using jQuery, I would then load the player into the div on the right anytime an album folder is clicked from the list on the left. I also wanted to add playlists and make it so individual songs could be added and removed from the playlists. I just haven't gotten around to doing all that yet, haha.
i have a player that builds a playlists in a column that allows it to play and browse other folders for music ill continue to try and see if i get the two builds to work as one thanks for the pointers
The sorting is done via natcasesort PHP function: https://www.php.net/manual/en/function.natcasesort.php I had previously made the player fixed to the top of the page via CSS and that is included in the new 2.0.6 release, but allowing it to keep playing while navigating other directories would be a pretty big redesign that I can't take on right now. Thinking briefly about it, the player and its scripts and styles would need to be separated into a different PHP file and loaded in an iframe. All of...
I have had some other minor changes in progress in my local copy for years and took this as an opportunity to wrap them up in a new release. I have incorporated a case insensitive image file search. Someone else had asked for PNGs to be supported as well. It now checks for folder.jpg, cover.jpg, [track name].jpg, then those files again as PNGs, then if still not found, does a loop through looking for them again as case insensitive. I don't normally have the album art option enabled, because I usually...
most likely cause is your running the script on a unix server rather than windows. which means you may need to change a couple of lines functions.php (2 hits) Line 1152: elseif ( file_exists($path.'folder.jpg') ) Line 1154: $linkPath = rawurlencode($path.'folder.jpg'); change to functions.php (2 hits) Line 1152: elseif ( file_exists($path.'Folder.jpg') ) Line 1154: $linkPath = rawurlencode($path.'Folder.jpg'); capital "F" in folder is important on unix systems
Creating a dynamic playlist
1. I uploaded the files. After running install.php I got an error Parse error : syntax error, unexpected identifier "version" in icons.svg on line 1 2. in the file "config.php" I add "$root = 'test82a2';" 3. after // this line I have only like att. image. Folder "test82a2" is your script folder. the script is dead, only the left menu works brgs, Andrew
Too many sub-folders breaks randomize
Too easy! New release 2.0.4 has it.
Sorry if I am being too bold, but please consider adding m4a files to version 2.0 I added it to the two locations in functions.php and one location in file.php Tested working on my system for IE, Firefox, and Chrome in windows. And Chrome in Android. For the case in file.php Content-Type: audio/mp4 On Mon, Aug 17, 2020 at 7:39 PM James Moats thejamesmachine@users.sourceforge.net wrote: No problem, I'm glad that fixed it. I'm working on a quick and dirty update to make the deep parsing optional. Doesn't...
In my quick testing here, the first time I tried to do a random playlist on the parent music folder, the process eventually gave up, after processing a long time. PHP is configured to not show errors/warnings by default. Checking the error.log file showed "PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/mlp/functions.php on line 162". When I refreshed the page, it worked immediately. To be fair, I don't have anywhere near 500 folders. Take a look in the PHP error log...
No problem, I'm glad that fixed it. I'm working on a quick and dirty update to make the deep parsing optional. Doesn't really affect random playlists, since those naturally do the same kind of thing, but everything else speeds up quite a bit.
I doubled the PHP timeout and it loaded all of the songs. Sorry for bothering you over a php configuration issue.
In my quick testing here, the first time I tried to do a random playlist on the parent music folder, the process eventually gave up, after processing a long time. PHP is configured to not show errors/warnings by default. Checking the error.log file showed "PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/mlp/functions.php on line 162". When I refreshed the page, it worked immediately (all the files/folders are supposed to be cached in $SESSION variables so it doesn't...
Interesting. I will check it out. Thanks!
Too many sub-folders breaks randomize
New release 2.0.2 fixes this issue. It doesn't allow access below the specified root directory and also doesn't show directories that don't eventually lead to playable tracks. Thanks for reporting this!
Don't show directories that don't contain playable files
Fixed in 2.0.2 - Doesn't allow access below the music root and doesn't show directories that don't eventually lead to playable tracks.
I see what you're saying now. Previously, it would only show directories that contained playable music files. It looks like that was inadvertently changed in the 2.0 redesign. I have written up a ticket, because the way it is currently working is not ideal. Thanks for taking the time to clarify.
Don't show directories that don't contain playable files
Thank you for you reply. And thanks for MLP. I love straightforward look, and implementation. The password protection advise is indeed wise, and appearently I just overlooked/ignored it. Still, many might remain unanware that it is possible to look into any folder inside the webroot using ?dir=../../../ parameters.
I apologize about the delay, I didn't see notification of your post. From the ReadMe.txt: "It is advised that you password protect the Music Library & Player directory using htaccess or other method to restrict public access. " Aside from that, it is advised to add a Robots.txt file to your website root directory, denying access to any directories that you don't want indexed by search engines. That really isn't related to this script, it's general "having a website" type info. https://support.go...
When using MLP on a public webserver, it is easy to crawl folders in the webroot, including folders which were never intended to be visible to the public. For this, anyone can call setup.php, or use the “dir“ URI string parameter. Perhaps not everybody feels comfortable with that. Many are probably not aware of this. Some measures against it could be: - Password protect the folder where index.php resides - Delete setup.php from webserver, after configuration is done - Remove setup menu code from...
comment
Each version is documented in the read me txt: Release History * 2.0.1 - 9/24/2019 - trackmode=track won't play without autoplay=true - Missing favicon (404) - Javascript errors in Chrome (index.php > menuClose & liClick ) 2.0.0 - 6/30/2019 - Complete redesign - Removed jwplayer - Removed bootstrap - Removed jquery - Added html5media script for browser compatibility - Reduced number of config options - Added Light and Dark themes - Easily install upgrades non-destructively - Added menu button to...
OK. I thought you might be able to extract it and publish it without using a database BTW, what's the difference between 1.16 and 2.01? There's no changelog
I'm pretty sure this would require the third party library we talked about previously. It would have to read the ID3 tag from the file and that is overhead I wasn't intending to add to this. I'm sure it is possible to do, but it won't likely be me doing any work on this project any time soon. I have been intending to move it to github to encourage more public participation in its development and support.
comment
Me again :-) Would it be possible to extract the "comments" in a mp3 file and display them? Artist - song name (in bold) Comment (not bold)
Album art
No need to apologise That seems to have fixed the random play problem. THe file names appear
There's a new 1.1.6 zip file uploaded. Only functions.php changed this time. I diff checked it to make sure I didn't miss anything else.
You're right. So sorry, my source files got mixed up and I was editing on the last version. I'm working on replacing this release with a mashup of the two. Sorry for the trouble.
I downloaded the new release and uploaded functions.php and readme.txt. Now the album art for the playing track doesn't appear anymore
New release 1.1.6. Again, only functions.php and readme.txt were changed.
I can't recreate this and don't see any reason for it in the code, but I can see it happen in your site. I have made some changes in that code to fix another bug I saw, so we'll see if it fixes this as well.
To add that link, it would require modifying the getBreadcrumbs() function, which would be fairly easy to do, but would then mean future updates would overwrite that change.
Add that code in index.php after line 101: <div class="row top-row"> <div align="center"><img src="top.jpg" width="100%"></div><br> <div align="center"><font size="+3"><b>Українська Топ-Рок</b></font></div> <br> <div class="col-md-8 col-md-offset-2">
Add that code in index.php after line 101: <div class="row top-row"> ** <div align="center"><img src="top.jpg" width="100%"></div><br> <div align="center"><font size="+3"><b>Українська Топ-Рок</b></font></div>** <br> <div class="col-md-8 col-md-offset-2">
I noted that in the message of the initial release, it's just how JWPlayer works. I haven't been able to find a solution as of yet.
I also wanted to add a link back to the main page in the playbar " / music " <a href="http://rfu.in.ua">Home</a> so it would be "Home / music" But I can't seem to figure out where it should go. If you haven't figured it out by now, I'm not a programmer :(
Also, I want to add a banner image and a title. I added <div align="center"><img src="top.jpg" width="100%"></div><br> <div align="center"><font size="+2"><b>ukraine top rock</b></font></div> Right after the < BODY > tag in index.php , and it looks good. But when you start playing a song the player is on top, most of the banner disappears (maybe the bottom 25% shows if you scroll up), And there is a very big gap between the text and the playlist. How can I fix this so that the banner and title stay...
I found another bug. If you click on Random playlist, the list shows the album art, but not the file name (artist & song title) in the randomized list
The album art is showing on the top of the page now, but the player is overlapping the bottom 3rd of the image
New release Version 1.1.5 (I know, my version numbering scheme is not correct). The 250x250 album art was properly showing in all play modes except single track. That is now fixed. I also removed file extentions from the playlist. As for installing as an upgrade and not having to refresh the config/setup, that is a feature for the future. Only functions.php and readme.txt were updated, so you can download and extract only those two files to keep your previous config options.
And is there a way to remove the file extension .mp3 from the playlist?
ok, some problems. It's not showing the album art for the playing track at the top. And I would like to suggest some sort of list refresh without having to go through setup. You can see it at http://rfu.in.ua/top20/
OK, I"ll try it out and let you know how it works
A new release 1.1.4 is up now with an album_art config option. As requested, it shows 100px in the playlist and 250px in the player. It looks for a jpg with the same track name, then a folder.jpg, then a cover.jpg, in that order of priority. It is tested with images in both jwplayer 6 and 7. There's still some work to do. I haven't figured out how to change the player height back to 40 if there is no album art to display. I don't like that the player controls show over top of the image, but that's...
There is an alternative. I was going to ask someone to make the changes to the code I wanted and what I was thinking was that the album art jpg be the same file name as the mp3 file. So when you create the playlist, the album art with the same file name is displayed beside the player for that song. Much easier I think. And users can decide their own display sizes for the jpgs
So, I started writing this out and it looks like it's not as easy as I thought it was going to be. The PHP ID3 stuff I was seeing referenced online is a PECL package that would have to be installed on the server. So, I will likely just fall back and include the getID3 library (http://getid3.org) which is 4.5 MB of files and super overkill for what is needed here. I have always been aware of this and have worked with it before, but hesitated to use it in this project, because it will just make someone...
I think it would be great if it displayed in the track list (100x100) to the left of the play button, and displayed in a larger format top center (maybe 250x250) when it was playing I want to use it to create a top 20 playlist, which would change every week. And the ID3 tages are already in the files with the album art
Hi Frank, I have researched a little and it seems to be very easy to read the ID3 tags from mp3 files with pure PHP calls. Also, there is a separate open source library I have used in the past, but that shouldn't be necessary. Where would you want the album art shown, just when a track is playing, or as thumbnails in the playlist/list of tracks in a directory? Like a big image in the JWPlayer itself? It would end up being an option in the config to enable or disable. I personally prefer to strip...
Album art
Random playlist problems
Random playlist problems
You sent an e-mail through the blind e-mail form here, but set up your profile in...
Android Browser and Chrome for Android file streaming
Resolved in 1.0.7 release
Replace urlencode with rawurlencode to avoid errors with + spaces
Replace urlencode with rawurlencode to avoid errors with + spaces
iPhone/Safari has the same issue, so... I guess use it from a desktop/laptop browser...
Scroll to show current playing track
Fixed in V1.0.4