Skip to content
CF MEDIA

Quick start

In 5 steps, the videos, music and photos on your computer show up on the TV and phone, with CF media.

1. Download the sample folder

It comes ready: a menu with Videos, Music and Photos. Unzip it anywhere, for example C:\my-media.

structure
minha-midia/
  cfmedia/start.json   ← starting point (the app always looks for /cfmedia/start.json)
  cfmedia/menu.json    ← the menu: Videos, Music, Photos
  media/               ← put your files here

2. Put your files in media/

Use the names video1.mp4, musica1.mp3, foto1.jpg… or change the names inside cfmedia/menu.json.

TypeFormat that works on every device
VideoMP4 (H.264 + AAC). Streams: HLS (.m3u8)
MusicMP3 (also AAC/M4A)
PhotoJPG or PNG

3. Start a web server

The simplest way: install Node.js, open the terminal inside the folder and run:

terminal
cd C:\my-media
npx http-server --cors -p 8080

Write down the address that appears, for example http://192.168.0.10:8080.

tips_and_updates
--cors allows the browser version to read the files. The Android app works even without it. See Server.

4. In CF media: Start → type the address

Type just 192.168.0.10:8080, without http://, and confirm. The Minha Mídia menu appears.

5. Done

The phone or TV must be on the same Wi-Fi network as the computer. If it doesn’t connect, allow port 8080 in the Windows firewall.

The two sample files

cfmedia/start.json
{
  "name": "My Media",
  "version": "1.0.0",
  "parameter": "menu:{PREFIX}{SERVER}/cfmedia/menu.json"
}
cfmedia/menu.json (abridged)
{
  "headline": "My Media",
  "menu": [
    {
      "icon": "movie",
      "label": "Videos",
      "data": {
        "type": "pages",
        "template": { "type": "separate", "layout": "0,0,2,4", "icon": "cf-white-soft:movie", "color": "cf-glass" },
        "items": [
          { "title": "Video 1", "action": "video:http://{SERVER}/media/video1.mp4" },
          { "title": "Video 2", "action": "video:http://{SERVER}/media/video2.mp4" }
        ]
      }
    },
    {
      "icon": "image",
      "label": "Photos",
      "data": {
        "template": { "layout": "0,0,3,2", "imageFiller": "cover", "action": "image:context" },
        "items": [ { "image": "http://{SERVER}/media/foto1.jpg", "title": "Photo 1" } ]
      }
    }
  ]
}