pub struct RtmpConnector { /* private fields */ }Expand description
RTMP client connector
Implementations§
Source§impl RtmpConnector
impl RtmpConnector
Sourcepub async fn connect(config: ClientConfig) -> Result<Self>
pub async fn connect(config: ClientConfig) -> Result<Self>
Connect to an RTMP server
Sourcepub async fn create_stream(&mut self) -> Result<u32>
pub async fn create_stream(&mut self) -> Result<u32>
Create a stream for publishing or playing
Sourcepub async fn read_message(&mut self) -> Result<RtmpMessage>
pub async fn read_message(&mut self) -> Result<RtmpMessage>
Read the next RTMP message
Sourcepub fn is_enhanced_rtmp(&self) -> bool
pub fn is_enhanced_rtmp(&self) -> bool
Check if E-RTMP is active for this connection
Sourcepub fn enhanced_capabilities(&self) -> Option<&EnhancedCapabilities>
pub fn enhanced_capabilities(&self) -> Option<&EnhancedCapabilities>
Get the negotiated E-RTMP capabilities
Auto Trait Implementations§
impl Freeze for RtmpConnector
impl RefUnwindSafe for RtmpConnector
impl Send for RtmpConnector
impl Sync for RtmpConnector
impl Unpin for RtmpConnector
impl UnwindSafe for RtmpConnector
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