0
Hi all,
have anyone ever tried to implement a player that would play random songs form songs/*
I am experimenting with other mp3 players but did not have much luck yet, wondering if anyone out there have any ideas.
Thanks
have anyone ever tried to implement a player that would play random songs form songs/*
I am experimenting with other mp3 players but did not have much luck yet, wondering if anyone out there have any ideas.
Thanks
Responses (8)
-
Accepted Answer
0Trying to use JoomLine mp3 player to play random songs from /songs. This player has a configuration where you specify a directory and it should play .mp3 from that directory. I do have mp3 on my /songs but i can't get it to work.
Does mc has anything that prevent other player from use the /songs directory? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Most players should work outside of the MC component. Though they wouldn't work in place of the jw player inside the component without a lot of custom coding. I am not the dev, but it appears he uses some of the javascript api with the jw player. This is a nice feature that is unique to the jw player. A few other players have some more limited APIs as well, but they have their own set of code. It allows one to send tracks directly to the player and build playlists on the fly. I would imagine that replacing the jw player with a different flash player would break a lot of these features as well as some of the mods that rely directly on the player data like the statistics mods.
Though creating a page and tossing a player on it to do what you want outside of MC should be fairly easy. As long as both use compatible javascript libraries. There are quite a few flash players out there that do exactly just that. They are hard coded within the flash player to only play songs from the folder the player is in. Very easy, but very limited if you want to do more with them. -
Accepted Answer
0Thanks greengeck.
I suspected that jw players was some how forced over other players. just to clarify when you say inside MC you mean a Joomla install that contains MC installed correct? Outside MC doesn't mean off pages called by one of MCs menus. You can create a page point to a article and place another player on it and if you have MC installed in the joomla directory serving that page this other player will not work.
But I agree the work done in jw player is very good, but it would be good to be able to customize further. Would you know if it is possible, and if yes which files should be moded, to make jw play random songs from a directory ?
Thanks -
Accepted Answer
0Yeah, another player should work anywhere in the joomla install. Just wouldn't work well or at all as a replacement for where mc uses the jw player. Should even work on the same pages as mc is on, as long as the javascript code your using is clean and doesn't conflict with any other javascript code on the page.
The jw module that germi wrote is just for mc as he integrates some advance functions with it quite nicely, it doesn't attempt to overwrite or become the sole player. It doesn't try to play all media on a page like some plugins. It only does what MC tells it to do, to play content that has been added to MC.
The jw player doesn't have the functionality to just play songs from a folder. You would have to write a script to do it. Something that would grab the contents of a folder, and then insert them into an xml playlist and send that to the player. There are other players that don't do anything else but play what is in the folder that they are contained in. That is probably the easier solution for what your trying to achieve. -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »