Skip to content

Commit 1b8298f

Browse files
committed
docs: temporarily fix video loading issue
1 parent 4ab0148 commit 1b8298f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/docs/DAers/python/l1.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import SimpleVideoPlayer from '@site/src/components/SimpleVideoPlayer';
77
:::tip 视频教程
88

99
<SimpleVideoPlayer
10-
url="https://cloud.tsinghua.edu.cn/d/24f8d1997d1848ec9c72/files/?p=%2Fvideo%2Fdocs%2Fpython.mp4"
11-
source="THU"
10+
url="//player.bilibili.com/player.html?isOutside=true&aid=115245162957514&bvid=BV1d6JfzZEMx&cid=32543999171&p=1"
11+
source="direct"
1212
/>
1313

1414
:::

src/utils/getVideoURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Options = {
77
const RAW_PATH_REGEX = /rawPath\s*[:=]\s*['"]([^'"]+)['"]/i;
88

99
async function getVideoUrl(url: string, options?: Options): Promise<string | null> {
10-
const { signal, proxy = "https://cors-anywhere.herokuapp.com/", timeout = 30000 } = options || {};
10+
const { signal, proxy = "https://cors-anywhere.herokuapp.com/", timeout = 20000 } = options || {};
1111

1212
const controller = new AbortController();
1313
const handler = () => controller.abort();

0 commit comments

Comments
 (0)