Welcome to Dream.In.Code
Become an Expert!

Join 149,885 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,283 people online right now. Registration is fast and FREE... Join Now!




Random LocalFile Mp3

 
Reply to this topicStart new topic

Random LocalFile Mp3, custom start page

cmw000
23 Apr, 2005 - 02:58 AM
Post #1

New D.I.C Head
*

Joined: 19 Apr, 2005
Posts: 15

How do I make a random mp3 from a specified folder on my HD play in the BG?

How do I DO it? I want to DOOOO it. C'mon guys. Help me DOOOOOOOOOOOOO it. frenchy.gif
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Random LocalFile Mp3
23 Apr, 2005 - 08:33 AM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,267



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Whoa... Calmdown there cowboy.

I'm assuming you want to do this with HTML/Javascript since it's in this forum?!

Also, are you talking about playing MP3's from another location... like, you have your music on your home computer, but want to listen from work??
User is online!Profile CardPM
+Quote Post

cmw000
RE: Random LocalFile Mp3
23 Apr, 2005 - 03:28 PM
Post #3

New D.I.C Head
*

Joined: 19 Apr, 2005
Posts: 15

I'd like to do it in html and without javascript if possible.

And it would just need to work on the computer that has the music. It's for a custom start page.

frenchy.gif EHHH, If you hep me, I we geve you a cwossont. Haugh haugh haugh!
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Random LocalFile Mp3
25 Apr, 2005 - 02:06 PM
Post #4

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,267



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
I did a little searching and didn't find much that just HTML can handle... in fact, I didn't find anything.

How many MP3's did you wanna "randomize"... just trying to come up with the best solution here... depending on how many, an array with filenames in it would work and then you could write the filename to the screen in the source tag of a embedded media player.
User is online!Profile CardPM
+Quote Post

cmw000
RE: Random LocalFile Mp3
25 Apr, 2005 - 10:08 PM
Post #5

New D.I.C Head
*

Joined: 19 Apr, 2005
Posts: 15

I hadn't really thought of how many. It sounds like I'm going to have to use something besides html though. I took a class on javascript, so I guess I know a little but I really don't like it very much. Is there a way to imbed some C++ into my html?

I've already written small programs that deal with randomness, though they don't read from a windows directory or anything like that. And the array data is hard coded...I don't even know where to start.

For the media player...are there any cool ones? Like a media player classic for html or something?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:11PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month