ubuntu网易云音乐感觉占用好高,试试vscode的插件
参考链接
/weixin_43870742/article/details/103652678
/items?itemName=nondanee.vsc-netease-music
步骤
更新vscodevscode, 安装插件,VSC Netease Music
配置libffmpeg.so
(VS Code 使用的 Electron 版本不包含 ffmpeg,需替换自带的 ffmpeg 动态链接库才能正常播放,每次更新 VS Code 都需重新替换)查看vscode版本:code -v
,我的vscode是1.46.1
查看对应的electron版本:
/Microsoft/vscode/1.46.1/.yarnrc
得到的electron版本为:
disturl “https://atom.io/download/electron”
target “7.3.1”
runtime “electron”
或者在vscode的help-about
中查看
查找对应镜像:
/mirrors/electron/7.3.1/
,下载electron-v7.3.1-linux-x64.zip
;
windows版本下载electron-%version%-win32-%arch%.zip
查问vscode安装位置:whereis code
,我的电脑是/usr/share/code
windows 的话查看vs code快捷方式的路径
将/usr/share/code/libffmpeg.so
替换为electron-v7.3.1-linux-x64.zip/libffmpeg.so