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

能否设置url请求到的音质 #10

Open
jcdomt opened this issue Jul 13, 2022 · 2 comments
Open

能否设置url请求到的音质 #10

jcdomt opened this issue Jul 13, 2022 · 2 comments

Comments

@jcdomt
Copy link

jcdomt commented Jul 13, 2022

现在好像全是极高(网易云)啊,能不能搞到无损甚至Hi-Res音质呢(有端联想)

@injahow
Copy link
Owner

injahow commented Jul 13, 2022

现在好像全是极高(网易云)啊,能不能搞到无损甚至Hi-Res音质呢(有端联想)

根据Meting源码

meting-api/src/Meting.php

Lines 633 to 646 in 2b7b96c

public function url($id, $br = 320)
{
switch ($this->server) {
case 'netease':
$api = array(
'method' => 'POST',
'url' => 'http://music.163.com/api/song/enhance/player/url',
'body' => array(
'ids' => array($id),
'br' => $br * 1000,
),
'encode' => 'netease_AESCBC',
'decode' => 'netease_url',
);

修改$br参数,控制返回质量,具体使用方法未知,你可以使用640等进行测试

@jcdomt
Copy link
Author

jcdomt commented Jul 13, 2022

行哈,直接拉到999

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

No branches or pull requests

2 participants