Expand description
Sources, broadcasts and players, with the codec stacks they sit on.
The player feature brings the player and the decoders, publisher the
publisher, the encoders and the sources. media turns on both.
Re-exports§
Modules§
- audio_
encoding - Audio encoding presets for
LocalBroadcast::set_audio. - spec
- Text specifiers that name a video or an audio source, and open it.
Structs§
- Adaptation
- The player’s adaptation thresholds and timers.
- Audio
Encode Stats - The audio publication.
- Audio
Encoding - How an audio source is encoded: moq-audio’s encoder settings and the span of each group.
- Audio
Format - The sample rate and speaker layout of a raw audio source.
- Audio
Frame - One block of decoded audio, from
Player::audio_frames. - Audio
Frames - The decoded audio of a player, in the order it decodes.
- Audio
Info - The audio track of a
MediaFile. - Audio
Playback Stats - The audio decoder.
- Audio
Source - A raw audio source.
- Bounce
Pattern - A white square bouncing left and right on a background that drifts through the hues.
- Catalog
- A catalog track, created by a broadcaster to describe the tracks available in a broadcast.
- Delay
- How far behind the live edge a media reader plays: where it starts, and how late it may fall.
- Encode
Stats - One video rendition’s encoder.
- Encoded
Frame - One encoded frame and the time it presents at.
- Frame
Sender - The push end of a source.
- Frame
Timing - When one frame arrived, left its decoder, and was presented.
- Local
Broadcast - A broadcast this process produces.
- Media
Encoding - How
LocalBroadcast::set_specencodes the sources it opens. - Media
File - An MP4 file, ready to publish as it is or to decode.
- Media
Info - What a
MediaFileholds, asMediaFile::inforeports it. - Network
Sample - One reading of the link a broadcast arrives over.
- Playback
Stats - What a
Playeris playing. - Player
- One playback: video into
VideoFrames, audio into the speaker andAudioFrames. - Player
Config - How a player plays.
- Player
Status - The state of a player.
- Portal
Grant - A desktop portal grant kept in a file, so a later run can skip the picker.
- Publish
Stats - What a
LocalBroadcastis sending. - Publish
Status - The state of both slots of a broadcast, and of every rendition.
- Rate
- A rate, in bits per second.
- Remote
Broadcast - A broadcast being read.
- Rpicam
Config - How to run the Raspberry Pi camera.
- Source
Closed - The source a
FrameSenderfeeds has gone. - Unknown
Backend - An error from parsing a backend name that is no strategy and no known backend.
- Video
Backlog - A queue of the pictures a
Playerpresents, with their timing. - Video
Encoding - How a video source is encoded: one or more renditions of the same picture.
- Video
File Config - How
MediaFile::videodecodes the video. - Video
Format - The size and cadence of a raw video source.
- Video
Frames - Latest-frame-wins video frames.
- Video
Info - The video track of a
MediaFile. - Video
Playback Stats - The video decoder.
- Video
Rendition - One encoding of a broadcast’s picture.
- Video
Source - A raw video source running on its own thread.
- Video
Switch - The handle that swaps the input of a
VideoSource::switchablesource.
Enums§
- Audio
Mode - What a player does with the broadcast’s audio.
- Backend
- A choice of encoder or decoder backend: a strategy, or one backend by name.
- Encoded
Audio - Encoded audio for
LocalBroadcast::set_encoded_audio. - Encoded
Video - Encoded video for
LocalBroadcast::set_encoded_video. - Error
- An error from the media crates.
- FileEnd
- What a file source does when it reaches the end of the file.
- Media
Kind - Which medium a
FrameTimingdescribes. - Rendition
Mode - How the rendition is chosen.
- Rendition
State - Whether one rendition is encoding.
- Slot
State - The state of one media slot, on a broadcast or on a player.
Constants§
- DEFAULT_
LATENCY - The latency of
PlayerConfig::default: held for at least 100 ms, and skipped past 150 ms. - IMMEDIATE_
LATENCY - No buffer and no pacing: a frame presents as soon as it decodes.
Traits§
- RoomExt
- Reads a room member’s broadcast as media.
- Subscription
Ext - Reads a
Subscriptionas media.
Functions§
- rpicam_
h264 - Starts the Raspberry Pi camera’s hardware H.264 through
rpicam-vid. - screen_
source - Returns the capture source of the main screen, as
VideoSource::screenopens it. - video_
rendition - Returns the video rendition of
catalognamedname.