mtivi AIO

Panel + App Kit by Ivanrodz81: your own IPTV app and control panel

What's inside

app/BUILD MY APP makes your own copy of the app with your panel address, name, package and logos.
panel/The control panel (PHP + SQLite). Upload it to your web host.
Password Reset/Forgot your panel login? Upload the reset file to your panel's data/ folder.
Extract the whole zip first. Don't run anything from inside the zip.

1Put the panel online

Choose a web address for your panel, for example https://yourhost.com/mtivi.

  1. Upload everything inside the panel folder to that address, including the hidden .htaccess file.
    Needs PHP 8.1 or newer with pdo_sqlite and curl (standard on most hosts), and Apache with mod_rewrite. Make the data folder writable (755, or 775 if saving fails).
  2. On nginx only: the app's /v1/ addresses must be sent to the panel's PHP files the same way as in .htaccess, and add:
    location ~ /data/ { deny all; return 404; }
  3. Open https://yourhost.com/mtivi/admin/ in a browser. The first visit asks you to create your admin login.
  4. Open DNS Servers and add your IPTV server address.
  5. Open Branding and upload your logo. It shows in the app and on its sign-in screen. You can also add a picture or video intro.
Updating the panel later? Upload the new files over the old ones, but never overwrite the data/ folder. It holds your devices, settings and uploads.

2Build your app

  1. Open the app folder and double-click BUILD MY APP.
  2. Answer the questions:
    • Panel address: the address from step 1, like https://yourhost.com/mtivi (no /admin, no .php).
    • App name: shown under the icon and in the app's messages.
    • Package name: your app's own id, like com.mytv.app. Keep it the same for every update.
    • Logos: type B for one 512×512 PNG, P for an icon pack, or N to keep the mtivi logos.
    • App version: press Enter for the first build.
  3. Logo preview: before building, a picture opens with the app icon and the TV banner. Press Enter if it looks good. To make one bigger or smaller, type its name and a percent, then look again:
    icon 130          banner 90          icon 120 banner 110
    100 is normal. Your zooms are remembered for the next build.
    The app icon is one picture: Google TV cuts it round, other launchers cut it square, so icon changes both.
  4. The build takes a few minutes. Your app is saved in app\output.

Icon pack

icon.pngApp icon, square 512×512. Required.
banner.pngTV banner, wide 1280×720. Left out: the icon on its background colour.

See app\icon pack example\README.txt.

No logo yet? Make one free at icon.kitchen:
  1. Design your icon on the site.
  2. Download it (choose Android; include Android TV if offered, for the TV banner).
  3. Run BUILD MY APP. At the Logos question, drag the downloaded .zip into the window and press Enter (no need to extract it).
Back up app\keys. Every update of your app must be signed with the same key, or devices can't install it over the old one.
To rebuild later, run BUILD MY APP again and press Enter to keep each answer.

3The panel pages

Manage

DevicesEvery device that opened the app, with its line, status and end date. Edit, check, change line, activate or deactivate.
Sign-inHow devices sign in: username & password, MAC address or PIN.

Content

DNS ServersYour IPTV server addresses.
Stremio & DiscoverStremio add-ons and the Stremio button on the app's home screen.
VPN ServersOpenVPN profiles offered in the app.

App

MessagesSend a message to all devices or one device. It shows in the app's bell within a minute.
BrandingYour logo in the app and sign-in screen, plus a picture or video intro.

Settings

Panel & passwordYour admin login.
Home screen, TV guide, Sports, About pageWhat the app shows on each screen.
App updateUpload a new APK. Devices are offered it when they open the app.
Devices & accountsDefault tier and how long new devices stay active.

4Install the app

  1. Copy the APK from app\output to a USB drive, use the Downloader app, or ADB:
    adb install -r "My_TV.apk"
  2. Open the app and sign in with the IPTV username and password.
  3. The device shows up on the panel's Devices page.

5Send an update

  1. Run BUILD MY APP again and raise the App version (for example 2.0.1). At the end it shows the version code.
  2. In the panel open Settings → App update, upload the new APK from app\output, and enter the version and version code.
  3. Devices offer the update the next time the app opens. Settings and playlists are kept.

?Forgot your panel password

  1. With your host's File Manager or FTP, upload the reset file from the Password Reset folder into your panel's data folder. Keep the name exactly reset (no .txt). Don't open the data folder in a browser: it's blocked on purpose and shows "Forbidden".
  2. Open your panel's admin page, for example yourhost.com/mtivi/admin/. A Reset password form shows instead of the sign-in page.
  3. Enter your username and a new password. The reset file is deleted automatically and you're signed in.
While the reset file is on the server, anyone who opens your panel can change the login. Reset right away.