Random songs from sound/*

Reis
Reis
Offline
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
Responses (8)
  • Accepted Answer

    Reis
    Reis
    Offline
    Saturday, December 11 2010, 08:36 PM - #Permalink
    0
    Trying 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?
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Sunday, December 12 2010, 12:59 AM - #Permalink
    0
    hi Germi,

    based on tests i did in other sites the JoomLine mp3 player if straight forward and has no mysteries to get it going.

    Does MC prevents other player to be used ?

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Sunday, December 12 2010, 01:59 AM - #Permalink
    0
    I don't understand the question. Are you just trying to play a playlist in a random order? Or are you trying to play songs from another website?
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Sunday, December 12 2010, 02:09 AM - #Permalink
    0
    Trying to play random songs from the songs directory. Regardless of being or not in a play list.
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Sunday, December 12 2010, 02:31 AM - #Permalink
    0
    Most 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.
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Sunday, December 12 2010, 12:33 PM - #Permalink
    0
    Thanks 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
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Monday, December 13 2010, 02:08 AM - #Permalink
    0
    Yeah, 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.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 15 2010, 04:57 PM - #Permalink
    0
    hello!

    I didn't read the entire conversation, but I saw your question @rereis: no, MC does not prevent anyone to read into the /songs folder....
    The reply is currently minimized Show
Your Reply