DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#101 2008-03-03 22:33:57

Perfa
Member
Registered: 2007-12-13
Posts: 9

Re: Light-weight web based music browser / streamer

What a killer application!! Thanks mingoto!

I initially was mistaken that firefly would do this job, after several frustrating hours i got firefly to work just to discover it didnt do what i expected. This app do exactly what i want, plays music on a simple browser, which means i can use it on my laptop or remote from work if i which. I hope the bandwidth usage is not notable for my employer :-)

And after i set up password protection this feels complete.

Thanks again!

Offline

 

#102 2008-03-05 01:49:42

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

Hello

I have a problem with Musicbrowser that i hope someone can help me with. I have installed the latest release + lighttpd and php extension. I can browse to the dns using ip adress:8080 where i see the "musicbrowser" folder. Trying to access this folder i get a "403-Forbidden" message. Now i`v just spent 2 hours searching this forum and tried various ways to fix this but now i consider my self beaten. I have no prior Linux experience so for me getting this far, i`m impressed big_smile. Anyways, is there anyone out there who might tell me whats wrong here? Or if needed, ask me to provide more information.

Thanks in advance
/Daniel

Offline

 

#103 2008-03-05 12:33:00

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

loskings wrote:

Hello

I have a problem with Musicbrowser that i hope someone can help me with. I have installed the latest release + lighttpd and php extension. I can browse to the dns using ip adress:8080 where i see the "musicbrowser" folder. Trying to access this folder i get a "403-Forbidden" message. Now i`v just spent 2 hours searching this forum and tried various ways to fix this but now i consider my self beaten. I have no prior Linux experience so for me getting this far, i`m impressed big_smile. Anyways, is there anyone out there who might tell me whats wrong here? Or if needed, ask me to provide more information.

You probably need to make the music browser folder readable for everyone.  Try issuing "chmod -R a+rx musicbrowser" on the command line.

Offline

 

#104 2008-03-08 15:10:45

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

I tried running that command, and it ran without any visible errors. I still get the same 403 - Forbidden when i try to access the musicbrowser folder. Any other suggestions?

Last edited by loskings (2008-03-08 15:11:07)

Offline

 

#105 2008-03-08 16:14:32

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

loskings wrote:

I tried running that command, and it ran without any visible errors. I still get the same 403 - Forbidden when i try to access the musicbrowser folder. Any other suggestions?

Maybe index.php isn't set up as a default page.  Try accessing http://yourserver:8080/musicbrowser/index.php directly.

Offline

 

#106 2008-03-08 16:56:12

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

mingoto wrote:

loskings wrote:

I tried running that command, and it ran without any visible errors. I still get the same 403 - Forbidden when i try to access the musicbrowser folder. Any other suggestions?

Maybe index.php isn't set up as a default page.  Try accessing http://yourserver:8080/musicbrowser/index.php directly.

I tried doing what you suggested. I still get the same error. I actually get the feeling that this isn't a fault in your application but sadly i know to little about Linux/lighttp to figure it out my self. Any help is appreciated if you have some spare time big_smile

Offline

 

#107 2008-03-08 19:25:25

jk-pc
New member
Registered: 2008-03-08
Posts: 2

Re: Light-weight web based music browser / streamer

loskings wrote:

mingoto wrote:

loskings wrote:

I tried running that command, and it ran without any visible errors. I still get the same 403 - Forbidden when i try to access the musicbrowser folder. Any other suggestions?

Maybe index.php isn't set up as a default page.  Try accessing http://yourserver:8080/musicbrowser/index.php directly.

I tried doing what you suggested. I still get the same error. I actually get the feeling that this isn't a fault in your application but sadly i know to little about Linux/lighttp to figure it out my self. Any help is appreciated if you have some spare time big_smile

Hey,
I had exactly the same problem - as it turns out my lighttpd wasn't actually configured to use php!

I got some instructions from: http://trac.lighttpd.net/trac/wiki/Tuto … ttpdAndPHP
(the cofiguration-part for Linux)

I'm using Fonz' 0.5 fun_plug-script and simply downloaded the php5-package and copied it onto my DNS323... That automatically installed php for me and I didn't have to worry about it..)
(make sure that you can run "php -v" and "php-cgi -v" )

I had to change this in my /ffp/etc/lighttpd.conf:
added

Code:

"mod_fastcgi",

to the server.modules-section

and I added this at the end of the file:

Code:

