Communitygithub.com

Media Cast Skill

A specialized skill for discovering local smart TVs and projectors, and casting local video files or streams to the big screen via DLNA/UPnP.

What is Media Cast Skill?

The Media Cast Skill enables an AI agent to discover smart TVs and projectors on the local Wi-Fi network and cast downloaded or local videos directly to the big screen using the DLNA/UPnP protocol. It supports popular brands such as Xiaomi, Hisense, TCL, Sony, Dangbei, Xgimi, and Apple TV (with DLNA compatibility). The skill is powered by a standalone CLI tool `tv-cast` located at `~/.local/bin/tv-cast`, which includes a lightweight HTTP streaming server with HTTP 206 Range support for smooth buffering, seeking, and timeline control. Workflows cover discovering available screens, casting videos (with optional device selection), and playback controls such as pause, resume, stop, and status checking. This skill is designed for AI agents like Claude Code, Cursor, or Codex, providing a seamless way to handle user requests involving local media casting.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/KylinMountain/life-skills/tree/HEAD/skills/media-cast

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does Media Cast Skill do?

Enables the AI agent to discover smart TVs and projectors on the local Wi-Fi network and cast downloaded or local videos directly to the big screen.


Tooling

Backed by the standalone CLI tool tv-cast (located in ~/.local/bin/tv-cast):

  • Protocol: Standard DLNA / UPnP AVTransport (supported by Xiaomi, Hisense, TCL, Sony, Dangbei, Xgimi, Apple TV with DLNA, etc.).
  • Streaming: Lightweight background HTTP streaming server with HTTP 206 Range support (enables smooth buffering, seeking, and timeline control on the TV).

Workflows

1. Discover Available Screens

When the user asks what TVs or projectors are available:

tv-cast -l --json

Present the found devices (Name, Manufacturer, IP).

2. Cast a Video

When the user says "cast the downloaded video" or "cast to TV":

  1. Check the target video file path (e.g. in ~/Downloads).
  2. Run casting command:
    tv-cast "<video file path>"
    # Or specify device if multiple devices exist:
    tv-cast "<video file path>" -d "<device name or IP>"
    
  3. Report success: video title, target TV name, and reminder of playback control commands.

3. Playback Controls

  • Pause: tv-cast --pause
  • Resume: tv-cast --resume
  • Stop: tv-cast --stop
  • Status & Progress: tv-cast --status

Related Skills