How to end both audio and video

I am using Zoom WEB SDK version 2.14. Please i will like to know how to end the audio and video. I have tried the code below but it did not work

                                success: function (res) {
                                    //console.log('Video stopped successfully');
                                error: function (res) {

But it is not working.