Expand description
Codec-agnostic sender-side implementation of Cast Streaming.
The public boundary accepts complete encoded media access units and does not depend on a capture API, media framework, desktop environment, or encoder. Packet layouts and cryptographic machinery remain private so the integration API can evolve independently of protocol internals.
Structs§
- Answer
- Answer from a Cast receiver in response to an OFFER.
- Audio
Constraints - Audio
Stream Config - Configuration for an audio stream in an OFFER.
- Authenticated
Device Info - Device metadata returned by
GET_DEVICE_INFOon an authenticated control channel. - Authenticated
Eureka Info - Product metadata returned by a successful authenticated
eureka_inforequest. - CastApp
- A Cast application running on the receiver.
- Cast
Connection - Authenticated connection to a receiver’s Cast V2 control channel.
- Constraints
- Device
Identity - Result of the Cast device-authentication exchange.
- Dimensions
- Width, height, and optional rate ceiling from a Cast receiver ANSWER.
- Display
Description - Encoded
Frame - FrameId
- Framerate
- Invalid
Framerate - Invalid
Resolution - Offer
- A generated OFFER ready for serialization and sending over the control channel.
- Offer
Builder - Receiver
Status - Parsed platform receiver state.
- Resolution
- Sender
Session - A streaming session sending encoded frames to a Cast receiver.
- Session
Statistics - Snapshot of all accepted streams in a sender session.
- Setup
Device Info - Hardware metadata reported by a receiver’s local setup endpoint.
- Stream
Handle - A handle for sending frames on a specific stream (audio or video).
- Stream
Statistics - Read-only pressure and network measurements for one media stream.
- UdpTransport
- Default UDP transport wrapping a
tokio::net::UdpSocket. - Video
Constraints - Video
Stream Config - Configuration for a video stream in an OFFER.
Enums§
- AppAvailability
- Result of a Cast application-availability query.
- Audio
Codec - Cast
Mode - Control
Close Reason - Why the control task terminated.
- Control
Event - Unsolicited control-channel state changes.
- Enqueue
Error - Error
- Eureka
Info Outcome - Result of the optional authenticated
eureka_infooperation. - Frame
Dependency - Offer
Error - Playout
Delay Error - Non-terminal rejection of a target playout-delay update.
- Sender
Error - Terminal failure from a streaming sender task.
- Sender
Event - Events emitted by a running media sender.
- Setup
Info Outcome - Result of the optional local setup-endpoint operation.
- Stream
Type - Video
Codec
Constants§
- APP_
MIRRORING - App ID for the built-in mirroring receiver.
- CAST_
PORT - Standard Cast V2 control-channel port.
- SETUP_
PORT - Standard HTTPS port for the Cast setup API.
Traits§
- Transport
- Abstraction over the network transport for sending and receiving packets.