Can I have it so theres no user and pass for listeners?

General discussion about netjukebox
Locked
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Can I have it so theres no user and pass for listeners?

Post by donnyten »

Hi.

is it possible for someone to play an m3u stream i link them to without having to login to my jukebox?

Like say I posted one of my songs, and i just gave them the link to that specific stream, could they play it without having to login with a user and pass?
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can I have it so theres no user and pass for listeners?

Post by wbartels »

At the moment this is not possible.
However you can share an album for downloading (share album) without a username and password.

I will make a similar feature for streaming in the upcoming release!
This is what I have in mind:
  • A stream link will be valid for a week.
  • A stream stream will be locked to the first IP address that uses it.
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

Cool..

Can't wait :)

Thanks for responding.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can I have it so theres no user and pass for listeners?

Post by wbartels »

Implemented in netjukebox 5.22
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

Thanks!

So can you tell me how i can get this to work?
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can I have it so theres no user and pass for listeners?

Post by wbartels »

Go to the album you want to share and click on "Share stream".
Now you have tree ways to share the stream: Mail, URL or QR-Code.
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

when i click on the album all i see is " Play album
Add album
Stream album
Download album
Search...
Advanced...
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can I have it so theres no user and pass for listeners?

Post by wbartels »

donnyten wrote:when i click on the album all i see is " Play album
Add album
Stream album
Download album
Search...
Advanced...
Use the config file from netjukebox 5.22!
With the default config.inc.php file you should see:

Play album
Add album
Stream album
Download album
Share stream
Share download
Search...
Advanced...
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

Hi...

this is pretty dope.. :)!

Where there be any implementations to make it so that the stream link is open to anyone who clicks on it and not just locked to one user?
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

It's been a while since I last posted and I have not found a solution yet. I'd like to know about the streaming thing in my last post. Has his been implemented in any of the updates?

Thanks
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

Hello?
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can I have it so theres no user and pass for listeners?

Post by wbartels »

donnyten wrote:Hi...

this is pretty dope.. :)!

Where there be any implementations to make it so that the stream link is open to anyone who clicks on it and not just locked to one user?
I think that it will work if you make these changes to the stream.php script:

line: 67
-- AND ip = "' . mysqli_real_escape_string($db, $_SERVER['REMOTE_ADDR']) . '"

line: 322
-- if ($share_stream['ip'] == $_SERVER['REMOTE_ADDR'] &&
-- $share_stream['album_id'] == $album_id &&
++ if ($share_stream['album_id'] == $album_id &&
donnyten
User
Posts: 8
Joined: Sun Jun 27, 2010 11:21 pm

Re: Can I have it so theres no user and pass for listeners?

Post by donnyten »

cool, let me try it.

right now i' running a wamp server and I have people streaming the music that way for now. wanted to know if this would be a bit better
Locked