Skip to content

About

IPTV player for Windows (WPF + mpv) and Android (MAUI + LibVLC): Xtream, MAC portal, M3U, favorites, XMLTV guide, continue watching

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

IPTV Player

A Windows IPTV player with the same core features as SFVIP-Player, written from scratch in C# / WPF on top of the mpv video engine.

Features

  • Three account types: Xtream Codes (user/pass), MAC / Stalker portals, and M3U playlists (file or URL). Passwords and MACs are encrypted on disk with Windows DPAPI.
  • Browsing: Live TV / Movies / Series → categories → items → episodes, with instant search, channel logos and back navigation.
  • Favorites per account: a ☆ on every channel, movie, series and episode, a "Favorites" entry at the top of each tab, a star in the now-playing bar (Ctrl+D). Saved stream URLs are DPAPI-encrypted (Xtream URLs contain the password).
  • TV Guide (XMLTV): a full channel × time grid page (Ctrl+G) with category filter, search, earlier/now/later, a live "now" line, programme details and double-click to watch. The guide comes from a custom EPG URL/file, or else the provider's own (Xtream xmltv.php, the M3U url-tvg header, or the MAC portal's bulk get_epg_info). Plain or gzipped XMLTV is supported, cached on disk (refreshed every 12 h by default) and streamed, so a 130 MB guide parses in about 2 s.
  • EPG everywhere: now/next with a progress bar in the player, and the current programme under every channel in the list (from the guide, falling back to the provider's short EPG).
  • Playback: play/pause, stop, previous/next, seek bar, ±15 s jumps (buttons and ←/→), volume and mute, audio and subtitle track selection, aspect ratio, and fullscreen (button, F, or double-click on the video).
  • Continue watching: movies and episodes resume where you stopped (saved per account every 10 s and on close; cleared when finished).
  • Recording of the running stream to .ts, plus screenshots to .png.
  • Per-account User-Agent override, plus a global User-Agent, HTTP proxy and network timeout.
  • Play any URL: from the clipboard (Ctrl+U) or from the command line (IptvPlayer.exe <url-or-file>).
  • Logs: %APPDATA%\IPTV Player\logs (credentials are stripped from URLs).

Build & run

Requires the .NET 10 SDK on Windows x64.

dotnet build
dotnet run --project src/IptvPlayer.App
dotnet test

Self-contained single-folder release (no .NET install needed on the target PC):

dotnet publish src/IptvPlayer.App -c Release -r win-x64 --self-contained -o publish

Video engine (libmpv)

Any libmpv DLL placed in native/ is copied next to the exe. The app looks for libmpv-2.dll, then mpv-2.dll, then mpv-1.dll. native/mpv-1.dll (a 2020 mpv build) is included so the app works out of the box. For newer codecs and fixes, download a current libmpv-2.dll from the mpv Windows builds (e.g. the shinchiro "mpv-dev-x86_64" archive) and drop it into native/.

Data

What Where
Accounts (secrets DPAPI-encrypted) %APPDATA%\IPTV Player\accounts.json
Settings %APPDATA%\IPTV Player\settings.json
Logs %APPDATA%\IPTV Player\logs\
Favorites (stream URLs DPAPI-encrypted) %APPDATA%\IPTV Player\favorites\<account id>.json
Playback positions (continue watching) %APPDATA%\IPTV Player\progress\<account id>.json
TV guide cache %APPDATA%\IPTV Player\epg\<account id>.xmltv
Recordings / screenshots Videos\IPTV Player, Pictures\IPTV Player (configurable)

Set the environment variable IPTV_PLAYER_DATA to use a different data folder (portable mode, separate profiles, testing).

Project layout

src/IptvPlayer.Core      protocols & storage (no UI): Xtream, Stalker, M3U providers, DPAPI account store, settings
src/IptvPlayer.App       WPF app: mpv P/Invoke wrapper + video host, view models, views
tests/IptvPlayer.Core.Tests   protocol/storage tests against canned server responses
native/                  libmpv DLL(s)

Every account type implements IProvider (LoginAsync, GetCategoriesAsync, GetItemsAsync, GetEpisodesAsync, ResolveStreamUrlAsync, GetShortEpgAsync), so the UI never deals with protocol details.

Keyboard shortcuts

Space play/pause · F / F11 fullscreen · Esc leave fullscreen · M mute · +/− or mouse wheel volume · PgUp/PgDn previous/next · ←/→ seek 15 s · Ctrl+←/→ seek 1 min · Ctrl+R record · Ctrl+S screenshot · Ctrl+D favorite · Ctrl+G TV guide · Ctrl+U play clipboard URL · Enter open · Backspace back

Troubleshooting

Nothing plays, but websites work. Some internet providers (e.g. WE / TE Data in Egypt) redirect all plain-http traffic to a notice page when the internet package reaches 100%, and the redirect can stay on after renewal. IPTV streams are plain http, so they stop while https websites keep working. Both apps detect this and say so. Fix: restart the router (unplug it for 30 seconds). If it continues, check the package or call the provider. To test, open http://example.com: it should show "Example Domain", not the provider's page.

Roadmap (features SFVIP has that are not built yet)

  • Recently watched
  • Catch-up / timeshift playback of past programmes from the guide
  • Recording reminders from guide programmes (builds on scheduled recording)
  • Scheduled recordings (start/stop at a time)
  • Parental PIN lock for categories
  • OpenSubtitles download and loading external subtitle files
  • Picture-in-picture mini window, digital clock overlay, colour themes
  • Video filters (brightness/contrast/saturation/hue)
  • Auto-update via GitHub Releases

Licensing note

mpv/libmpv is GPL/LGPL licensed. If you distribute this app with the DLL, follow mpv's license terms.

About

IPTV player for Windows (WPF + mpv) and Android (MAUI + LibVLC): Xtream, MAC portal, M3U, favorites, XMLTV guide, continue watching

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages