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

请问 #2

Open
minglinxuan opened this issue Oct 23, 2021 · 1 comment
Open

请问 #2

minglinxuan opened this issue Oct 23, 2021 · 1 comment

Comments

@minglinxuan
Copy link

我想建立与您一模一样的网页
想添加自己的视频 但实在没能找到方法
大佬能教一下吗/拜托

@qier222
Copy link
Owner

qier222 commented Oct 23, 2021

有两种方法可以添加自己的视频

第一种:
如果你是打算自己托管视频文件的话

  1. 打开 src/App.tsx 编辑43行,将 https://static-jp.qier222.com/stay-vibrant替换为你的视频地址
  2. 打开 src/playlists.ts 按照格式写入你的视频信息,filename属性是必填的

第二种:
如果你是打算直接播放YouTube上的视频的话

  1. 打开 src/App.tsx 编辑第8行,改为 const useYouTubeSource = true;
  2. 打开 src/playlists.ts 按照格式写入你的视频信息,id 属性是必填的

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