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

Posted on 2012-03-21
Last Modified: 2012-06-27

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.
Question by:techin4
  • 3
  • 2
  • 2
  • +1
LVL 32

Expert Comment

ID: 37748982
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?

Expert Comment

by:Ben McNelly
ID: 37749005
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!

Author Comment

ID: 37749093
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?


Expert Comment

ID: 37749344

This is an open source version of the Pandora player.  This may work for you.
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.


Expert Comment

ID: 37749365

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

Accepted Solution

DrDamnit earned 500 total points
ID: 37749614
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.
LVL 32

Expert Comment

ID: 37749634

Author Comment

ID: 37750154
Thanks...I do have some PHP/MYSQL experience and might try out your recommendation.

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php ssh2_scp_send 1 47
Please show me easiest post form. 3 31
How to use md5 hashing 3 26
Use PHPSESSID or create new session when user visits page for the first time 4 36
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 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

25 Experts available now in Live!

Get 1:1 Help Now