Skip to content

About

powerful Flutter-based smart remote controller designed for Set-Top Boxes (STBs), combining network-based control, web interaction, and video extraction tools into a single, modern mobile application.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DoffRemote

Turn your Android phone into a full STB remote controller & video caster

Flutter Platform License Version PRs Welcome

DoffRemote connects your Lifestar STB (Set-Top Box) to the internet โ€” control it wirelessly, cast any video from YouTube, movie sites, and live football streams directly to your TV screen.

[๐Ÿ“ฅ Download APK](installation ยท ๐Ÿ› Report Bug ยท ๐Ÿ’ก Request Feature


๐Ÿ“ธ Screenshots

Scan Page Full Remote Web Hub About

Screenshots are from a real device running Android 13. UI adapts to both light and dark modes.


โœจ Features

๐Ÿ“ก Smart Device Discovery

  • Automatically scans your local Wi-Fi network for STB devices
  • Remembers your last connected device and reconnects on startup
  • Persistent heartbeat โ€” pings every 5 seconds, auto-reconnects if the device drops
  • Visual connection status badge in the app bar (green = connected, orange = reconnecting)
  • Pull-to-refresh device list

๐ŸŽฎ Dual Remote Control

Two remote modes, switch anytime with a single tap:

Feature Mini Remote Full Remote
D-Pad navigation โœ… โœ…
Volume +/- โœ… โœ…
Mute โœ… โœ…
Menu / Home / Back โœ… โœ…
FAV / EPG / INFO โœ… โœ…
Colour buttons (R/G/Y/B) โœ… โœ…
Numpad 0โ€“9 โŒ โœ…
Channel +/- โŒ โœ…
TV/R, ZOOM, RECALL โŒ โœ…
EDIT / PAUSE / SLEEP โŒ โœ…
Playback (โฎ โญ โ–ถ โบ) โŒ โœ…

๐ŸŒ Web Hub & Video Caster

  • Built-in multi-tab browser โ€” open multiple streaming sites simultaneously
  • Universal video scraper with a 13-phase extraction pipeline:
    • ๐Ÿ”ด Native network sniffing via shouldInterceptRequest (platform-level, most reliable)
    • ๐ŸŸก YouTube via youtube_explode_dart with SABR stream detection & filtering
    • ๐ŸŸข Invidious parallel fallback (5 instances fired simultaneously)
    • ๐Ÿ”ต Cobalt API, yt-dlp API fallbacks
    • โšช Dailymotion, Vimeo dedicated extractors
    • โšช DOM scan, JWPlayer/VideoJS/HLS.js config parsing
    • โšช eval(atob()) obfuscation decoding
    • โšช Open Graph / JSON-LD metadata
    • โšช Iframe chain following
    • โšช Raw HTML regex + HTTP fallback
  • Blocks blob URLs, ad domains, and YouTube's unplayable SABR streams
  • Category-grouped app grid with recent history

๐ŸŽ›๏ธ Floating In-Browser Remote

  • Slide up from the bottom edge of any web page to reveal a compact remote panel
  • Controls: Vol- ยท CH- ยท OK ยท CH+ ยท Vol+ ยท Mute ยท Exit
  • Smooth slide animation, dismisses by swiping down
  • Works while a video is playing โ€” no need to leave the browser

๐Ÿ—๏ธ Architecture

doff_remote/
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ main.dart           # App entry, theme, navigation, connection badge
โ”‚   โ”œโ”€โ”€ lucky_stb.dart      # STB API client + heartbeat + auto-reconnect
โ”‚   โ”œโ”€โ”€ scraper.dart        # UniversalVideoScraper (13-phase pipeline)
โ”‚   โ”œโ”€โ”€ web_hub_tab.dart    # Browser UI + floating remote panel
โ”‚   โ”œโ”€โ”€ remote_tab.dart     # Mini & Full remote UIs
โ”‚   โ”œโ”€โ”€ scan_tab.dart       # Network scanner + device manager
โ”‚   โ””โ”€โ”€ about_tab.dart      # Developer info
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ apps.json           # Fallback app list
โ”‚   โ””โ”€โ”€ app_icon.png
โ””โ”€โ”€ pubspec.yaml

STB Communication Protocol

DoffRemote communicates with the STB over HTTP on port 8000:

# Send key press
POST http://{stb-ip}:8000/api/v1/key
Content-Type: application/json
{"key": "WEBK_OK"}

# Cast video
POST http://{stb-ip}:8000/api/v1/play
Content-Type: application/json
{
  "stream_type": "net",
  "media_type": "video",
  "action": "play",
  "uri": "https://...",
  "time": 0
}

๐Ÿš€ Installation

Option A โ€” Download APK

  1. Go to the Releases page
  2. Download the latest doff_remote.apk
  3. Enable "Install from unknown sources" on your Android device
  4. Install and launch

Option B โ€” Build from Source

Requirements:

  • Flutter SDK 3.x+
  • Android SDK
  • A physical or emulated Android device
# 1. Clone the repository
git clone https://github.com/doffn/doffremote.git
cd doffremote

# 2. Install dependencies
flutter pub get

# 3. Run on device
flutter run

# 4. Build release APK
flutter build apk --release

๐Ÿ”ง Configuration

Adding Custom Apps

Edit assets/apps.json to add streaming sites to the Web Hub:

[
  {
    "name": "YouTube",
    "url": "https://m.youtube.com",
    "logo": "https://...",
    "category": "Video"
  },
  {
    "name": "HDToday",
    "url": "https://hdtoday.tr",
    "logo": "https://...",
    "category": "Movies"
  }
]

Or serve a remote list from your own server โ€” DoffRemote fetches from https://videoprocessor.vercel.app/apps first, falling back to the local file.


๐Ÿ“ฆ Dependencies

Package Purpose
flutter_inappwebview WebView engine with native network interception
youtube_explode_dart YouTube stream extraction
http HTTP client for STB API & web scraping
network_info_plus Local subnet discovery
shared_preferences Persistent connection & settings storage
url_launcher External link handling

๐Ÿค Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Open a Pull Request

Ideas for contributions

  • iOS support (requires WKWebView adapter for native sniffing)
  • More streaming site extractors (Twitch, Facebook Video, etc.)
  • Subtitle support for casted videos
  • Scheduled recordings via STB API
  • Widget / quick-tile for fast key sending

๐Ÿ› Known Limitations

Issue Status
YouTube SABR streams (new format) Handled โ€” filtered & fallback chain applied
Blob URLs from MSE players Blocked by design โ€” cannot be cast externally
DRM-protected streams (Netflix, etc.) Not supported โ€” DRM keys are device-bound
Cross-origin iframe extraction Limited to same-origin by browser security
iOS native sniffing Not available โ€” flutter_inappwebview limitation on iOS

๐Ÿ“„ License

This project is licensed under the MIT License โ€” see the LICENSE file for details.


๐Ÿ‘ค Developer

Dawit Neri

Full-stack developer passionate about building tools that bridge software and hardware

Gmail Telegram GitHub Website


If DoffRemote saved you from buying a Bluetooth remote โ€” give it a โญ

Made with โค๏ธ in Ethiopia ยท ยฉ 2026 Dawit Neri

About

powerful Flutter-based smart remote controller designed for Set-Top Boxes (STBs), combining network-based control, web interaction, and video extraction tools into a single, modern mobile application.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages