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).
Changes
@@@ -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();
@@ -1325,7 +1325,7 @@ async function _wsEndStream() {
@@ -1325,7 +1325,7 @@ async function _wsEndStream() {
}
}
try {
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();
if (typeof stopBroadcast === 'function') stopBroadcast();
toast('Stream ended', 'success');
toast('Stream ended', 'success');
updateWorkspaceLiveStatus();
updateWorkspaceLiveStatus();