Skip to content

Commit

Permalink
chore: release v1.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Oct 27, 2023
1 parent 3bc8096 commit 7d2417a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/DPlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/DPlayer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/d.ts/danmaku.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions dist/d.ts/events.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import * as DPlayerType from './types';
declare class Events {
events: {
[key: string]: ((info: Event | any) => void)[];
[key: string]: {
callback: (info?: Event | any) => void;
once: boolean;
}[];
};
videoEvents: DPlayerType.VideoEvents[];
playerEvents: DPlayerType.PlayerEvents[];
constructor();
on(name: DPlayerType.Events, callback: (info?: Event | any) => void): void;
on(name: DPlayerType.Events, callback: (info?: Event | any) => void, once?: boolean): void;
off(name: DPlayerType.Events, callback: (info?: Event | any) => void): void;
trigger(name: DPlayerType.Events, info?: Event | any): void;
type(name: DPlayerType.Events): 'player' | 'video' | null;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/d.ts/events.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions dist/d.ts/player.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ declare class DPlayer {
/**
* Attach event
*/
on(name: DPlayerType.Events, callback: (info?: Event | any) => void): void;
on(name: DPlayerType.Events, callback: (info?: Event | any) => void, once?: boolean): void;
/**
* Detach event
*/
off(name: DPlayerType.Events, callback: (info?: Event | any) => void): void;
/**
* Switch to a new video
*
Expand All @@ -106,9 +110,17 @@ declare class DPlayer {
* @param color Notice color
*/
notice(text: string, time?: number, opacity?: number, color?: string): void;
/**
* Instantly hide notice
*/
hideNotice(): void;
resize(): void;
speed(rate: number): void;
destroy(): void;
/**
* Destroy DPlayer, and it can not be used again
* @param keepContainerInnerHTML If true, do not clean the innerHTML of the container
*/
destroy(keepContainerInnerHTML?: boolean): void;
static get version(): string;
}
export default DPlayer;
Expand Down
2 changes: 1 addition & 1 deletion dist/d.ts/player.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dplayer",
"version": "1.30.2",
"version": "1.31.0",
"description": "Wow, such a lovely HTML5 danmaku video player",
"main": "dist/DPlayer.min.js",
"types": "dist/d.ts/index.d.ts",
Expand Down

0 comments on commit 7d2417a

Please sign in to comment.