openvibers/openvibe.live Commits

Broadcast workspace: End stream calls DELETE /api/streams/:id, the route that ends a stream (owner or staff). It posted to /api/streams/:id/end, which no route serves, so the button answered 'Failed to end stream' with a 404. Found by the N-1 recorder (WS-P task 11).

OP OpenVibers committed 26 Sept 2026 · 5caa46d5cb · 1 file, +1 −1


Changes

ddiff --git a/public/js/broadcast-workspace.js b/public/js/broadcast-workspace.js
iindex 435f220f..b8e40389 100644
---- a/public/js/broadcast-workspace.js
++++ b/public/js/broadcast-workspace.js
@@@ -1325,7 +1325,7 @@ async function _wsEndStream() {
}
try {
-- await api(`/streams/${liveSessionId}/end`, { method: 'POST' });
++ await api(`/streams/${liveSessionId}`, { method: 'DELETE' }); // DELETE /api/streams/:id ends it (owner or staff)
if (typeof stopBroadcast === 'function') stopBroadcast();
toast('Stream ended', 'success');
updateWorkspaceLiveStatus();