Here's a genius who made a more functional DD Monitor, pls go check it.
As a reminder, you are looking at the
backend
branch, I split the master branch to the frontend and the backend, make it easy for me to maintain.在这里提醒一下,你现在查看的是后端的部分,我将master分支拆分成前端部分和后端部分,让我维护起来更轻松。
DD monitor, which means a monitor for DDs (DD means 誰でも大好き
), can let you watch multiple YouTube streams (if the stream is enabled to be embedded outside YouTube) in one screen at the same time.
In the beginning, I was planning to see the multi-view of Hololive's Project Winter collab streams, but it is very difficult to allocate space for browsers. So I decide to build this program to make things easier.
When I noticed that hey if I can use YouTube embed link, I can watch not only the Project Winter streams but also every stream which supports to play outside YouTube.
So this is it, a simple but functionally DD monitor.
DD监视器,你要来当监视房里的老大爷吗?这个工具可以让你同时观看多个(允许在YouTube外部播放的)油管直播。
一开始的时候我打算看当时Hololive的Project Winter联动直播,但是一起8个视角,给浏览器分配空间太难了。所以我决定搞一个工具来把事情变得容易解决。
然而当我注意到,当我使用油管的外部嵌入链接时,我不但可以用来看Project Winter联动直播,还可以看任何支持在油管外播放的直播。
所以,这就是一个简单但很好用的DD监视器。
git clone https://github.com/AyakuraYuki/dd_monitor.git
cd dd_monitor
If you are in master
branch, continue to run the following script:
git checkout backend
If you already installed python, you can skip this step.
Make sure you have (or download and install)
Python >= 3.7
.
Python virtual environments are used to isolate package installation from the system. For more information of
virtualenv
, please visit virtualenv in pypiIf you already installed
virtualenv
, you can skip this step.I highly recommend you to use
virtualenv
, but if you want to use installedpython
andpip
, I won't stop you.
pip install virtualenv
venv
is the folder name of the virtual environment, you can replace with whatever you want. For the example, I will usevenv
.
- Linux/macOS
virtualenv venv
source venv/bin/activate
- Windows
virtualenv venv
venv/Scripts/activate
pip install -r requirements.txt
Sorry guys, I didn't make the release version. I'll do this stuff if I have time to.
chmod +x run.sh
./run.sh
And now, try curl "http://localhost:5140/player/list"
. Port 5140
is the default port I used.
git clone https://github.com/AyakuraYuki/dd_monitor.git
cd dd_monitor
如果你正处于master
分支下,请继续执行下面的命令,切换到后端分支:
git checkout backend
如果你已经安装了,你可以跳过这一步。
在继续之前,确保你安装的Python大于版本3.7.x。
Python虚拟环境被用来将安装的依赖包从系统中隔离出来。想知道更多关于
virtualenv
的信息,可以访问virtualenv in pypi。如果你已经安装了
virtualenv
,你可以跳过这一步。我强烈建议使用
virtualenv
,但是如果你一定要用本地的python
和pip
,也是可以的。
pip install virtualenv
如果你是用virtualenv
,在构建环境之前,你需要执行下面的脚本。
venv
是virtualenv
环境的目录名称,你可以替换成你想要的任何名称,这里为了举例我选用了venv
- Linux/macOS
virtualenv venv
source venv/bin/activate
- Windows
virtualenv venv
venv/Scripts/activate
pip install -r requirements.txt
我还没有打包发布版本,如果我有时间我会去做的。
chmod +x run.sh
./run.sh
现在,你可以尝试在shell中输入curl "http://localhost:5140/player/list"
来获取播放列表了。端口5140
是程序的默认端口。
- Release version