for streaming player I use the following code for the client side
loadPlayer({ url: 'ws://' + location.host + '/api/stream', canvas: document.getElementById('canvas-player') });
how to stop streaming on the client? i tried to do
$("#canvas-player").unbind()
but websocket on client is still running
for streaming player I use the following code for the client side
loadPlayer({ url: 'ws://' + location.host + '/api/stream', canvas: document.getElementById('canvas-player') });
how to stop streaming on the client? i tried to do$("#canvas-player").unbind()
but websocket on client is still running