fastcgi.server = ( ".php" => (( 
                     "bin-path" => "/ffp/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))

(obviously you'll have to change "bin-path" to point to your php-cgi...)

As someone mentioned before - make sure that you have correct permissions on your files and folders...
Hope this helps and you get it working...

Thanks for this great app btw! This was exactly what I was looking for...
Uhm, the problem is just that I can't get the Flash-player working for some reason... The Flash-player only says " undefined " and nothing happens when I click on any of the "play"-links... (I can see the player, but the playlist seems to be empty) However, m3u and pls-playback is working fine over VLC...

jk-pc

Offline

 

#108 2008-03-08 19:37:18

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

I got it working!! Thanks alot smile

EDIT: ERROR: The $config['path'] "/mnt/HD_a2/media/music" isn't readable  i guess i need to do some more configuring

Last edited by loskings (2008-03-08 19:43:19)

Offline

 

#109 2008-03-08 20:18:59

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

loskings wrote:

I got it working!! Thanks alot smile

EDIT: ERROR: The $config['path'] "/mnt/HD_a2/media/music" isn't readable  i guess i need to do some more configuring

chmod -R a+rx /mnt/HD_a2/media/music

Offline

 

#110 2008-03-08 20:27:26

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

mingoto wrote:

loskings wrote:

I got it working!! Thanks alot smile

EDIT: ERROR: The $config['path'] "/mnt/HD_a2/media/music" isn't readable  i guess i need to do some more configuring

chmod -R a+rx /mnt/HD_a2/media/music

That did the trick, thanks again smile

Offline

 

#111 2008-03-08 20:50:52

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

jk-pc wrote:

loskings wrote:

mingoto wrote:


Maybe index.php isn't set up as a default page.  Try accessing http://yourserver:8080/musicbrowser/index.php directly.

I tried doing what you suggested. I still get the same error. I actually get the feeling that this isn't a fault in your application but sadly i know to little about Linux/lighttp to figure it out my self. Any help is appreciated if you have some spare time big_smile

Hey,
I had exactly the same problem - as it turns out my lighttpd wasn't actually configured to use php!

I got some instructions from: http://trac.lighttpd.net/trac/wiki/Tuto … ttpdAndPHP
(the cofiguration-part for Linux)

I'm using Fonz' 0.5 fun_plug-script and simply downloaded the php5-package and copied it onto my DNS323... That automatically installed php for me and I didn't have to worry about it..)
(make sure that you can run "php -v" and "php-cgi -v" )

I had to change this in my /ffp/etc/lighttpd.conf:
added

Code:

"mod_fastcgi",

to the server.modules-section

and I added this at the end of the file:

Code:

fastcgi.server = ( ".php" => (( 
                     "bin-path" => "/ffp/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))

(obviously you'll have to change "bin-path" to point to your php-cgi...)

As someone mentioned before - make sure that you have correct permissions on your files and folders...
Hope this helps and you get it working...

Thanks for this great app btw! This was exactly what I was looking for...
Uhm, the problem is just that I can't get the Flash-player working for some reason... The Flash-player only says " undefined " and nothing happens when I click on any of the "play"-links... (I can see the player, but the playlist seems to be empty) However, m3u and pls-playback is working fine over VLC...

jk-pc

Have it all up and running now except like JK, flash player isnt working for me. Hate to bother you again but any chance of tips to solve it?

Offline

 

#112 2008-03-08 20:54:41

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

jk-pc wrote:

Uhm, the problem is just that I can't get the Flash-player working for some reason... The Flash-player only says " undefined " and nothing happens when I click on any of the "play"-links... (I can see the player, but the playlist seems to be empty) However, m3u and pls-playback is working fine over VLC...

Can you try enabling asx playlists ('enableAsx' => true) and debug ('debug' => true) in index.php, and try playing an asx playlist in e.g. Windows Media Player? (The flash player uses asx playlists internally.)

Do you see any errors on-screen or in your web server/php error log now?

Last edited by mingoto (2008-03-08 20:58:51)

Offline

 

#113 2008-03-08 22:22:58

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

mingoto wrote:

jk-pc wrote:

Uhm, the problem is just that I can't get the Flash-player working for some reason... The Flash-player only says " undefined " and nothing happens when I click on any of the "play"-links... (I can see the player, but the playlist seems to be empty) However, m3u and pls-playback is working fine over VLC...

Can you try enabling asx playlists ('enableAsx' => true) and debug ('debug' => true) in index.php, and try playing an asx playlist in e.g. Windows Media Player? (The flash player uses asx playlists internally.)

Do you see any errors on-screen or in your web server/php error log now?

No errors in log, however when using IE i see an error stating and : klicking on file : Fatal error: Call to undefined function utf8_encode() in /mnt/HD_a2/www/pages/musicbrowser/streamlib.php on line 771

Line:66
char:3
Error: Undefined is null or not an object
Code:0
Url: http://my.ip:8080\musicbrowser\index.php?path=Jazz

Last edited by loskings (2008-03-08 22:26:14)

Offline

 

#114 2008-03-08 22:42:11

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

loskings wrote:

No errors in log, however when using IE i see an error stating and : klicking on file : Fatal error: Call to undefined function utf8_encode() in /mnt/HD_a2/www/pages/musicbrowser/streamlib.php on line 771

Ok, you can temporarily fix this by adding a fake utf8_encode function, see post #70 for how to do that.  I will fix this in a later release.

The problem is that fun_plug ships with an incomplete PHP build, without basic PHP functions like utf8_encode().

Offline

 

#115 2008-03-09 00:12:12

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

mingoto wrote:

loskings wrote:

No errors in log, however when using IE i see an error stating and : klicking on file : Fatal error: Call to undefined function utf8_encode() in /mnt/HD_a2/www/pages/musicbrowser/streamlib.php on line 771

Ok, you can temporarily fix this by adding a fake utf8_encode function, see post #70 for how to do that.  I will fix this in a later release.

The problem is that fun_plug ships with an incomplete PHP build, without basic PHP functions like utf8_encode().

Worked like a charm and i`m happy to say that i`m now finally all set up. Thanks for all the help and for a great application smile

Last edited by loskings (2008-03-09 00:12:40)

Offline

 

#116 2008-03-09 06:12:38

jk-pc
New member
Registered: 2008-03-08
Posts: 2

Re: Light-weight web based music browser / streamer

mingoto wrote:

loskings wrote:

No errors in log, however when using IE i see an error stating and : klicking on file : Fatal error: Call to undefined function utf8_encode() in /mnt/HD_a2/www/pages/musicbrowser/streamlib.php on line 771

Ok, you can temporarily fix this by adding a fake utf8_encode function, see post #70 for how to do that.  I will fix this in a later release.

The problem is that fun_plug ships with an incomplete PHP build, without basic PHP functions like utf8_encode().

Yup, now it's working for me too! Thanks for your help!
(I had to add the utf8_encode-function - that fixed it)

jk-pc

Offline

 

#117 2008-03-09 19:25:38

kring
Member
Registered: 2008-02-13
Posts: 13

Re: Light-weight web based music browser / streamer

Worked for me adding the utf8 line.

thanks!

Offline

 

#118 2008-03-11 18:54:40

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

Hi Mingoto

Is it possible that in your next release (if any) make an adjustment to the player so that when you change folders the JW FLV player doesn't stop playing whats already been selected?

/LK

Offline

 

#119 2008-03-16 08:16:49

psykad
New member
Registered: 2008-03-16
Posts: 2

Re: Light-weight web based music browser / streamer

I had to register to tell you how much I'm loving this browser. Thanks for your work Mingoto and hope to see future updates!

Offline

 

#120 2008-03-17 16:54:19

swangy
Member
Registered: 2008-03-11
Posts: 7

Re: Light-weight web based music browser / streamer

actually is there an easy way to just make the flash player its own separate window?

Offline

 

#121 2008-03-18 04:12:09

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Light-weight web based music browser / streamer

Great job, Mingoto!  I just installed your music browser and I wanted to let you know that it's awesome.

Offline

 

#122 2008-04-13 21:28:21

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

I just released v 0.14.  It's got a workaround for the missing utf8_encode in fun_plug, so you shouldn't have problems with that anymore.  The main feature of 0.14 is XBMC remote control, in case anyone is interested.

Swangy:  There isn't an option to have the flash player in a separate window, at least not yet.

loskings: The flash player is reloaded when the page reloads, there's no way to make it keep playing when you change folders yet.

Last edited by mingoto (2008-04-13 21:32:03)

Offline

 

#123 2008-04-15 22:03:26

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Light-weight web based music browser / streamer

mingoto wrote:

I just released v 0.14.  It's got a workaround for the missing utf8_encode in fun_plug, so you shouldn't have problems with that anymore.

Is this still a problem with the 0.5 funplug?

Code:

<?php
echo utf8_encode("Hello, world!\n");
?>

prints, well, "Hello, world!". Is this a suitable test?

Offline

 

#124 2008-04-15 22:18:52

mingoto
Member
Registered: 2007-10-19
Posts: 61

Re: Light-weight web based music browser / streamer

fonz wrote:

Code:

<?php
echo utf8_encode("Hello, world!\n");
?>

prints, well, "Hello, world!". Is this a suitable test?

Yes, that's a good test.   Great work!

Offline

 

#125 2008-04-15 23:25:19

loskings
Member
Registered: 2008-03-05
Posts: 10

Re: Light-weight web based music browser / streamer

Just updated to 0.14. Works like a charm, keep up the good work mingoto smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB