aqiyoung

sanyelive

Shijie (sanyelive) is an IPTV and on-demand client built on Flutter and media_kit for TVs, boxes and phones, organizing public M3U sources into a switchable, bookmarkable live TV interface.

beta-0.3.12+243-385
Published at
Oct 26, 2026
12
Stars
52
Download
Synced at
9d ago

Latest release

beta-0.3.12+243-385Oct 26, 2026, 02:26 AMPre-release
Downloads slow? Switch the source anytime above

README

Project Overview

Shijie is a personal Flutter project that merges IPTV live channels and on-demand video into a single app. The interface follows a minimal new-Chinese style and groups channels into CCTV, satellite, local and international tabs, while media_kit drives libmpv for decoding. No streamed media is stored locally: the channel list is pulled from a remote repository at launch and falls back to a bundled list of 198 entries.

Item Value
Platform Android TV, TV box, phone
Stack Flutter 3.29 + Riverpod 2 + go_router 14
Channel count 331 remote entries (CCTV 44 / satellite 52 / local 102 / international 133)
Decoder media_kit 1.1.10 with libmpv
License MIT

A remote-first, local-fallback source chain keeps the channel list current without shipping a new build.

Key Features

  • Four channel groups: fetches 44 CCTV, 52 satellite, 102 local and 133 international entries at launch, falling back to 198 bundled channels when the endpoint fails
  • libmpv playback: media_kit 1.1.10 loads the native Android libmpv.so, and m3u8 live streams run with software or hardware decoding
  • Persisted favorites: favorites go into a local sqflite table while shared_preferences stores lastChannelId, so a cold start returns to the last channel
  • Programme strip: parses EPG data and shows current and upcoming programmes in a horizontal strip on the player page
  • TV focus handling: the three home category cards are wrapped in TvFocusCapWrap, scaling the focused card to 1.05 with a 2px warm outline so a remote can reach every item
  • Retry and switch source: a failed stream shows Retry and Switch source buttons on the player page and re-picks an address from the channel multi-source order
  • Forced IPv4: the built-in IPv4Client pins requests to IPv4, avoiding blank lists caused by broken IPv6 resolution on some routers
  • Update check: the settings page reads the latest GitHub release tag, compares version segments and offers a Download entry

Source Selection and Playback

  • Source priority: a channel carries both cctvSource and sources, resolved as cctvSource[0] then sources[0] then the iptv-org fallback
  • Health scoring: scripts/discover_cctv_sources.py probes candidates with 30 concurrent HEAD and GET requests and keeps the top 3 per channel by score
  • Chinese channel names: lib/data/category_zh.dart maps iptv-org English categories and names to Chinese, including the sports label on the player page

Target Audience

  • Flutter and Riverpod learners
  • Households with a self-hosted live source
  • TV box tinkerers
  • Developers studying the media_kit decoding path

Local Run

  1. Run flutter pub get; the SDK requires Dart 3.4 or newer and Flutter 3.22 or newer
  2. Connect a device and run flutter run; a TV box needs ADB debugging enabled first
  3. Run flutter test for unit and widget tests, with cases covering both light and dark themes
  4. Run flutter analyze for static checks, where errors such as undefined_method stop the build

System Requirements

Item Requirement
Platform Android TV, TV box, phone
Dart 3.4.0 to 4.0.0
Flutter 3.22.0 or newer
Playback dependency media_kit 1.1.10 plus the libmpv native library
Build environment Flutter SDK and Android SDK

Notes

  • No installer published: the repository describes itself as a personal learning project with no public release or download, so it must be compiled locally
  • Public sources expire: CCTV 2/3/5/5+/7/12/16/17 and similar public CDNs are often geo-blocked or dead, so you need your own sources
  • Two version formats: the pubspec version is 0.3.12+185 while tags read v0.3.12.185, and comparisons truncate segment by segment
  • Android only: only the android/ folder is configured, with no iOS or desktop build output

Release history

Sort