Contents
Cancel Encoding - Plugixa Stream
DELETE /plugixa-stream/v1/admin/transcode/episodes/{id}
Stop a running encode, or remove a finished one, with its files. The episode plays its original file again.
Needs a user with the plugixa_stream_edit capability (signed in with an Application Password or the login cookie). Administrators hold it; other roles only when you grant it.
Request
DELETE https://your-site.example/wp-json/plugixa-stream/v1/admin/transcode/episodes/2815
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The episode’s id |
Responses
200 OK.
{
"success": true,
"data": {
"status": "none",
"encodable": true,
"available": true
}
}
| Field | Type | Meaning |
|---|---|---|
data.status |
string |
none |
Errors
| Status | Code | When |
|---|---|---|
401 / 403 |
plugixa_stream_forbidden |
The caller lacks the capability. |
404 |
plugixa_stream_not_found |
No episode with that id. |
Plus the errors every endpoint can return.
Examples
curl -s -X DELETE "https://your-site.example/wp-json/plugixa-stream/v1/admin/transcode/episodes/2815" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/admin/transcode/episodes/2815');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-stream/v1/admin/transcode/episodes/2815', {
method: 'DELETE',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share