How does the front end determine whether a video link address is valid?

as the title

function CheckStatus(url){
    $.ajax({
        type: "GET",
        cache: false,
        url: url,
        dataType: "jsonp", //jsonp
        processData: false,
        data: "",
        complete: function (data) {
            if (data.status==200) {
                console.log("");
            } else {
                console.log("");
            }

        }
    });
}

it doesn"t seem to work like that.

Mar.03,2021

load the given url, directly with the video tag to register the load event to vidoe

Menu