icidasset / diffuse

A music player that connects to your cloud/distributed storage.
https://diffuse.sh
Other
811 stars 68 forks source link

Suggestion: MEGA cloud-storage support #268

Open icidasset opened 3 years ago

icidasset commented 3 years ago

https://mega.io/ Not immediately clear if possible.

master255 commented 3 years ago

@icidasset It's been a couple of years since the Mega.nz player was written https://play.google.com/store/apps/details?id=com.media.library

icidasset commented 2 years ago

Seems to be possible, hard to tell with the documentation focusing on the C++ SDK. There's a bit of info available at https://mega.nz/doc (see "under the hood")

One thing that might be difficult is the login sessions, but maybe the prepare function can deal with that. Sadly it's not immediately clear what a REST API request should look like.

master255 commented 2 years ago

@icidasset And a decentralized player has already been written, too. There is no need to write a second one.

icidasset commented 1 year ago

More research.

Things I think that should happen:

Example of auth: https://github.com/topac/rmega/blob/master/lib/rmega/session.rb#L116

i8x3 commented 10 months ago

Is there any update on support for MEGA? Would love this as for the 20GB free tier in MEGA.

loudsven commented 10 months ago

@vyoln iOS player with mega support: evermusic

icidasset commented 10 months ago

Is there any update on support for MEGA? Would love this as for the 20GB free tier in MEGA.

@vyoln I don’t really have time to work on it right now, but hopefully soon.

I still don’t fully know how to implement it though, so if anyone can point at any source code from other apps that’d be helpful. I should also point out that Diffuse needs to play according to the browser’s CORS rules so the implementation might not be as straightforward as in some other native apps (eg. evermusic).