Skip to main content
Version: /v2

Stop HLS Livestream

This API lets you stop a HLS stream by passing roomID as a body parameter.
Body Parameters
REQUIRED
The ID of the Room.
POST
|
https://api.videosdk.live/v2/hls/end
import fetch from 'node-fetch';
const options = {
method: "POST",
body: JSON.stringify({"roomId" : "xyz"}),
};
const url= `https://api.videosdk.live/v2/hls/end`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
"HLS ended successfully"