Host your own videos to be served on the Mo Channel Android TV app!
This server-side application allows you to run a server that serves the videos from your computer, which can be watched on your TV using the Mo Channel Android TV Application.
This server-side application is intended to be used together with the Android TV app Mo Channel
Download the appropriate binary according to your operating system.
Type the TV Shows Root Path:
The Terminal or Command Prompt will appear with the message above, asking you to type the path to the directory where the TV shows are located. After that, it will create a file so you won't need to type it again next time you run it.
Create a file named config.json
using this structure:
{
port : /* Server port number e.g.: 3000 */
fileServerPort: /* File server port number e.g.: 8080 (it can't be the same as server port) */
root : /* Path to tv shows directory e.g.: \"path/to/tv-shows/\"*/
}
And then add the path of this file as an argument when running it in the terminal.
./mo-channel-server --config config.json
./mo-channel-server --port 3000 --file-server-port 8080 --root ./
After inputting the arguments, the output will be something like this:"
+--------------------------------------+
| HTTP File Server created. Port: 8080 |
+--------------------------------------+
+--------------------------------+
| __ |
| |__| |
| /\ | | _ |
| / \| ||X| |
| mo-channel-server |
+--------------------------------+
Use this Server URL on Mo Channel:
URL : /* this is the IP address you will input on Mo Channel app */
Port : /* this is the port you will input on Mo Channel app */
Prefix: HTTP
Then just use the information displayed to input the Server URL into the Mo Channel app.
Technology | Purpose |
---|---|
nodejs |
The runtime platform |
http-server |
The HTTP file server of the videos |
PKG |
Generate the binaries of the application |
Babel |
Generate the compatible js to use in the pkg to generate the binaries |
- Add icon to the binaries