mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
feat: add build:test script and improve documentation code blocks
- Added a new script `build:test` to generate test cases from documentation code examples. - Enhanced documentation files by ensuring proper code block formatting and adding missing closing backticks. - Updated various markdown files to include new code blocks and fixed formatting issues.
This commit is contained in:
1 parent
5cc8d14454
commit
7bfee6c6dc
17 files changed
+4857
-19
No files matched your search
@@ -263,6 +263,8 @@ art.on('ready', () => {
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
:::warning Note
|
||||
|
||||
`art.switch` and `art.switchUrl` have the same functionality, but the `art.switchUrl` method returns a `Promise`. It `resolve`s when the new URL is playable and `reject`s when the new URL fails to load.
|
||||
@@ -1024,6 +1026,8 @@ art.on('ready', () => {
|
||||
}, 3000);
|
||||
})
|
||||
|
||||
```
|
||||
|
||||
## `thumbnails`
|
||||
|
||||
- Type: `Setter/Getter`
|
||||
@@ -1068,4 +1072,5 @@ var art = new Artplayer({
|
||||
|
||||
art.on('ready', () => {
|
||||
art.subtitleOffset = 1;
|
||||
});
|
||||
});
|
||||
```
|
||||
Reference in new issue
Block a user