This commit is contained in:
Harvey Zack committed 2022-05-01 22:05:24 +08:00
1 parent 57f22a2fcb
commit 09d1c2ed08
3 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -547,7 +547,7 @@ declare class Player {
}
declare class Artplayer extends Player {
constructor(option: Option, readyCallback: (this: Artplayer) => void);
constructor(option: Option, readyCallback?: (this: Artplayer) => void);
static instances: Artplayer[];
static version: string;
+1 -1
View File
@@ -547,7 +547,7 @@ declare class Player {
}
declare class Artplayer extends Player {
constructor(option: Option, readyCallback: (this: Artplayer) => void);
constructor(option: Option, readyCallback?: (this: Artplayer) => void);
static instances: Artplayer[];
static version: string;
+6
View File
@@ -0,0 +1,6 @@
import Artplayer from '../packages/artplayer/types/artplayer';
const art = new Artplayer({
container: '.artplayer-app',
url: './assets/sample/video.mp4',
});