Giter VIP home page Giter VIP logo

asoul-101's Introduction

icon

A-SOUL Music Player on VS Code

🍦🍬🥣🐺✨ A-SOUL vscode 插件,让你一边写代码一边听 A-SOUL 的歌! 🍦🍬🥣🐺✨

🎵「有你的陪伴,从不觉孤单」🎵 —— 庆《超级敏感》发布一周年

*本项目已参加稀土掘金 2022 编程挑战赛, 队伍名:可是蒂娜我,作品链接在这里,欢迎投票捏

Features

  • 安装插件后,点击侧边栏的图标可以进入本插件,开始加载曲库
  • 曲库加载完毕后,单击想听的歌即可加入当前歌单
  • 播放/上一首/下一首
  • 点击叉就可以将歌曲从歌单中删除
  • 采用列表循环,保持开启状态即可一直播放
  • 可后台播放,你可以一边 debug 一边享受音乐 (2022/5/6 新增)

Acknowledgement

本插件是从 A-SOUL 录音棚 (Github) 获取歌单,并且从由 A-soul Studio 内容组 维护,@嘉然小姐的奶粉罐 托管的 曲库 播放歌曲。

感谢录音棚网站的开发与维护人员,一直在切片并整理A-SOUL音频资源的 A-soul Studio 内容组,没有你们对 A-SOUL 长久的热情和付出,本项目不可能实现。

Requirements

由于本插件采用 Webview View & HTML Audio 进行播放,而 VS Code 方面长期以来均不提供 ffmpeg 支持,VS Code 必须安装 ffmpeg 补丁才能正确运行本插件

ffmpeg 补丁

首先按照如下办法安装 FFMPEG 的补丁,推荐 Automatic Replacement(来自UNOFFICIAL Netease Music extension for Visual Studio Code 网易云音乐扩展,感谢!)

VS Code 使用的 Electron 版本不包含 ffmpeg,需替换自带的 ffmpeg 动态链接库才能正常播放 (每次更新 VS Code 都需重新替换)

VS Code for Windows 1.31.0 - 1.35.1 不需替换,1.36.0 后无此待遇

VS Code for macOS 1.43+ 替换后闪退解决方案

Manual Replacement

通过 VS Code 版本在 https://raw.githubusercontent.com/Microsoft/vscode/%version%/.yarnrc 查看其使用的 Electron 版本,并于 https://github.com/electron/electron/releases/tag/%version% 下载对应的 Electron 完整版本进行替换

Windows

下载 electron-%version%-win32-%arch%.zip

替换 ./ffmpeg.dll

macOS

下载 electron-%version%-darwin-x64.zip

替换 ./Electron.app/Contents/Frameworks/Electron\ Framework.framework/Libraries/libffmpeg.dylib

Linux

下载 electron-%version%-linux-%arch%.zip

替换 ./libffmpeg.so

Automatic Replacement

使用 Python 脚本替换 (使用淘宝 Electron 镜像,兼容 Python 2/3,绝大部分发行版自带环境)

默认安装位置下 Linux 和 Windows 需要以管理员身份运行,macOS 不需要

Windows Powershell

Invoke-RestMethod https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python

Unix Shell

curl https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python

如果 VS Code 使用默认配置安装,脚本会自动寻找并替换,若自定义了安装位置,请自行修改 installation

如何运行扩展

自行编译

1. `npm install`
2. `npm run watch`
3. 按 `F5` 新窗自动打开

下载 release

下载 release 的 asoul-101-0.0.1.vsix

code --install-extension .\asoul-101-0.0.1.vsix

Extension Settings

Treeview 显示歌单,Webview view 音乐播放

Known Issues

  1. 播放一些体积较大的歌曲时,可能需要稍等片刻
  2. 有时播放按钮会遇到卡顿的情况,这是歌曲资源尚未加载完毕导致的,可以多点击几次播放按钮或者更换良好的网络环境。流媒体资源来自 Onedrive 网盘,实测无论是否使用代理均较快。

Future Plan

添加搜索歌曲功能;添加歌曲进度条;添加音量控制;添加单曲循环、随机播放功能

Release Notes

2022/5/4 ver 0.0.1 发布 2022/5/5 ver 0.0.2 更新 icon 2022/5/6 ver 0.0.3 支持后台播放

asoul-101's People

Contributors

karumo10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asoul-101's Issues

音频资源维护人员有误

感谢录音棚网站的开发与维护人员,一直在维护A-SOUL音视频资源的@嘉然小姐的奶粉罐,以及提供 A-SOUL 歌曲资源的切片man们,没有你们对 A-SOUL 长久的热情和付出,本项目不可能实现。

其中,奶粉罐仅提供了音频的托管。先在所有的音频整理/切片都是由 A-soul Studio 内容组 产出的。

音乐播放器开发

对 asf.studio.ink 进行 vscode 内部访问,并且在 vscode 内部实现歌曲选择、播放、歌单创建

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.