pub struct VideoClient { /* private fields */ }Expand description
ctx.video — WebRTC playback (WHEP) sessions on the agent’s published
camera legs, for viewers the plugin serves. Needs video.whep.relay.
Implementations§
Source§impl VideoClient
impl VideoClient
Sourcepub async fn whep_offer(
&self,
camera_id: &str,
offer_sdp: &str,
) -> Result<WhepAnswer, ClientError>
pub async fn whep_offer( &self, camera_id: &str, offer_sdp: &str, ) -> Result<WhepAnswer, ClientError>
Open a playback session on the configured camera camera_id for
offer_sdp. See PluginIpcClient::whep_offer.
Sourcepub async fn whep_close(&self, location: &str) -> Result<(), ClientError>
pub async fn whep_close(&self, location: &str) -> Result<(), ClientError>
Close a session this plugin opened, by its location. See
PluginIpcClient::whep_close.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VideoClient
impl !UnwindSafe for VideoClient
impl Freeze for VideoClient
impl Send for VideoClient
impl Sync for VideoClient
impl Unpin for VideoClient
impl UnsafeUnpin for VideoClient
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