I was using this code but now its not working please let me know update code asap

<script src="https://source.zoom.us/2.9.7/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/1.7.9/lib/vendor/jquery.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/lodash.min.js"></script>
<script src="https://source.zoom.us/zoom-meeting-2.9.7.min.js"></script>

<script>

$(window).on("orientationchange",function(){
    console.log("Orientation changed");
});
function stop_zoom() {
    var r = confirm("<?php echo get_phrase('do_you_want_to_leave_the_live_video_class'); ?> ? <?php echo get_phrase('you_can_join_them_later_if_the_video_class_remains_ive'); ?>");
    if (r == true) {
        ZoomMtg.leaveMeeting();
    }

}

$(document).ready(function() {
    start_zoom();
});

function start_zoom() {

    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk();
    
    ZoomMtg.i18n.load('en-US')
    ZoomMtg.i18n.reload('en-US')

    var API_KEY = "<?php echo get_settings('zoom_api_key'); ?>";
    var API_SECRET = "<?php echo get_settings('zoom_secret_key'); ?>";
    var USER_NAME = "<?php echo $logged_user_details['first_name'] . " " . $logged_user_details['last_name']; ?>";
    var MEETING_NUMBER = "<?php echo $live_class_details['zoom_meeting_id']; ?>";
    var PASSWORD = "<?php echo $live_class_details['zoom_meeting_password']; ?>";

    testTool = window.testTool;


    var meetConfig = {
        sdkKey: API_KEY,
        sdkSecret: API_SECRET,
        meetingNumber: MEETING_NUMBER,
        userName: USER_NAME,
        passWord: PASSWORD,
        leaveUrl: "<?php echo site_url('home/lesson/' . slugify($course_details['title']) . '/' . $course_details['id']); ?>",
        role: 0
    };


    var signature = ZoomMtg.generateSDKSignature({
        meetingNumber: meetConfig.meetingNumber,
        sdkKey: meetConfig.sdkKey,
        sdkSecret: meetConfig.sdkSecret,
        role: meetConfig.role,
        success: function(res) {
            console.log(res.result);
        },
        error: function(res) {
                    console.log(res);
                }
    });

    ZoomMtg.init({
        leaveUrl: "<?php echo site_url('home/lesson/' . slugify($course_details['title']) . '/' . $course_details['id']); ?>",
        isSupportAV: true,
        success: function() {
            ZoomMtg.join({
                meetingNumber: meetConfig.meetingNumber,
                userName: meetConfig.userName,
                signature: signature,
                sdkKey: meetConfig.sdkKey,
                passWord: meetConfig.passWord,
                success: function(res) {
                    console.log('join meeting success');
                },
                error: function(res) {
                    console.log(res);
                }
            });
        },
        error: function(res) {
            console.log(res);
        }
    });
}
</script>

@skillsetech 2.9.7 is deprecated and stopped working as of feb 3, 2024. You will need to upgrade your SDK to the latest version. The latest version will be support for minimally 9 months.

You can upgrade to the next working version (2.12.0), but it is not recommended as it will be deprecated in 2 month’s time.