Leave Meeting - IoT SDK
A participant can leave the meeting without affecting other participants. This is typically done using the Leave Meeting option present in the IoT SDK.
leave()
- The
leave()method removes the peer from the active meeting session and stops all ongoing publish and subscribe tasks.
Example
#include "videosdk.h"
#include "esp_log.h"
void app_main(){
// call leave method and it will stop all running task and will leave the meeting.
result_t leave_result = leave();
ESP_LOGI("IOT-SDK", "Leave Result: %d", leave_result);
}
API Reference
The API references for all the methods utilized in this guide are provided below.
Got a Question? Ask us on discord

