[][src]Function skyway_webrtc_gateway_api::media::delete_media

pub async fn delete_media<'_>(media_id: &'_ MediaId) -> Result<(), Error>

Have WebRTC Gateway close a media socket.

It's bindings for DELETE /media/{media_id}

API

Examples

use skyway_webrtc_gateway_api::media::delete_media;
use skyway_webrtc_gateway_api::prelude::MediaId;

async fn example() {
    let media_id = MediaId::new("vi-example");
    let result = delete_media(&media_id).await;
}