chromecast-casting

Debug Chromecast Cast v2 protocol flows in macOS Swift apps.

108|9|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/ad-repo/nullplayer --skill chromecast-casting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chromecast-casting
Source: https://github.com/ad-repo/nullplayer/tree/main/skills/chromecast-casting
Command: npx skills add https://github.com/ad-repo/nullplayer --skill chromecast-casting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Chromecast protocol debugging and implementation challenges arise when integrating Google Cast in macOS Swift apps for audio and video casting.

Core Features & Use Cases

  • mDNS based device discovery for Chromecast devices
  • TLS connection on port 8009 with Cast protocol framing (protobuf) and session lifecycle
  • Standalone test script for isolating protocol flows and debugging
  • CastSessionController and high-level coordinator for end-to-end control

Quick Start

Run the standalone test script to verify Chromecast connectivity and protocol flow.

Frequently Asked Questions about chromecast-casting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Chromecast protocol implementations in a Swift app?

Use a standalone test script to isolate and verify Chromecast protocol flows like device discovery, TLS connections, and protobuf message framing. This isolates connectivity issues and validates session lifecycle behaviors without running the full macOS app.

What is the correct connection flow for Google Cast v2 protocol framing?

Google Cast v2 protocol framing requires establishing a TLS connection over port 8009 and sending 4-byte length-prefixed protobuf messages. The session lifecycle follows specific stages: CONNECT, LAUNCH, GET_STATUS, and LOAD to manage media playback.

How does mDNS device discovery work for Chromecast debugging?

mDNS device discovery locates Chromecast hardware on the local network by broadcasting queries and listening for responses. This identifies available casting targets before initiating the TLS connection and protobuf session lifecycle.

Can I validate Cast media status and session lifecycle without a full application?

Yes, you can validate session lifecycle and CastMediaStatus handling using the standalone test script. This allows isolated verification of CONNECT, LAUNCH, GET_STATUS, and LOAD flows without deploying a complete macOS Swift application.

Why does my Chromecast TLS connection fail during protobuf message exchange?

Chromecast TLS connections fail if the protocol framing is incorrect, specifically if messages are not formatted as 4-byte length-prefixed protobuf payloads over port 8009. Debugging requires verifying the exact byte structure sent during the session lifecycle.