Skip to content

IPTV OS STB Emulator 0.1.0 (test build)

Pre-release
Pre-release

Choose a tag to compare

@k1meister k1meister released this 29 Nov 22:56
008c435

IPTV OS STB Emulator 0.1.0 (test build)

A first build for testers. It is not signed and not meant for general use
yet.

Starting it the first time (SmartScreen)

The zip is not code-signed yet, so Windows SmartScreen will probably show
"Windows protected your PC" when you start IptvOsStbEmulator.exe:

  1. Click More info.
  2. Click Run anyway.

Windows remembers this for this file. If the zip itself is blocked, open its
Properties, tick Unblock and click OK before you extract it. Signed builds
are planned (SignPath Foundation, Microsoft Store).

What it does

  • Opens a MAG-compatible (Stalker/Ministra-style) portal page in WebView2,
    with the box API in place before the portal's first script: gSTB
    (player, video window, volume, position, device information),
    stbEvent.onEvent, stbStorage, stbWebWindow, and no-op versions of the
    rest of Infomir's documented API so a portal does not fail on a missing
    method.
  • Profile: portal URL, MAC address, serial number, model (MAG250; MAG322,
    MAG324, MAG420, MAG424 and MAG524 as model and user-agent strings),
    resolution, language, time zone. It sends the mac, stb_lang and
    timezone cookies and a MAG user agent.
  • Plays streams with libmpv in a video layer under the transparent page;
    SetViewport / SetPIG move and resize it.
  • Remote control: keyboard (arrows, Enter = OK, Backspace = Back, Esc = Exit,
    F1–F4 colour keys, F11 Menu, Alt+R play/pause, Alt+S stop, Alt+Y info,
    digits, PageUp/PageDown, Tab / Shift+Tab channel) and an on-screen remote
    ("Remote" in the toolbar).
  • F12 opens the developer tools of the portal page.

Known limits

Tested automatically on Windows (GitHub Actions, no GPU, no sound card):
signing in to an IPTV OS portal, the channel list, a live channel playing
through the box player, remote key codes, the video window under the page.
Not tested yet, please try on your PC:

  • picture on a real graphics card and display (CI used software rendering);
  • sound;
  • the mouse over the page and over the video;
  • the on-screen remote, the Settings dialog and saving profiles;
  • high-DPI screens, resizing the window, several monitors;
  • portals other than IPTV OS, and the models other than MAG250.

Other limits:

  • Models other than MAG250 differ only in their model and user-agent strings.
  • Audio/subtitle track selection, timeshift, the download manager and
    multiple browser windows are not implemented yet.
  • Settings and browser data are stored in
    %LOCALAPPDATA%\IPTV OS\STB Emulator; logs in its logs folder (portal
    keys, stream credentials and MAC addresses are masked in the log).

Requirements

Windows 10 1809 or later (x64) with the Microsoft Edge WebView2 Runtime
(already part of current Windows 10/11).

Not affiliated with Infomir. MAG is a trademark of Infomir.


Built from main @ 008c435 (CI run 46319866282, all jobs green).