Netjukebox with PHP5?

General discussion about netjukebox
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

mich wrote:ok, why it doesn't remember password? after i login, i tried to access into the config and it asks me user & pass again.
it might be because of my computer, when i use another computer, it works fine.
The login works trough a cookie, so cookies must be enabled.
And is IP address locked (so if the IP address changes you have to login again)
The login will by default expire after 3 days, every time you get a new page the expire time starts from at that moment.
You also have to login again if you "Create a new server secret".
mich
User
Posts: 11
Joined: Fri Mar 04, 2005 8:12 pm

Post by mich »

got it, but I still don't know how to show the media files. For example, the netjukebox is at http://liushare.homeip.net/netjukebox/ and the media folder is at http://liushare.homeip.net/media. In the folder, I have mp3 file, avi file, wmv file. How can I display these files in the netjukebox?
and when I go to update in the config, there is an error:
Directory not found
change media_dir value in:
d:/www/netjukebox/include/config.inc.php
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

mich wrote:got it, but I still don't know how to show the media files. For example, the netjukebox is at http://liushare.homeip.net/netjukebox/ and the media folder is at http://liushare.homeip.net/media. In the folder, I have mp3 file, avi file, wmv file. How can I display these files in the netjukebox?
and when I go to update in the config, there is an error:
Directory not found
change media_dir value in:
d:/www/netjukebox/include/config.inc.php
Here is an example:

Web server files:
D:\www\netjukebox

hosted as:
http://liushare.homeip.net/netjukebox/

Media files (mp3, avi, etc.....)
D:\My media\artist\2004 - album\01 - first track.mp3
...
...

Than you have to edit line 35 from D:\www\netjukebox\include\config.inc.php

Code: Select all

$cfg['media_dir']                  = 'D:/My media';
After that go to your http://liushare.homeip.net/netjukebox/ website and update the database:
Config > Update
mich
User
Posts: 11
Joined: Fri Mar 04, 2005 8:12 pm

Post by mich »

i did installed Winamp httpQ but
Can't connect to Winamp httpQ plugin on:
http://liushare.homeip.net/:4800
however, i can play mp3 file w/ winamp in my computer, not on the web. But i can't play video file :cry: .
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

mich wrote:i did installed Winamp httpQ but
Can't connect to Winamp httpQ plugin on:
http://liushare.homeip.net/:4800
however, i can play mp3 file w/ winamp in my computer, not on the web. But i can't play video file :cry: .
Have you started the httpQ plugin in winamp?

You must use an local IP address!!
config > httpQ configuration

- Server autodetect > to use Winamp from the server
- Client autodetect > to use Winamp from the server (a working network share is required)

If client autodetect gives you: http://liushare.homeip.net
Than use manual:

config > httpQ configuration > manual
httpQ host: (client ip adress)
httpQ port: (don't change)
httpQ pass: (don't change default : pass)
Media share: (from server local path: D:/Media from client network share: //192.168.10.5/Media)

Than video/audio playback should work from the LAN :D
mich
User
Posts: 11
Joined: Fri Mar 04, 2005 8:12 pm

Post by mich »

config > httpQ configuration > manual
httpQ port: (don't change)
httpQ pass: (don't change default : pass)
Media share: (from server local path: D:/Media from client network share: //192.168.10.5/Media)
for these lines, I understand but if I want to share via internet, instead of the ip //192.168.10.5/Media, could I put the http address (example: http://liushare.homeip.net/media/). Moreover, is it possible to stream video file via internet? I looked at your code in the config-inc.php, I saw some of decode (mp3 or wam ... ). I found on the Net, some decode for avi, divX ..., could we add these into your php code?
Finally, is the netjukebox able to stream m3u file? It's the file for streaming over the Net.
Last edited by mich on Sun Mar 06, 2005 5:43 pm, edited 1 time in total.
mich
User
Posts: 11
Joined: Fri Mar 04, 2005 8:12 pm

Post by mich »

httpQ host: (client ip adress)
what do you mean by client ip address? the ip will be changed with different client's computer. what number I should put there so that it'll work with every computer? Is it 127.0.1 or 192.168.10.5 :roll:
For example, I want to share the video/music with my friend outside of my network (maybe in Asia), their ips are absolutely different from mine.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

mich wrote:httpQ host: (client ip adress)
what do you mean by client ip address? the ip will be changed with different client's computer. what number I should put there so that it'll work with every computer? Is it 127.0.1 or 192.168.10.5 :roll:
For example, I want to share the video/music with my friend outside of my network (maybe in Asia), their ips are absolutely different from mine.
Video is only possible true LAN (local network) with Winamp + httpQ plugin.
> What do you mean by client ip address?
The IP adress of the computer where Winamp + httpQ is installed on.
This is different for each client computer.
This IP number is saved on the client computer with a cookie.
So you only have to configure this one time per client computer.
Post Reply