File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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:::
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type Options = {
77const RAW_PATH_REGEX = / r a w P a t h \s * [: = ] \s * [ ' " ] ( [ ^ ' " ] + ) [ ' " ] / i;
88
99async 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 ( ) ;
You can’t perform that action at this time.
0 commit comments