截至发文之日, 是没有绿屏现象的
JavaScript: jQuery.getJSON("https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid=" + guid,
function(result) {
var content = result.hls_url.link(result.hls_url);
var match = content.match(/<a href="(.*?)">.*?<\/a>/);
if (match && match.length === 2) {
var fullUrl = match[1];
var modifiedUrl = fullUrl.replace(/maxbr=\d+/, 'maxbr=2000');
var textarea = document.createElement("textarea");
textarea.value = modifiedUrl;
document.body.appendChild(textarea);
textarea.select();
var successful = document.execCommand("copy");
document.body.removeChild(textarea);
if (successful) {
console.log("文本已成功复制到剪贴板")
} else {
console.error("无法复制文本到剪贴板")
}
console.log(modifiedUrl)
} else {
console.log('error')
}
});