mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
update docs
This commit is contained in:
1 parent
0ad47e4cf1
commit
7dd21df106
85 files changed
+1906
-1712
No files matched your search
@@ -60,3 +60,18 @@ function getInstance(art6) {
|
||||
function getInstance(art7) {
|
||||
//
|
||||
}
|
||||
|
||||
// ======================== @option ==========================
|
||||
|
||||
/**
|
||||
* @type {import("artplayer/types/option").Option}
|
||||
*/
|
||||
|
||||
const option = {
|
||||
container: '.artplayer-app',
|
||||
url: './assets/sample/video.mp4',
|
||||
};
|
||||
|
||||
option.volume = 0.5;
|
||||
|
||||
const art8 = new Artplayer(option);
|
||||
+7
-2
@@ -1,6 +1,11 @@
|
||||
import Artplayer from '../packages/artplayer';
|
||||
import { type Option } from '../packages/artplayer/types/option';
|
||||
|
||||
const art = new Artplayer({
|
||||
const option: Option = {
|
||||
container: '.artplayer-app',
|
||||
url: './assets/sample/video.mp4',
|
||||
});
|
||||
};
|
||||
|
||||
option.volume = 0.5;
|
||||
|
||||
const art = new Artplayer(option);
|
||||
Reference in new issue
Block a user