Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

允许手动输入aes的key地址 #17

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

cxwithyxy
Copy link

除了输入真实的key地址之外;

还可以通过chrome的调试台的overrides等操作获得的真实key的Uint8Array的数组(数字加英文逗号)

如: 37, 149, 54, 208, 103, 102, 218, 99, 68, 52, 130, 84, 137, 58, 239, 162

@Momo707577045
Copy link
Owner

收到,谢谢补充,我看一下

@JinJiangHuang
Copy link

JinJiangHuang commented May 1, 2021

这段改成这样可以自动获取真实的m3u8地址
this.tsUrlList = []
this.finishList = []
var rtn=false;
// 提取 ts 视频片段地址
m3u8Str.split('\n').forEach((item) => {
if (item.toLowerCase().indexOf('.ts') > -1) {
this.tsUrlList.push(this.applyURL(item, this.url))
this.finishList.push({
title: item,
status: ''
})
}else if(item.toLowerCase().indexOf('.m3u8') > -1){//获取真实m3u8文件
var keyUrl=item;
if(keyUrl.startsWith('http')){
this.url=keyUrl;
}else{
if(keyUrl.startsWith('/')){
keyUrl=keyUrl.substring(1);
}
keyUrl=this.url.substring(0,this.url.lastIndexOf("/")+1)+keyUrl;
this.url=keyUrl;
}
console.log("keyUrl:"+keyUrl);
rtn=true;
this.getM3U8();
return;
}
})
if(rtn){
return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants