QPlayer
Web Application to remotely play music stored on your QNAP from a web browser
Install
Create a folder (let say "my_folder") in the /mnt/ext/home/httpd/cgi-bin directory and place the content of this repository in it
Usage
goto https://qnap/cgi-bin/my_folder/
Under the hood
JavaScript main script is divided into 2 object :
QPlayer us the filemanager API so it will not work if you deactivated the QNAP's file manager. QPlayer rely on the "guest" user to retrieve directories and file contents. It mean that, by default, only public directories can be browsed and played. You can use your own credentials by removing the commented <form> and the commented lines in the gui.login function.
Features
You can change the default start folder (mine is /Multimedia/MUSIC) to "" if you want to browse from the root of the /shared/ folder MP3 playing rely on Flash if used from XP (Firefox doesn't provide it under XP) So XP will not be able to play ogg file (since flash don't support it) To disable this feature, comment the <script src="flash.js"> from the .html Responsive browsing :
files and directories are just <a href="#path"> so you can :
Web Application to remotely play music stored on your QNAP from a web browser
Install
Create a folder (let say "my_folder") in the /mnt/ext/home/httpd/cgi-bin directory and place the content of this repository in it
Usage
goto https://qnap/cgi-bin/my_folder/
Under the hood
JavaScript main script is divided into 2 object :
- system : deal with the QNAP API
- gui : deal with the DOM API
QPlayer us the filemanager API so it will not work if you deactivated the QNAP's file manager. QPlayer rely on the "guest" user to retrieve directories and file contents. It mean that, by default, only public directories can be browsed and played. You can use your own credentials by removing the commented <form> and the commented lines in the gui.login function.
Features
You can change the default start folder (mine is /Multimedia/MUSIC) to "" if you want to browse from the root of the /shared/ folder MP3 playing rely on Flash if used from XP (Firefox doesn't provide it under XP) So XP will not be able to play ogg file (since flash don't support it) To disable this feature, comment the <script src="flash.js"> from the .html Responsive browsing :
- italic : loading
- bold : selected
- pure shuffle : shuffle the whole root folder
- available shuffle : shuffle from opened folders
- next : play the next file in the current folder (no subfolder !)
- none : do nothing
files and directories are just <a href="#path"> so you can :
- send a link to the currently played file by copy/pasting the current URL
- changing the URL lead to a view change (to match the URL's path) It mean :
- It's possible to bookmark send throught mail/IM the currently played file/folder
- play the previous/next file by using the browser buttons
- Use the filename extension to switch between flash and html5 on XP