nondanee / vsc-netease-music

UNOFFICIAL Netease Music extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=nondanee.vsc-netease-music
MIT License
1.02k stars 79 forks source link

Linux和Windows都没声音 #37

Closed 0YX closed 4 years ago

nondanee commented 5 years ago

替换了吗,README 看过吗?

wuqiany2 commented 5 years ago

Ubuntu 18.04, VS-code 1.32.3 没有声音,应该是播放不成功,在湾区,不知道是不是海外限制的问题,求解答。

nondanee commented 5 years ago

@wuqiany2 按 F1,找一下 webview 调试工具,看 network

wuqiany2 commented 5 years ago

有1.0MB的media transfer(mp3) Console显示: Uncaught (in promise) DOMException: Failed to load because no supported source was found.

wuqiany2 commented 5 years ago

Response Header:

Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
Access-Control-Allow-Methods: GET,POST,OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Range, Last-Modified
Cache-Control: max-age=31536000
cdn-ip: 36.248.212.25
cdn-source: ntes
Connection: keep-alive
Content-Disposition: inline; filename="5db0%2Fecf8%2F2887%2Ff32e4c53bd81059a3859063f348c969f.mp3"
Content-Length: 4817859
Content-Range: bytes 0-4817858/4817859
Content-Type: audio/mpeg
Date: Fri, 05 Apr 2019 18:14:25 GMT
ETag: f32e4c53bd81059a3859063f348c969f
Expires: Tue, 02 Apr 2019 16:00:55 GMT
Last-Modified: Sat, 23 Jul 2016 10:08:12 Asia/Shanghai
NE-Age: 0, 31134603
NE-Feature: slice=r1000,l1073741824
NE-Origin-Status: 200
NE-Request-Id: ca60d28a3447b50c8667aa3f36c6c7f0
NE-Via: m.pi.gd-gz-af-f01, m.c.gd-gz-af-f02.h, m.pu.gd-gz-af-f02, e.c.fj-xm-ty-g01.h(s), e.do.fj-xm-ty-g01
Server: netease-nginx
X-Nos-Owner-Productid: 177408e1ca784c08b4cb35ef81d304ee
X-Nos-Request-Id: 89188d89-1983-4360-91f4-4576c3f30e91
Accept: */*
Accept-Encoding: identity;q=1, *;q=0
chrome-proxy: frfr
Connection: keep-alive
Host: m8c.music.126.net
Range: bytes=0-
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.32.3 Chrome/66.0.3359.181 Electron/3.1.6 Safari/537.36
nondanee commented 5 years ago

@wuqiany2 我确认一下,你替换过 libffmpeg.so 吗?

wuqiany2 commented 5 years ago

@nondanee requirement里说 version>1.31不需要替换,就没有替换

nondanee commented 5 years ago

@wuqiany2 只有 for Windows 不需要,linux 还是需要的,报错 unsupported 应该会是这个原因吧

wuqiany2 commented 5 years ago

@nondanee 多谢,replace以后可以播放了,读documentation有点粗心 :sweat_smile:

nondanee commented 4 years ago

@0YX ???