chasethemetal Posted June 17, 2011 Share Posted June 17, 2011 HelloI've searching the internet for some insight on how to make a secure music player w/ playlist. Basically I am curious how bandcamp.com or soundcloud.com(mobile version) works.I'd like to build my own music player NOT flash based so it works on on iPhones and iPads...I haven't been able to find any guides on how to do this where 1 the file locations aren't exposed and 2 include a play list feature.I am an expert with HTML and CSS and have quickly growing abilities in PHP. Is this a job for java? I'm clueless if anyone could point me in a direction or show me an example that would be great! Thanks so much. Link to comment Share on other sites More sharing options...
Ingolme Posted June 17, 2011 Share Posted June 17, 2011 The only music players around are Flash based, they just have some Javascript controls interacting with them. Link to comment Share on other sites More sharing options...
chasethemetal Posted June 17, 2011 Author Share Posted June 17, 2011 Ingolme, this is not true. Visit secretmusic.bandcamp.com for example. Notice bandcamps musicplayer is entirely free of flash, and works perfect on an iPhone/iPad.ALso everyone sorry for the double post. That was an accident. Link to comment Share on other sites More sharing options...
Ingolme Posted June 17, 2011 Share Posted June 17, 2011 Are you sure iPhone doesn't have Flash installed? The only other option is if they used the HTML5 <audio> element but I don't think there's much support for that. Flash is far better supported than the audio element.The Flash player is probably invisible and they page is using HTML elements and Javascript to send commands to the hidden Flash file. Link to comment Share on other sites More sharing options...
trinaryatom Posted June 17, 2011 Share Posted June 17, 2011 Apple devices are not programed to support the use of Flash.Documentation - http://www.apple.com/hotnews/thoughts-on-flash/Edit: If you don't want to read the whole thing. The answer is in the Conclusion paragraph. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 17, 2011 Share Posted June 17, 2011 The bandcamp site is probably detecting the platform that it's on. That page has at least one Flash movie on it. If you choose to embed a player, it gives you a link to a Flash movie through an iframe. On systems that support HTML5 it might use that instead though. Youtube also has an HTML5 section. The controls on the bandcamp site are implemented with Javascript, those aren't Flash. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 17, 2011 Share Posted June 17, 2011 See what happens if you disable Flash and try to play music on the bandcamp site.This is pretty interesting though:http://www.geek.com/articles/chips/javascr...flash-20110617/ Link to comment Share on other sites More sharing options...
GuyBri89 Posted June 17, 2011 Share Posted June 17, 2011 They could be using Java to make it work. Its what Symbian uses. Aside from RealPlayer.Why not use the object tags and some PHP to create your sites music player?Or maybe make it using Java? Link to comment Share on other sites More sharing options...
chasethemetal Posted June 17, 2011 Author Share Posted June 17, 2011 I disabled flash and bandcamps music player still works. So they must be doing some funky java in the background perhaps.GuyBri89 when you say use the <object> tags how would that work? I understand how to use PHP to pull my mp3's from a secure location. But I have never used the object tags unless associated with flash. Any light on what you mean would be cool. Link to comment Share on other sites More sharing options...
GuyBri89 Posted June 17, 2011 Share Posted June 17, 2011 I disabled flash and bandcamps music player still works. So they must be doing some funky java in the background perhaps.GuyBri89 when you say use the <object> tags how would that work? I understand how to use PHP to pull my mp3's from a secure location. But I have never used the object tags unless associated with flash. Any light on what you mean would be cool.Actually using the object tags might not work. Do you have more than one flash player installed too? IE RealPlayer, Apple's quicktime, etc. Or are you using the one from Adobe? Personally I would make your sites music player using either PHP and HTML with JS/Ajax functions or with Java and PHP. That way it would be a universal music player, and would work on any operating system or most web browsers. Link to comment Share on other sites More sharing options...
chasethemetal Posted June 17, 2011 Author Share Posted June 17, 2011 Yeah thats what I was thinking. Java + PHP combo. Unfortunately I am not the best with Java. Anyone know of any reference points to start with when it comes to building a basic java function like say.When this img is clicked. load this src file (.mp3)? What would that look like? Link to comment Share on other sites More sharing options...
Fmdpa Posted June 18, 2011 Share Posted June 18, 2011 See what happens if you disable Flash and try to play music on the bandcamp site.This is pretty interesting though:http://www.geek.com/articles/chips/javascr...flash-20110617/ lol, I was just going to link to that same project! Link to comment Share on other sites More sharing options...
GuyBri89 Posted June 18, 2011 Share Posted June 18, 2011 Yeah thats what I was thinking. Java + PHP combo. Unfortunately I am not the best with Java. Anyone know of any reference points to start with when it comes to building a basic java function like say.When this img is clicked. load this src file (.mp3)? What would that look like?For now I would just use HTML to make a basic player. As far as Java goes, you can check out NetBeans IDE and check out Sun's official tutorials.NetBeans IDE 7.0And as far as tutorials go, I found this: Java Beginner.comGoodluck dude, Java is what I want to eventually program in. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2011 Share Posted June 19, 2011 I disabled flash and bandcamps music player still works. So they must be doing some funky java in the background perhaps.That's interesting, when I disable Flash I get a popup saying that Flash is required to listen to music on that site. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.