pub struct UdpTsHandler { /* private fields */ }Available on crate features
ingest and udp only.Expand description
An InboundProtocol that ingests an MPEG-TS elementary stream from UDP
datagrams and publishes it to key.
Implementations§
Source§impl UdpTsHandler
impl UdpTsHandler
Sourcepub fn new(bind: SocketAddr, key: StreamKey) -> Self
pub fn new(bind: SocketAddr, key: StreamKey) -> Self
Bind bind and publish demuxed media to key.
Sourcepub fn recv_buffer(self, bytes: usize) -> Self
pub fn recv_buffer(self, bytes: usize) -> Self
Override the UDP receive buffer size (default 2048 bytes).
Trait Implementations§
Source§impl InboundProtocol for UdpTsHandler
impl InboundProtocol for UdpTsHandler
Auto Trait Implementations§
impl Freeze for UdpTsHandler
impl RefUnwindSafe for UdpTsHandler
impl Send for UdpTsHandler
impl Sync for UdpTsHandler
impl Unpin for UdpTsHandler
impl UnsafeUnpin for UdpTsHandler
impl UnwindSafe for UdpTsHandler
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