Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
109 lines (55 loc) · 5.04 KB

android.md

File metadata and controls

109 lines (55 loc) · 5.04 KB

Running in Android

With Dory - Node.js it is possible to run Minio_music_server in Android directly. Is not the best idea but is possible.

Why is not a good idea ?

If you have the music library in the cloud in Amazon S3 for example, you need to first put the Music file in the cloud, (Could be possible to do with any compatible S3 android software like MMe Connections free in Android Link:), then run Minio Music Server in the Android device, that internally bring the song to the Android device, extracts metadata, and if the sing requires encryption has to be uploaded encrypted. So The music data has to be transported three (3) times from the Android device to the storage. Usually Android runs in Wi-fi and the information travels over Internet so the speed is not so good and could be expensive because uploading and downloading can incur in costs.

If you run the Min.io server local, the idea is to have the node server running Minio_music_server as you can see for example in freenas here like a daemon to make all this stuff automatically so does not need to be running from Android device. If you have Min.io in Linux or Windows, you can also have a resident instance of node.js running Minio_music_server and point to your min.io server indexing the music library.

Why could be a good idea ?

If you don't have any cloud server that can run nodejs, and your storage is in the cloud in a free tier you can use the Android solution at no cost. (Only wifi, because some cell phone data providers can charge for data)

But if you want to test by yourself you could try.

The documentation about Dory - node.js is not so good but once you understand what is the logic of the program it is easy.

To run Minio_music_server

  1. Download and install Dory - node.js Link:

  2. Then you have to update the node version. It for default comes with node v6.11.4 In the information on the description of the download page you can see the different versions that you can install.

versions

Once Dory - node.js is installed, Run it.

Then, to check the version, enter to the Shell in the menu to the right and select Shell.

menu

Write node -v in the console, check the version, and then close with the X

shell

To update the version:

Is not easy to understand the instructions. It said very brief: 'download file' menu -> check 'appfiles' -> check 'executable'

This is a step by step instructions.

From the Menu to the right select -> Download file

menu

I use the https://dorynode.firebaseapp.com/v8.9.4_arm_release/node version

Then copy the link of the node version that we need and put in the URL field, and check Appfiles and executable as the following image, leave path as the image and then OK to update.

menu

Then check the version of node again after the update in the Shell.

shell

Close the Shell

  1. Then download from github Minio_music_server program.

First get the repository link copied ready to be pasted in Android, then in Dory - Node.js app in the menu to the right select git clone

shell

Hit OK, and the repositorie get clonned.

Now you need to open the local copy of the repository with the + red floating button at the right bottom of the screen.

Floating button

Tab the Add directory(package.json's main) icon.

package.json

and select the directory where you put minio_music_server

package

You can check the package.json file with open. To exit hit back in Android.

  1. Configure your instance of Minio_music_server

Then you need to configure the parameters of Minio_music_server in accordance to your configurations. Opening the file config.js.

With + red floating button at the right bottom of the screen. Select Add File and search for config.js file.

Then you have to edit the file with Open

config.js

Change the fields to configure Minio_music_server .

Edit config.js

As you can see my Storage is in Amazon, you can use these parameters and change your bucket and keys.

Then save in the menu to the right and hit Save, and back in Android.

  1. Run Minio_music_server

Hit the Start button of the package and check the results with STD OUT button.

Run

In STD OUT you can check the results.

Run

---END---