pub struct WhepResource { /* private fields */ }Available on crate features
ingest and webrtc only.Expand description
An accepted WHEP connection: streams one live stream out to the viewer as RTP until the stream ends or the peer disconnects.
Implementations§
Source§impl WhepResource
impl WhepResource
Sourcepub async fn pump(self) -> Result<()>
pub async fn pump(self) -> Result<()>
Drive egress: subscribe to the stream, replay the cached config + GOP for an instant start, then packetize and send every published video frame. Returns when the stream closes or the subscription lags out.
The RTP payload format is selected from the stream’s video codec: H.264 (RFC 6184) and H.265 (RFC 7798) are packetized; other video codecs are skipped with a single warning per connection, and audio is skipped.
Auto Trait Implementations§
impl !Freeze for WhepResource
impl !RefUnwindSafe for WhepResource
impl !UnwindSafe for WhepResource
impl Send for WhepResource
impl Sync for WhepResource
impl Unpin for WhepResource
impl UnsafeUnpin for WhepResource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more