Skip to main content

Crate chromiacast

Crate chromiacast 

Source
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.
AudioConstraints
AudioStreamConfig
Configuration for an audio stream in an OFFER.
AuthenticatedDeviceInfo
Device metadata returned by GET_DEVICE_INFO on an authenticated control channel.
AuthenticatedEurekaInfo
Product metadata returned by a successful authenticated eureka_info request.
CastApp
A Cast application running on the receiver.
CastConnection
Authenticated connection to a receiver’s Cast V2 control channel.
Constraints
DeviceIdentity
Result of the Cast device-authentication exchange.
Dimensions
Width, height, and optional rate ceiling from a Cast receiver ANSWER.
DisplayDescription
EncodedFrame
FrameId
Framerate
InvalidFramerate
InvalidResolution
Offer
A generated OFFER ready for serialization and sending over the control channel.
OfferBuilder
ReceiverStatus
Parsed platform receiver state.
Resolution
SenderSession
A streaming session sending encoded frames to a Cast receiver.
SessionStatistics
Snapshot of all accepted streams in a sender session.
SetupDeviceInfo
Hardware metadata reported by a receiver’s local setup endpoint.
StreamHandle
A handle for sending frames on a specific stream (audio or video).
StreamStatistics
Read-only pressure and network measurements for one media stream.
UdpTransport
Default UDP transport wrapping a tokio::net::UdpSocket.
VideoConstraints
VideoStreamConfig
Configuration for a video stream in an OFFER.

Enums§

AppAvailability
Result of a Cast application-availability query.
AudioCodec
CastMode
ControlCloseReason
Why the control task terminated.
ControlEvent
Unsolicited control-channel state changes.
EnqueueError
Error
EurekaInfoOutcome
Result of the optional authenticated eureka_info operation.
FrameDependency
OfferError
PlayoutDelayError
Non-terminal rejection of a target playout-delay update.
SenderError
Terminal failure from a streaming sender task.
SenderEvent
Events emitted by a running media sender.
SetupInfoOutcome
Result of the optional local setup-endpoint operation.
StreamType
VideoCodec

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.