Skip to content

Host your own videos to be served on the Mo Channel Android TV app!

Notifications You must be signed in to change notification settings

giovanischiar/mo-channel-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


mo-channel-server

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.

Usage

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.

Run by Double-Clicking the Binary

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.

Run using the Terminal/Prompt with a Config File

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

Run Using the Terminal/Prompt with Direct Arguments.

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

Technologies

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

Future Tasks

  • Add icon to the binaries

About

Host your own videos to be served on the Mo Channel Android TV app!

Resources

Stars

Watchers

Forks

Packages

No packages published