Encore icon indicating copy to clipboard operation
Encore copied to clipboard

Client side playlists.

Open mukkachaitanya opened this issue 9 years ago • 9 comments

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.

mukkachaitanya avatar Dec 26 '16 12:12 mukkachaitanya

I guess it allows clients to make playlists too!

SebastinSanty avatar Jan 05 '17 04:01 SebastinSanty

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

0xRampey avatar Jan 05 '17 05:01 0xRampey

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.

mukkachaitanya avatar Jan 05 '17 06:01 mukkachaitanya

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

0xRampey avatar Jan 05 '17 06:01 0xRampey

@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.

SebastinSanty avatar Jan 05 '17 06:01 SebastinSanty

@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:

  • Save all custom playlist metadata on the server, for each user; serve it when required.
  • Use WebStorage or WebSQL to store it locally.

0xRampey avatar Jan 05 '17 06:01 0xRampey

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.

0xRampey avatar Jan 05 '17 06:01 0xRampey

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

SebastinSanty avatar Jan 22 '17 12:01 SebastinSanty

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

mukkachaitanya avatar Jan 23 '17 03:01 mukkachaitanya