OSDLabs / Encore

Intranet Music Player
http://10.4.9.32:2000/
MIT License
18 stars 13 forks source link

Client side playlists. #5

Open mukkachaitanya opened 7 years ago

mukkachaitanya commented 7 years ago

Current app only allows the admin to make playlists and these playlists sync on the client side too. One would also want to allow the client to make his own client playlists, which can be stored locally on the client side.

SebastinSanty commented 7 years ago

I guess it allows clients to make playlists too!

0xRampey commented 7 years ago

Yes it does. However the changes seem to reflect for everyone. That's pretty weird.

mukkachaitanya commented 7 years ago

No no it doesn't allow us to make client side playlists! It allows the clients to make playlist which is stored in the main database.

0xRampey commented 7 years ago

Hmm.. okay. So we need to setup a lightweight database client-side right?

SebastinSanty commented 7 years ago

@mukkachaitanya I think that is what @prampey meant by saying that. We can use Preferences instead of using a db, because, given db's location, there is a possibility, someone can fiddle/corrupt it. My two cents.

0xRampey commented 7 years ago

@SebastinSanty That's a node module. We can't use that client-side. From what I see, there seem to be 2 ways to go:

0xRampey commented 7 years ago

First one might require a lot of code changes and we should be able to identify users properly. Second one, users might be able to delete metadata after clearing cache.

SebastinSanty commented 7 years ago

@mukkachaitanya Are you still doing this? I might want to give a shot at this! Thanks :)

mukkachaitanya commented 7 years ago

@SebastinSanty Try it out. Do tell if you need any help :D