Solved

Would I be able to create a website that streams music from free nas?

Posted on 2012-03-21
8
575 Views
Last Modified: 2012-06-27
Hi,

I am new to this and was wondering if its possible to create a website that will pull music from a freenas box which will allow a user to listen to the music?

I know this is possible using a web server but not quite sure about using freenas.

Thank You.
0
Comment
Question by:techin4
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 32

Expert Comment

by:DrDamnit
Comment Utility
FreeNAS is just a storage application. You would need mount the shared directory from FreeNAS onto a web-accessible location on the webserver, and then treat it like a normal file that would be streamed.

Can you give more specifics on your project?
0
 
LVL 8

Expert Comment

by:Ben McNelly
Comment Utility
What is your setup so far? If you connect a web server box (for fun lets say a ubuntu setup) and configured some dort of AMP or even static website setup, as long as you have a path to the files it will "work".

As far as scale-ability of the setup or details, well we need more info!
0
 

Author Comment

by:techin4
Comment Utility
Thanks for the quick replies.

So far, I have all my music stored on a freenas box.
Instead of my friends having to FTP to download the music I would like them to be able to just visit a website and click on the song they would like to download or hear.

My requirements are:

1) Create a website that will connect to my freenas box
2) Allow the user to download or hear the song directly from the website
3) Allow the user to upload and share a song.

Does anyone know if there is a better solution if freenas is not the right choice?

Thanks.
0
 

Expert Comment

by:Skiff_Rat
Comment Utility
http://getopenpandora.appspot.com/

This is an open source version of the Pandora player.  This may work for you.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:Skiff_Rat
Comment Utility
http://www.codeproject.com/Articles/109786/Build-a-Pandora-clone-with-Silverlight-4

Would be another option, but this one involves a little bit more coding.
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
Comment Utility
This is a fairly simple project if you have PHP / MySQL coding experience.

Here's how it will work.

1. Mount the FreeNAS directories to the webserver.
2. Create a php script that will recusrively read the directories, and parse the MP3 Info information. Shove that information into a database.  (run this as a cron job once an hour or once a day, whichever is appropriate).
3. Make sure you attach the web accessible download path to the record in the database.
4. Display it on a webpage however you'd like.

I don't know of a "works out of the box" solution for this, but it would not be difficult to code and build.
0
 
LVL 32

Expert Comment

by:DrDamnit
Comment Utility
0
 

Author Comment

by:techin4
Comment Utility
Thanks...I do have some PHP/MYSQL experience and might try out your recommendation.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now